about summary refs log tree commit diff
path: root/codechef/cash.py
blob: b9463fc5b64db1d78fb2434bce4791086b6c5a59 (plain) (blame)
1
2
3
4
#!/usr/bin/env python
for t in range(int(input())):
    n, k = map(int, input().split())
    print(sum(map(int, input().split())) % k)