Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Svastikkka/d19fb152af0ed2fa6eac7e138f6dc9e0 to your computer and use it in GitHub Desktop.
Save Svastikkka/d19fb152af0ed2fa6eac7e138f6dc9e0 to your computer and use it in GitHub Desktop.
import math
t=int(input())
for i in range(t):
x,y=map(int,input().split())
chef=round(math.ceil(x/9))
raick=round(math.ceil(y/9))
if raick<chef:
print(1,"",raick)
elif raick==chef:
print(1," ",raick)
else:print(0," ",chef)
@Svastikkka
Copy link
Author

Another Card Game Problem Problem Code: CRDGAME3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment