diff options
Diffstat (limited to 'codechef/watscore.py')
-rwxr-xr-x | codechef/watscore.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/codechef/watscore.py b/codechef/watscore.py new file mode 100755 index 0000000..d45faf2 --- /dev/null +++ b/codechef/watscore.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 +print(*(sum(dict(sorted((int(p), p in '12345678' and int(s)) + for p, s in (input().split() + for i in range(int(input()))))).values()) + for t in range(int(input()))), sep='\n') |