s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s332453583 | p03730 | u016901717 | 1582581798 | Python | PyPy2 (5.6.0) | py | Runtime Error | 37 | 27756 | 113 | from math import gcd
a,b,c = map(int,input().split())
if c % gcd(a,b)==0:
print("Yes")
else :
print("No") |
s854828002 | p03730 | u016901717 | 1582581683 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 113 | from math import gcd
a,b,c = map(int,input().split())
if c % gcd(a,b)==0:
print("Yes")
else :
print("No") |
s784452719 | p03730 | u681444474 | 1582130440 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38768 | 269 | # coding: utf-8
a,b,c=map(int,input().split())
if b%2==0:
if a%2==0:
if c%2==0:
print('YES')
else:
print('NO')
else:
if c%2==0:
print('NO')
else:
print('YES')
else:
pirnt('YES') |
s124174945 | p03730 | u268792407 | 1580641497 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 108 | from math import gcd
a,b,c=map(int,input().split())
d=gcd(a,b)
if c%d==0:
print("YES")
else:
print("NO") |
s000847813 | p03730 | u934052933 | 1580268199 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 |
def main():
N, K = map(int, input().split())
res = K * (K -1)**(N-1)
print(res)
if __name__ == "__main__":
main() |
s490784477 | p03730 | u682997551 | 1580103359 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 171 | import math
A, B, C = map(int, input().split())
gcd = math.gcd(A, B)
if gcd == 1 and C != 0 or gcd != 1 and math.gcd(gcd, C) != 1:
print('YES')
else:
print('NO') |
s664419346 | p03730 | u127499732 | 1580040837 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 71 | a,b,c=map(int,input().split())
x = a%b
print("Yes" if c%x==0 else "No") |
s826195592 | p03730 | u843722521 | 1579879163 | Python | PyPy3 (2.4.0) | py | Runtime Error | 168 | 38384 | 150 | a,b,c=map(int,input())
s=set()
while True:
x=a%b
if x==c:
print("YES")
break
elif x in s:
print("NO")
break
else:
s.add(x) |
s975855116 | p03730 | u729133443 | 1579588559 | Python | Python (3.4.3) | py | Runtime Error | 280 | 21144 | 78 | from numpy import*;a,b,c=int_(input().split());print('YNEOS'[c%gcd(a,b)>0::2]) |
s878959723 | p03730 | u353797797 | 1579276070 | Python | Python (3.4.3) | py | Runtime Error | 162 | 12864 | 449 | import sys
sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(ro... |
s725090537 | p03730 | u121921603 | 1578944349 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38256 | 154 | import sys
input = sys.stdin.readline
a,b,c=map(int,input().split()))
for i in range(b):
if a*i%b==c:
print("YES")
exit()
print("NO")
|
s075529113 | p03730 | u823044869 | 1578766867 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 120 | a, b, c = map(int,input().split())
for i in range(a,ba+1,a):
if i % b == c:
print("YES")
exit(0)
print("NO")
|
s727448698 | p03730 | u823044869 | 1578766277 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 222 | a, b, c = map(int,input().split())
aj = a%2
bj = b%2
cj = c%2
if aj == bj == cj == 1 or aj == bj == cj ==0 or (aj == bj ==1 and cj ==0 ) or (aj == cj == 1 and bj == 0) or (aj == 0 and bj==cj==1):
print("YES")
else:
p |
s693088507 | p03730 | u763881112 | 1578668291 | Python | Python (3.4.3) | py | Runtime Error | 275 | 17820 | 132 |
import numpy as np
import math
a,b,c=map(int,input().split())
g=math.gcd(a,b)
if(c%g==0):
print("YES")
else:
print("NO") |
s991031902 | p03730 | u609061751 | 1578605200 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 153 | import sys
input = sys.stdin.readline
A, B, C = [int(x) for x in input().split()]
AmodB = A % B
if C % AmodB == 0:
print("YES")
else:
print("NO") |
s288726742 | p03730 | u989345508 | 1578410587 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | import math
a,b,c=map(int,input().split())
d=math.gcd(a,b)
if c%d==0:
print("YES")
else:
print("NO")
|
s967556975 | p03730 | u609814378 | 1576954690 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 1 | a |
s062067252 | p03730 | u141429472 | 1576880692 | Python | PyPy3 (2.4.0) | py | Runtime Error | 173 | 38384 | 170 | import sys
input = sys.stdin.readline
A,B,C=map(int,input().rstrip().split())
for i in range(B):
if (i*(A%B))% B == C:
print("YES")
return
print("NO") |
s523809724 | p03730 | u055687574 | 1576716965 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 127 | import math
A, B, C = map(int, input().split())
gcd = math.gcd(A, B)
if C % gcd == 0:
print("YES")
else:
print("NO")
|
s470435207 | p03730 | u594244257 | 1575556004 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | import math
A,B,C = map(int, input().split())
ret = C % math.gcd(A,B) == 0
print('Yes' if ret else 'No') |
s733809769 | p03730 | u317713173 | 1573850402 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3060 | 149 | a, b, c = map(int, input().split())
rest = set()
for i in range(b):
rest.add(a * i % b)
if c in list(set):
print("YES")
else:
print("NO") |
s089970708 | p03730 | u997346103 | 1573010494 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38256 | 124 | a,b,c = map(int, input().split())
for i in range(B+1):
if i*a%b == c:
print("YES")
else:
print("NO") |
s589909804 | p03730 | u997346103 | 1573009339 | Python | PyPy3 (2.4.0) | py | Runtime Error | 164 | 38384 | 112 | import math
a,b,c = map(int, input().split())
if c % math.gcd(a, b) == 0:
print("YES")
else:
print("NO") |
s957534347 | p03730 | u997346103 | 1573009239 | Python | PyPy3 (2.4.0) | py | Runtime Error | 173 | 38384 | 112 | import math
a,b,c = map(int, input().split())
if c % math.gcd(a, b) == 0:
print("YES")
else:
print("NO") |
s892911443 | p03730 | u997346103 | 1573009120 | Python | PyPy3 (2.4.0) | py | Runtime Error | 172 | 38256 | 122 | from franctions import gcd
a,b,c = map(int, input().split())
if c % gcd(a, b) == 0:
print("YES")
else:
print("NO") |
s799997440 | p03730 | u348868667 | 1572410377 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 336 | start = time.time()
A,B,C = map(int,input().split())
flag = 0
if A == 1:
flag = 1
else:
while flag == 0:
if A%B == C:
flag = 1
break
else:
A += A
now = time.time() - start
if now > 1.9:
break
if flag == 0:
print("NO")
else:
... |
s363150947 | p03730 | u042802884 | 1572154041 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | import math
A,B,C=map(int,input().split())
f=C%math.gcd(A,B)==0
print('YES' if f else 'NO') |
s759750729 | p03730 | u814986259 | 1572022000 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 95 | A,B,C=map(int,input().split())
if C%(((B//A +1)*A)%B) == 0:
print("YES")
else:
print("NO") |
s708694896 | p03730 | u528720841 | 1571756608 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | A,B,C = map(int, input().split())
a = A % B
if C % a == 0 or a % C == 0:
print("YES")
else:
print("NO")
|
s142748158 | p03730 | u533039576 | 1570610775 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 253 | a, b, c = map(int, input().split())
if a % b == 0:
if c == 0:
ans = "YES"
else:
ans = "NO"
else:
ans = "NO"
for i in range(1, b+1):
if c % pow(a, i, b) == 0:
ans = "YES"
break
print(ans)
|
s538745715 | p03730 | u533039576 | 1570610727 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 253 | a, b, c = map(int, input().split())
if a % b == 0:
if c == 0:
ans = "YES"
else:
ans = "NO"
else:
ans = "NO"
for i in range(1, b+1):
if c % ((a**i) % b) == 0:
ans = "YES"
break
print(ans)
|
s580998468 | p03730 | u202570162 | 1569507445 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 106 | import math
a,b,c = map(int,input().split())
if math.gcd(a,b) == 1:
print('YES')
else:
print('NO') |
s823421808 | p03730 | u202570162 | 1569507378 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 106 | import math
a,b,c = map(int,input().split())
if math.gcd(a,b) == 1:
print('YES')
else:
print('NO') |
s434399172 | p03730 | u597455618 | 1568861722 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 105 | import math
a, b, c = map(int, input().split())
if math.gcd(a,b) == c:
print("YES")
else:
print("NO") |
s692032302 | p03730 | u319690708 | 1568168054 | Python | Python (3.4.3) | py | Runtime Error | 36 | 5048 | 134 | from fractions import gcd
import math
A, B, C = map(int, input().split())
if C % math.gcd(A, B) == 0:
print("YES")
else:
print("NO") |
s018448881 | p03730 | u278356323 | 1567545312 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 193 | # ABC060b
import sys
import math
input = sys.stdin.readline
sys.setrecursionlimit(10**6)
a, b, c = map(int, input().split())
if c % math.gcd(a, b) == 0:
print('YES')
else:
print('NO') |
s567072560 | p03730 | u278356323 | 1567545254 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 176 | # ABC060b
import sys
import math
input = sys.stdin.readline
sys.setrecursionlimit(10**6)
a, b, c = map(int, input().split())
print('YES' if c % math.gcd(a, b) == 0 else 'NO') |
s690431736 | p03730 | u137722467 | 1567232522 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 202 | import math
import sys
a, b, c = map(int, input().split())
lcm = (a * b)//(math.gcd(a,b))
for i in [x*a for x in range(1, lcm+1)]:
if i % b == c:
print("YES")
sys.exit()
print("NO")
|
s002959701 | p03730 | u137722467 | 1567232418 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 196 | import math
import sys
a, b, c = map(int, input().split())
lcm = a*b//math.gcd(a,b)
for i in [x*a for x in range(1, lcm+1)]:
if i % b == c:
print("YES")
sys.exit()
print("NO")
|
s165838166 | p03730 | u137722467 | 1567232165 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 178 | import math, sys
a, b, c = map(int, input().split())
for i in [x*a for x in range(1, a*b//math.gcd(a,b))]:
if i % b == c:
print("YES")
sys.exit()
print("NO")
|
s657322297 | p03730 | u731362892 | 1567193186 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 117 | a, b, c = map(int, input().split())
lp=[a*i/b-c for i in range(10*10)]
if 0 in ;p:
print('YES')
else:
print('NO') |
s263933224 | p03730 | u346629192 | 1567138036 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | import math
A,B,C = map(int,input().split())
if C%math.gcd(A,B) == 0:
print("YES")
else:
print("NO") |
s071601756 | p03730 | u346629192 | 1567136625 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | import math
A,B,C = map(int,input().split())
if C%math.gcd(A,B) == 0:
print("YES")
else:
print("NO") |
s324040959 | p03730 | u440566786 | 1567014512 | Python | PyPy3 (2.4.0) | py | Runtime Error | 173 | 38448 | 96 | import math
a,b,c = map(int,input().split())
print("YES") if c%math.gcd(a,b)==0 else print("NO") |
s423054438 | p03730 | u243572357 | 1566274176 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 85 | a, b, c = map(int, input().split())
d = a%b
e = (b+c) % d
print('No' if e else 'Yes') |
s071319819 | p03730 | u243572357 | 1566273445 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 85 | a, b, c = map(int, input().split())
cnt = (b+c) % (a%b)
print('No' if cnt else 'Yes') |
s374568732 | p03730 | u248670337 | 1565750459 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | a,b,c=map(int(input()))
print("YES" if any((a*i)%b==c for i in range(a,b+1)) else "NO") |
s735815151 | p03730 | u112567325 | 1564999752 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 148 | A,B,C = list(map(int,input().split()))
ans = 0
for i in range(1,B+1):
if A*i % B == C:
ans = 1
if ans == 1:
print(YES)
else :
print(NO) |
s035223338 | p03730 | u078777263 | 1561743546 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 322 | A,B,C = map(int, input().split())
#for i in range(1, 101):
mods = list()
while(True):
#print("A * i = " + str(A * i) + ", mod = " + str((A * i) % B))
mod = (A * i) % B
if (mod == C):
print("Yes")
break
elif(mod in mods):
print("No")
break
else:
mods.append(mo... |
s521212572 | p03730 | u399721252 | 1561354054 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38640 | 167 | ans = 0
a, b, c = [ int(v) for v in input().split() ]
for i in range(1,b+1):
if (a * i) % b == c:
ans = 1
break
if ans == 1:
print("YES")
else: |
s766810351 | p03730 | u539517139 | 1561120961 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | import math
a,b,c=map(int,input().split())
print('YES' if c%(math.gcd(a,b))==0 else 'NO') |
s302042636 | p03730 | u539517139 | 1561120884 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | import math
a,b,c=map(int,input().split())
print('YES' if c%math.gcd(a,b)==0 else 'NO') |
s892997590 | p03730 | u062459048 | 1560697511 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 173 | A, B, C = map(int,input().split())
for i in range(B):
if A * i % B == C:
print("YES")
flag = True
exit()
else:
continue
if flag != True:
print("NO")
|
s814505522 | p03730 | u062459048 | 1560697099 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 176 | A, B, C = map(int,input().split())
for i in range(B):
if A * i % B == C:
print("YES")
flag = True
exit()
else:
continue
if flag != True:
print("No")
|
s087360991 | p03730 | u062459048 | 1560696434 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 194 | A, B, C = map(int,input().split())
n = 100 * B
for i in range(1, n, B):
if A * i % B == C:
print("YES")
flag = True
break
else:
continue
if flag != True:
print("No")
|
s669110809 | p03730 | u062459048 | 1560696392 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 195 | A, B, C = map(int,input().split())
n = 100 * B
for i in range(1, n, B):
if A * i % B == C:
print("YES")
flag = True:
break
else:
continue
if flag != True:
print("No")
|
s982063111 | p03730 | u062459048 | 1560696207 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 194 | A, B, C = map(int,input().split())
n = 100 * B
for i in range(1, n, B):
if A * i % B = C:
print("YES")
flag == True:
break
else:
continue
if flag != True:
print("No")
|
s682509418 | p03730 | u245870380 | 1560570042 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 226 | A, B, C = list(map(int, input().split()))
if A % 2 != 0 and B % 2 != 0:
print('YES')
elif A % 2 != B % 2 and C % 2 != 0:
print('YES')
elif A % 2 == 0 and B % 2 == 0 and C % 2 == 0:
print('YES')
else:
print('NO' |
s668292070 | p03730 | u691018832 | 1560482270 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 168 | import sys
input = sys.stdin.readline
a, b, c = map(nt, input().split())
for i in range(1, b):
if (a*i)%b == c:
print('YES')
sys.exit()
print('NO') |
s045394176 | p03730 | u911575040 | 1559343068 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 96 | from fractions import gcd
a,b,c=map(int,input().split())
print("NO"if c%gcd(a,b)!=0 else"YES") |
s916907614 | p03730 | u728566015 | 1557028153 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 218 | A, B, C = map(int, input().split())
BC_gcd = math.gcd(B, C)
if A == 1 or C == 0:
print("YES")
else:
for _ in range(1, 101):
if (B * _ + C) % A == 0:
print("YES")
break
else: |
s054320591 | p03730 | u120691615 | 1556677628 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 170 | A,B,C = map(int,input().split())
found = False
for i in range(1,B+1):
if A * i % B == C:
found = True
if found = True:
print("YES")
else:
print("NO")
|
s041580141 | p03730 | u318029285 | 1556503019 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 252 | import math
A, B, C = map(int, input().split())
q = math.gcd(A, B)
if A == 1:
print("YES")
exit()
if A % 2 == 0 and B % 2 == 0 and C % 2 == 1:
print("NO")
exit()
if math.gcd(q, C) == 1 and C != 1:
print("NO")
else:
print("YES") |
s542464422 | p03730 | u722189950 | 1555735739 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | #ABC060B
A, B, C = map(int, input().split()
if A % 2 == (2 * B + 1) % 2:
print("YES")
else:
print("NO") |
s592483814 | p03730 | u771532493 | 1555462986 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 183 | a,b,c=map(int,input().split())
d=a%b
e=a//d+1
for i in range(e):
if (i*d)%b==c:
A=True
break
else:
A=False
if A:
print('YES')
else:
print('NO') |
s627519392 | p03730 | u499317876 | 1555024755 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 142 | import math
a,b,c=map(int,input().split())
if c==0:
print("YES")
elif c%math.gcd(a,b)==0 and c!=0:
print("YES")
else:
print("NO") |
s791175046 | p03730 | u499317876 | 1555024587 | Python | Python (3.4.3) | py | Runtime Error | 73 | 3992 | 210 | a,b,c=map(int,input().split())
def gojo(x,y):
if x%y==0:
return y
else:
return gojo(y,x-y)
if c==0:
print("YES")
elif c%gojo(a,b)==0 and c!=0:
print("YES")
else:
print("NO") |
s741901220 | p03730 | u499317876 | 1555024311 | Python | Python (3.4.3) | py | Runtime Error | 73 | 3996 | 173 | a,b,c=map(int,input().split())
def gojo(x,y):
if x%y==0:
return y
else:
return gojo(y,x-y)
if c%gojo(a,b)!=0:
print("NO")
else:
print("YES") |
s295718327 | p03730 | u777028980 | 1554401776 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 146 | a,b,c=map(int,input().split())
ans=0
flag=0
for i in range(b):
ans+=a
if(ans%b==c):
flag=1
if(flag=1):
print("YES")
else:
print("NO") |
s052596439 | p03730 | u227082700 | 1553621787 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 98 | a,b,c=map(int,input().split())
ans="NO"
for i in range(b):
if (a*(i+1))%b==c:ans"YES"
print(ans) |
s343155002 | p03730 | u459697504 | 1552437067 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 730 | #!/usr/bin/python3
# abc060_b
"""
Choose Integers
"""
import math # greatest common divisor, 最大公約数
test = False
def lcm(x, y):
"""
最小公倍数 least common multiple
"""
return (x * y) // math.gcd(x, y)
def answer():
"""
Aの倍数の中に条件を満たすものがあるか調べる。
"""
A, B, C = map(int, input().split())
up... |
s090195194 | p03730 | u459697504 | 1552436983 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 734 | #!/usr/bin/python3
# abc060_b
"""
Choose Integers
"""
from math import gcd # greatest common divisor, 最大公約数
test = False
def lcm(x, y):
"""
最小公倍数 least common multiple
"""
return (x * y) // gcd(x, y)
def answer():
"""
Aの倍数の中に条件を満たすものがあるか調べる。
"""
A, B, C = map(int, input().split())
... |
s672841892 | p03730 | u459697504 | 1552436740 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 709 | #!/usr/bin/python3
# abc060_b
"""
Choose Integers
"""
from math import gcd # greatest common divisor, 最大公約数
test = False
def lcm(x, y):
"""
最小公倍数 least common multiple
"""
return (x * y) // gcd(x, y)
def answer():
"""
Aの倍数の中に条件を満たすものがあるか調べる。
"""
A, B, C = map(int, input().split())
... |
s665461568 | p03730 | u975329388 | 1552268530 | Python | Python (3.4.3) | py | Runtime Error | 20 | 2940 | 188 | import sys
import fraction
DBG = True
a,b,c = map(int, input().split())
g = math.gcd(a,b)
for i in range(b):
if (g*i)%b == c:
print('YES')
sys.exit(0)
print('NO')
|
s307594875 | p03730 | u975329388 | 1552268434 | Python | PyPy3 (2.4.0) | py | Runtime Error | 180 | 38512 | 184 | import sys
import math
DBG = True
a,b,c = map(int, input().split())
g = math.gcd(a,b)
for i in range(b):
if (g*i)%b == c:
print('YES')
sys.exit(0)
print('NO')
|
s120335981 | p03730 | u543954314 | 1550636714 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 120 | a, b, c = map(int, input().split())
while a != 0:
a, b = b%a, a
if c % b = 0:
print("YES")
else:
print("NO") |
s864086994 | p03730 | u052332717 | 1547155475 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 132 | ,b,c = map(int,input().split())
for i in range(1,b+1):
if a*i%b == c:
print('YES')
break
else:
print('NO')
|
s189148398 | p03730 | u263933075 | 1546124234 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 171 | s=input().split();a=int(s[0]);b=int(s[1]);c=int(s[2]);pd=0
for i in range(0,1000):
if a*i%b=c:
print('YES')
pd=1
break
if pd=0:
print('NO') |
s997329436 | p03730 | u048945791 | 1545717509 | Python | Python (3.4.3) | py | Runtime Error | 37 | 5432 | 135 | import fractions
A, B, C = map(int, input().split())
ab = fractions.gcd(A, B)
if C % temp == 0:
print("YES")
else:
print("NO") |
s494009634 | p03730 | u048945791 | 1545717167 | Python | Python (3.4.3) | py | Runtime Error | 37 | 5432 | 158 | import fractions
A, B, C = map(int, input().split())
ab = math.gcd(A, B)
temp = fractions.gcd(A, ab)
if C % temp == 0:
print("YES")
else:
print("NO") |
s646980728 | p03730 | u492605584 | 1544667687 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 127 | A, B, C = map(int, input().split(" "))
for i in range(1, 100000):
if A * i % B == C:
print("Yes")
exit(0)
print("No" |
s912160498 | p03730 | u026155812 | 1544297182 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | A, B, C = [int(i) for i in input().split()]
for i in range(B):
if (A*i)%B == C:
print('YES')
break
else:
print('NO') |
s153329000 | p03730 | u026155812 | 1544296850 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 152 | A, B, C = [int(i) for i in input().split()]
a = 0
for i in range(1,B):
if A*i%B == C:
a += 1
print('YES')
if a != 0:
print('NO') |
s569271577 | p03730 | u037098269 | 1542571320 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 185 | #A*n = B*m + C
#Ax-By = Cを満たすx,yを求めよ
import fraction
a, b, c = map(int, input().split())
gcd = fraction.gcd(a, b)
if c % gcd == 0:
print("YES")
else:
print("NO") |
s305823851 | p03730 | u360094607 | 1542051911 | Python | PyPy3 (2.4.0) | py | Runtime Error | 191 | 38384 | 94 | A, B, C = map(int, input().split())
if C % (A % B) == 0:
print('YES')
else:
print('NO')
|
s437843802 | p03730 | u163449343 | 1540353486 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | a,b,c=map(int, input().spilt())
ans= "NO"
for i in range(10):
if a*i % b == c:
ans ="YES"
print(ans) |
s025480954 | p03730 | u005260772 | 1539395477 | Python | Python (2.7.6) | py | Runtime Error | 35 | 4520 | 105 | from fractions import gcd
a, b, c = map(int, raw_input().split())
print ['NO', 'YES'][c % gcd(a, b) ^ 1]
|
s871474519 | p03730 | u940102677 | 1538381077 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 104 | import fraction
a, b, c = map(int, input().split())
print("YES" if c%(fraction.gcd(a,b)) == 0 else "NO") |
s375922050 | p03730 | u940102677 | 1538381030 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | import math
a, b, c = map(int, input().split())
print("YES" if c%(math.gcd(a,b)) == 0 else "NO") |
s414908629 | p03730 | u940102677 | 1538380974 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 94 | import math
a, b, c = map(int, input().split())
print("YES" if math.gcd(a,b)%c == 0 else "NO") |
s376252371 | p03730 | u598009172 | 1531976009 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 107 | A,B,C=(int(i) for i in input().split())
if (C-A%B)%((2*A)%B))-(A%B)==0:
print(YES)
else:
print(NO) |
s638989564 | p03730 | u024804656 | 1529174954 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 123 | import math
a,b,c = map(int, input().split())
r = math.gcd(a,b)
if c % r == 0:
print('YES')
else:
print('NO')
|
s808266095 | p03730 | u270057938 | 1528839232 | Python | Python (3.4.3) | py | Runtime Error | 238 | 17172 | 266 | import numpy
import re
import math
def main():
"""
テストコード実行
:return:
"""
"""
「べズーの等式」を用いる
"""
a, b, c = map(int, input().split())
print("Yes" if c % math.gcd(a, b) == 0 else "No")
if __name__ == '__main__':
main()
|
s464605511 | p03730 | u624475441 | 1528793628 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 89 | import math
*S, C = map(int, input().split())
print(["NO", "YES"][C % math.gcd(*S) == 0]) |
s842883744 | p03730 | u562016607 | 1520312371 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | import math
A, B, C = map(int, input().split())
if C%math.gcd(A,B)==0:
print("YES")
else:
print("NO")
|
s020948503 | p03730 | u019584841 | 1519838508 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | a,b,c=map(int,input().split())
for _ in range(100):
if (a*i)%b==c:
print("YES")
break
else:
pass |
s763754864 | p03730 | u163703551 | 1497640342 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 167 | import sys
from math import gcd
# sys.stdin = open('b1.in')
a, b, c = map(int, input().split())
d = gcd(a, b)
if c % d == 0:
print('YES')
else:
print('NO')
|
s338633535 | p03730 | u351527281 | 1497391261 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 153 | a,b,c = map(int, input().split())
flag = 0
for i in range(1,b+1):
if (a*1-c)%b==0:
flag = 1
break
print('YES' if flag = 1 else 'NO')
|
s703628590 | p03730 | u341087021 | 1495002204 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 159 | import sys
n, m, r = [str(x) for x in sys.stdin.readline().split()]
for i in range(m):
a = (n * (i + 1)) % m
if a == r:
print('YES')
break
print('NO') |
s575887419 | p03730 | u545503667 | 1494447069 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 232 | a, b, c = [int(x) for x in input().split()]
from math import gcd
def foo(a, b, c):
if a == 1:
return "YES"
elif b == 1:
return "NO"
elif gcd(a, b) ==1:
return "NO:
else:
return "YES" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.