Skip to content

Commit 7bf761c

Browse files
Another Card Game Problem
1 parent 32634a5 commit 7bf761c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import math
2+
for _ in range(int(input())):
3+
c,r=map(int,input().split())
4+
movc=math.ceil(c/9)
5+
movr=math.ceil(r/9)
6+
if movr<=movc:
7+
print(1,movr)
8+
else:
9+
print(0,movc)

0 commit comments

Comments
 (0)