Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Modular-inverse/XPL0/modular-inverse.xpl0
Normal file
7
Task/Modular-inverse/XPL0/modular-inverse.xpl0
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
code IntOut=11, Text=12;
|
||||
int X;
|
||||
def A=42, M=2017;
|
||||
[for X:= 2 to M-1 do
|
||||
if rem(A*X/M) = 1 then [IntOut(0, X); exit];
|
||||
Text(0, "Does not exist");
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue