summaryrefslogtreecommitdiff
path: root/progs/a834.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a834.py')
-rw-r--r--progs/a834.py5
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