diff options
Diffstat (limited to 'progs/a834.py')
-rw-r--r-- | progs/a834.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a834.py b/progs/a834.py new file mode 100644 index 0000000..3948f46 --- /dev/null +++ b/progs/a834.py @@ -0,0 +1,5 @@ +def find_remainder(arr, lens, n):
+ mul = 1
+ for i in range(lens):
+ mul = (mul * (arr[i] % n)) % n
+ return mul % n
\ No newline at end of file |