Skip to content

Instantly share code, notes, and snippets.

@KorossGame

KorossGame/test.py

Created Apr 14, 2018
Embed
What would you like to do?
[Help] RGPC '18 P1 - Giant Cookie
string=input()
string=list(map(int,string.split()))
cookies_pieces=string[0]
people=string[1]
coef=cookies_pieces%(people)
if coef==0:
print("yes",int(cookies_pieces/people))
else:
print("no",int(coef))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment