about summary refs log tree commit diff
path: root/codechef/cash.py
diff options
context:
space:
mode:
Diffstat (limited to 'codechef/cash.py')
-rwxr-xr-xcodechef/cash.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/codechef/cash.py b/codechef/cash.py
new file mode 100755
index 0000000..b9463fc
--- /dev/null
+++ b/codechef/cash.py
@@ -0,0 +1,4 @@
+#!/usr/bin/env python
+for t in range(int(input())):
+    n, k = map(int, input().split())
+    print(sum(map(int, input().split())) % k)