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
s784297131
p03729
u906017074
1493762193
Python
Python (3.4.3)
py
Runtime Error
17
2940
112
a,b,c = input().split() if a[len(a)-1] == b[0] and b[len(b)-1] == c[0]]: print('YES') else: print(ans)
s355140557
p03729
u906017074
1493762158
Python
Python (3.4.3)
py
Runtime Error
17
2940
110
a,b,c = input().split() if a[len(a)-1] == b[0] and b[len(b)-1 == c[0]]: print('YES') else: print(ans)
s294443495
p03729
u906017074
1493762128
Python
Python (3.4.3)
py
Runtime Error
17
3064
113
a,b,c = input().split() if a[len(a)-1] == b[0] and if b[len(b)-1 == c[0]]: print('YES') else: print(ans)
s112254245
p03729
u586748675
1493669299
Python
Python (3.4.3)
py
Runtime Error
17
2940
170
def main(): s = raw_input().split() if s[0][-1] == s[1][0] and s[1][-1] == s[2][0]: print("YES") else: print("NO") main()
s120391119
p03729
u586748675
1493669212
Python
Python (3.4.3)
py
Runtime Error
17
2940
170
def main(): s = raw_input().split() if s[0][-1] == s[1][0] && s[1][-1] == s[2][0]: print("YES") else: print("NO") main()
s395971415
p03729
u646336933
1493546583
Python
Python (3.4.3)
py
Runtime Error
18
2940
155
a, b, c = [int(i) for i in input().split()] for i in range(2, b+1): if a*i % b == c: print("YES") break else: print("NO")
s124086920
p03729
u669382434
1493524395
Python
Python (3.4.3)
py
Runtime Error
20
3316
1116
N,W=list(map(int,input().split())) v=[[],[],[],[]] kosu=[0,0,0,0] kr=list(map(int,input().split())) v[0].append(kr[1]) w0=kr[0] for i in range(1,N): kr=list(map(int,input().split())) v[kr[0]-w0].append(kr[1]) for i in range(4): v[i].sort() v[i].reverse() kos=[len(v[0]),len(v[1]),len(v[2]),len(v[3])] kk=...
s201713679
p03729
u368679547
1493522194
Python
Python (2.7.6)
py
Runtime Error
10
2568
232
N, t = map(int, raw_input().split()) n = map(int, raw_input().split()) total = 0 next = t for i in range(N-1): if(next < n[i+1]): total += t next = n[i+1] else: total += n[i+1]-n[i] next = n[i+1] +t total += t print(total)
s465028904
p03729
u682181971
1493521268
Python
Python (3.4.3)
py
Runtime Error
17
2940
215
ABC = input().split() A=int(ABC[0]) B=int(ABC[1]) C=int(ABC[2]) count = 1000 for index in range(count+1): if (A*index)%B ==C: print("Yes") break elif index ==800: print("NO")
s513658190
p03729
u638552534
1493518737
Python
Python (2.7.6)
py
Runtime Error
384
12676
2383
import numpy as np def generate(): newGen = np.zeros(n) for p in range(pop): gen = np.random.rand(n) for i in range(n): if gen[i] > 0.5: gen[i] = 1 else: gen[i] = 0 newGen = np.vstack([newGen,gen]) newGen = np.vsplit(newGen,[1]...
s707035769
p03729
u256260242
1493517505
Python
Python (3.4.3)
py
Runtime Error
17
3064
342
##N T #t1 t2 ... tN N, T = map(int,input().split()) a = list(map(int, input().split())) b = [] """ for i in range(N): set1 = set() for j in range(T): set1.add(a[i] + j) b.append(set1) d = set() for n in range(len(b)): d = d | b[n] """ d = set() for i in range(N): d = d | set(range(a[i], a[i]...
s225454375
p03729
u711452853
1493517459
Python
Python (3.4.3)
py
Runtime Error
17
2940
481
def sentou(NT, ts): N, T = map(int, NT.split()) before_oshitano = None total_s = 0 for t in map(int, ts.split()): if before_oshitano is None: before_oshitano = t continue elif T > (t - before_oshitano): total_s += t - before_oshitano else: ...
s942839176
p03729
u484578205
1493515797
Python
Python (3.4.3)
py
Runtime Error
18
2940
147
strs = input().split() if strs[0][len(strs[0]) -1] == strs[1][0] and strs[1][len(strs[0]) -1] == strs[2][0]: print("YES") else: print("NO")
s993071786
p03729
u811388439
1493515010
Python
Python (3.4.3)
py
Runtime Error
17
2940
214
l = input().split() def shiritori (letter): if letter[0][-1:] == letter[1][:1]: if letter[1][-1:] == letter[2][:1]: return('YES') else return('NO') else return('NO') shiritori(l)
s184332298
p03729
u744898490
1493514247
Python
Python (3.4.3)
py
Runtime Error
18
2940
116
abc= imput() a, b, c = abc.split(' ') if a[-1] == b[0] and b[-1] == c[0]: print('YES') else: print('NO')
s352529598
p03730
u540762794
1600560365
Python
Python (3.8.2)
py
Runtime Error
25
8832
175
# -*- coding: utf-8 -*- A,B,C = map(int, input().split()) ans = "NO" for i in range(B+1)): res = A * i % B if res == C: ans = "YES" break print(ans)
s642251604
p03730
u999503965
1599345681
Python
Python (3.8.2)
py
Runtime Error
28
8936
152
a,b,c=map(int,input().split()) ans="No" for i in range(1,b+1): for j in range(1,a+1): if a*i=b*j+c: ans="Yes" break print(ans)
s560143812
p03730
u705418271
1599280026
Python
Python (3.8.2)
py
Runtime Error
23
8844
165
,b,c=map(int,input().split()) s={} while True: if a%b==c: print("YES") break elif (a%b) in s: print("NO") break else: s.add((a%b)) a+=a
s711573025
p03730
u516554284
1597869157
Python
PyPy3 (7.3.0)
py
Runtime Error
184
74724
72
a,b,c=map(int,input.split()) if c>a: print('YES') else: print('NO')
s842205419
p03730
u626881915
1596775802
Python
Python (3.8.2)
py
Runtime Error
27
9016
121
a,b,c=map(int,input().split()) for i in range(1, b+1): a%b * i % b == c: print("YES") break else: print("NO")
s144894410
p03730
u774163366
1596508613
Python
PyPy3 (7.3.0)
py
Runtime Error
98
74360
201
A, B, C = map(int, input().split()) if ((A % 2 == 0) and (B % 2 == 0)): if (C == 0): print("YES") else: print("NO") else: if (C != 0): print("YES") else: print("NO")
s820793956
p03730
u840841119
1596300875
Python
Python (3.8.2)
py
Runtime Error
22
9180
77
A,B,C = map(int,input().split()) print('YES' if C % gcd(A,B) == 0 else 'NO')
s869112303
p03730
u931901821
1594338522
Python
PyPy3 (7.3.0)
py
Runtime Error
95
74664
1077
/*------------------------------------ ........Bismillahir Rahmanir Rahim.... ..........created by Abdul Aziz....... ------------------------------------*/ #include <iostream> #include <algorithm> #include <stdio.h> #include <cmath> #include <vector> #include <set> #include <map> #include <cstring> #include <unordered_...
s380846706
p03730
u516447519
1593733042
Python
Python (3.8.2)
py
Runtime Error
28
8984
200
A,B,C = [int(i) for i in input().split()] Flag = False for i in range(1,B+1): D = i*A % B if D = C: Flag = True break if Flag == True: print('YES') else: print('NO')
s333836712
p03730
u618369407
1593477294
Python
Python (3.8.2)
py
Runtime Error
27
8940
168
# -*- coding: utf-8 -*- A, B, C = map(int, input().split()) for i in range(1, B + 1) if (A * i) % B == C: print('YES') exit() print('NO')
s706155785
p03730
u729119068
1592737557
Python
Python (3.8.2)
py
Runtime Error
23
9136
213
a,b,c=map(int,input().split()) for i in range(1,b+1): if (i*a)%b==c: print('YES') break print('NO') a,b,c=map(int,input().split()) for i in range(b): if (i*a)%b==c: print('YES') break print('NO')
s751192240
p03730
u729119068
1592737326
Python
Python (3.8.2)
py
Runtime Error
27
9080
228
a,b,c=map(int,input().split()) for i in range(1,b+1): if (i*a)%b==c: print('YES') break print('NO') a,b,c=map(int,input().split()) for i in range(b): if (i*a)%b==c: print('YES') break print('NO') 提出情報
s004344886
p03730
u729119068
1592737222
Python
Python (3.8.2)
py
Runtime Error
21
9092
105
a,b,c=map(int,input().split()) for i in range(B): if (i*a)%b==c: print('YES') break print('NO')
s726297060
p03730
u729119068
1592737072
Python
Python (3.8.2)
py
Runtime Error
25
8944
107
a,b,c=map(int,input().split()) for i in range(0:B): if (i*a)%b==c: print('YES') break print('NO')
s311885294
p03730
u014333473
1592586565
Python
Python (3.8.2)
py
Runtime Error
29
9164
136
a,b,c=map(int,input().split()) num = a if (a % 2 == 1 and c % 2 == 0) or (a % 2 == 0 and c % 2 == 1): print('NO') else: pritn('YES')
s130321933
p03730
u642012866
1592428996
Python
Python (3.4.3)
py
Runtime Error
17
2940
112
import math A, B, C = map(int, input().split()) if C%math.gcd(A, B) == 0: print("YES") else: print("NO")
s625202536
p03730
u678167152
1592307463
Python
Python (3.4.3)
py
Runtime Error
17
2940
147
from math import gcd def check(): A, B, C = map(int, input().split()) if C%gcd(A,B)==0: return 'YES' return 'NO' print(check())
s487016215
p03730
u046158516
1592307254
Python
PyPy3 (2.4.0)
py
Runtime Error
172
38256
102
import math a,b,c=map(int,input().split()) if c%(math.gcd(a,b))==0: print('YES') else: print('NO')
s865895774
p03730
u957957759
1591836623
Python
Python (3.4.3)
py
Runtime Error
18
2940
134
a,b,c=map(int,input().split()) x=0 for i in range(1,b+1): if i*a%==c: x+=1 if x==0: print('NO') else: print('YES')
s054822709
p03730
u757274384
1591425322
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
a,b,c = map(int, input().split()) x = a % b y = c % b if y % x == 0: print("YES") else : print("NO")
s473702990
p03730
u757274384
1591425281
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
a,b,c = map(int, input().split()) x = b % b y = c % b if y % x == 0: print("YES") else : print("NO")
s995825074
p03730
u757274384
1591425236
Python
Python (3.4.3)
py
Runtime Error
18
2940
106
a,b,c = map(int, input().split()) x = A % B y = C % B if y % x == 0: print("YES") else : print("NO")
s444399628
p03730
u730769327
1591245062
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38540
91
a,b,c=map(int,input().split()) d=a%b if c%d==0: frag="YES" else: frag="NO" print(frag)
s347829673
p03730
u993268357
1591140553
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
from math import gcd a,b,c = map(int, input().split()) if gcd(a,b)%c==0: print('Yes') exit() print('No')
s162456562
p03730
u298520807
1590980195
Python
Python (3.4.3)
py
Runtime Error
17
2940
167
from otsutil import parg A, B, C = map(int, input().split()) for i in range(1, B + 1): if A * i % B == C: print('YES') break else: print('NO')
s021021642
p03730
u046158516
1590800809
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
import math a,b,c=map(int,input().split()) if math.gcd(a,b)%c==0: print('YES') else: print('NO')
s814556708
p03730
u935254309
1590632010
Python
Python (3.4.3)
py
Runtime Error
17
2940
180
flg=False for i in range(10**6): temp = A*i if temp%B==C: flg=True break if flg==True: print("Yes") else: print("No")
s316566914
p03730
u485435834
1590531213
Python
PyPy3 (2.4.0)
py
Runtime Error
183
38752
203
import os input = os.stdin.readline A, B, C = map(int, input().split()) flag = False for i in range(B + 1): if A * i %B == c: flag = True break print('YES' if flag else 'NO')
s106881262
p03730
u991134049
1590384619
Python
PyPy3 (2.4.0)
py
Runtime Error
178
38256
133
import math a, b, c = map(int, input().split()) d = math.gcd(a, b) e = c/d if float.is_integer(e): print("YES") else: print("NO")
s156189495
p03730
u991134049
1590384583
Python
PyPy3 (2.4.0)
py
Runtime Error
180
38256
133
import math a, b, c = map(int, input().split()) d = math.gcd(a, b) e = c/d if float.is_integer(e): print("YES") else: print("NO")
s350997479
p03730
u991134049
1590384507
Python
PyPy3 (2.4.0)
py
Runtime Error
168
38384
133
import math a, b, c = map(int, input().split()) d = math.gcd(a, b) e = c/d if float.is_integer(b): print("YES") else: print("NO")
s711597397
p03730
u991134049
1590384452
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38384
133
import math a, b, c = map(int, input().split()) d = math.gcd(a, b) e = c/d if float.is_integer(b): print("YES") else: print("NO")
s424223429
p03730
u685983477
1590271412
Python
Python (3.4.3)
py
Runtime Error
17
2940
253
a,b,c = map(int, input().split()) t = a % b if t==c: print("YES") exit() if t == 0 and c != 0: print("NO") elif t==0 and c==0: print("YES") else: for i in range(b): t*=(a%b) if t%b==c: print("YES") exit() print("NO")
s217795466
p03730
u738622346
1590165149
Python
Python (3.4.3)
py
Runtime Error
17
3060
200
import math a, b, c = map(int, input().split()) res = False n = abs(b * c // (b - a)) for i in range(n -1, n + 1 + 1): if a * i % b == c: res = True print("YES" if res == True else "NO")
s895725581
p03730
u738622346
1590165087
Python
Python (3.4.3)
py
Runtime Error
17
2940
187
a, b, c = map(int, input().split()) res = False n = abs(b * c // (b - a)) for i in range(n -1, n + 1 + 1): if a * i % b == c: res = True print("YES" if res == True else "NO")
s724683696
p03730
u167647458
1590003822
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
for i in range(1, 100): if a*i % b == c: print('YES') break else: print('NO')
s565732098
p03730
u496687522
1589504347
Python
Python (3.4.3)
py
Runtime Error
17
3060
353
A, B, C = map(int, input().split()) if A % B == 0: if C == 0: print('YES') else: print('NO') elif A > B: if C % (A % B) == 0 or (B - C) % (A % B) == 0: print('YES') else: print('NO') else: if C % (B - A) == 0 or (B - C) % A == 0 or (B - C) % (B % A): print('YE...
s714073965
p03730
u496687522
1589504158
Python
Python (3.4.3)
py
Runtime Error
17
3060
349
A, B, C = map(int, input().split()) if A == B: if C == 0: print('YES') else: print('NO') elif A > B: if C % (A % B) == 0 or (B - C) % (A % B) == 0: print('YES') else: print('NO') else: if C % (B - A) == 0 or (B - C) % A == 0 or (B - C) % (B % A): print('YES') ...
s013058031
p03730
u496687522
1589502472
Python
Python (3.4.3)
py
Runtime Error
17
3064
334
A, B, C = map(int, input().split()) if A == B: if C == 0: print('YES') else: print('NO') elif A > B: if C % (A % B) == 0 or (B - C) % (A % B) == 0: print('YES') else: print('NO') else: if C % (A % B) == 0 or (B - C) % (B % A) == 0: print('YES') else: ...
s358275381
p03730
u967822229
1589180854
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")
s220488370
p03730
u967822229
1589180819
Python
Python (3.4.3)
py
Runtime Error
18
3060
110
import math A,B,C = map(int, input().split()) if C%math.gcd(A, B)==0: print("Yes") else: print("No")
s331503138
p03730
u967822229
1589180793
Python
Python (3.4.3)
py
Runtime Error
18
2940
120
import math A,B,C = map(int, input().split()) if C%math.gcd(A, B)==0: print("Yes") break else: print("No")
s884655005
p03730
u697658632
1588742405
Python
Python (3.4.3)
py
Runtime Error
18
2940
111
import math a, b, c = map(int, input().split()) if c % math.gcd(a, b) == 0: print('YES') else: print('NO')
s272501484
p03730
u593567568
1588637432
Python
Python (3.4.3)
py
Runtime Error
18
3064
183
A,B,C = map(int,input().split()) D = A % B M = D ok = False for _ in range(B+1): if M == C: ok = True break M = (M + D) % B if ok: print('YES') else: print('NO')
s871461655
p03730
u057109575
1588548035
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38256
128
from math import gcd A, B, C = map(int, open(0).read().split()) if C % gcd(A, B) == 0: print("YES") else: print("NO")
s386514904
p03730
u277641173
1588546601
Python
Python (3.4.3)
py
Runtime Error
18
2940
155
a,b,c=map(int,input().split()) moda=a%k keep=0 for i in range(0,10**8): if (moda*i)%k==c: keep=1 print("YES") break if keep==0: print("No")
s166555626
p03730
u896741788
1588296793
Python
Python (3.4.3)
py
Runtime Error
17
2940
94
a,b,c=map(int,input().split()) from math import gcd print("NO")if c%gcd(a,b) else print("YES")
s012951448
p03730
u149991748
1588150778
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
import math a, b, c = map(int, input().split()) if c%math.gcd(a, b) == 0: print('YES') else: print('NO')
s546233690
p03730
u423665486
1588100083
Python
Python (3.4.3)
py
Runtime Error
18
3060
282
from math import gcd def ngcd(nums): n = 0 for i in nums: n = gcd(n, i) return n def resolve(): nums = list(map(int, input().split())) t = ngcd(nums) if t != 1: nums = [int(i/t) for i in nums] if gcd(nums[0], nums[1]) == 1: print("YES") else: print("NO") resolve()
s037536558
p03730
u423665486
1588100038
Python
PyPy3 (2.4.0)
py
Runtime Error
171
38384
282
from math import gcd def ngcd(nums): n = 0 for i in nums: n = gcd(n, i) return n def resolve(): nums = list(map(int, input().split())) t = ngcd(nums) if t != 1: nums = [int(i/t) for i in nums] if gcd(nums[0], nums[1]) == 1: print("YES") else: print("NO") resolve()
s519856974
p03730
u858670323
1587897485
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
a,b,c = map(int,input()) for i in range(b): if(a*i%b==c): print("YES") ans = True if(!ans):print("NO")
s909806300
p03730
u858670323
1587897429
Python
Python (3.4.3)
py
Runtime Error
18
2940
105
a,b,c = map(int,input()) for i in range(b): if(a*i%b==c): print("YES") exit() print("NO")
s982644988
p03730
u858670323
1587897323
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
import sys a,b,c = map(int,input()) for i in range(b): if(a*i%b==c): print("YES") sys.exit() print("NO")
s456297511
p03730
u021548497
1587779672
Python
Python (3.4.3)
py
Runtime Error
17
2940
114
from fructions import gcd a, b, c = map(int, input().split()) if c%gcd(a, b): print("NO") else: print("YES")
s496622007
p03730
u281610856
1587604377
Python
Python (3.4.3)
py
Runtime Error
18
3188
642
from heapq import heappush, heappop from itertools import permutations, accumulate, combinations from math import pi, gcd, ceil, floor import numpy as np from collections import defaultdict, deque from operator import itemgetter from bisect import bisect_left, bisect_right, insort_left, insort_right import sys input = ...
s050261845
p03730
u281610856
1587604094
Python
Python (3.4.3)
py
Runtime Error
18
3064
714
from heapq import heappush, heappop from itertools import permutations, accumulate, combinations from math import pi, gcd, ceil, floor import numpy as np from collections import defaultdict, deque from operator import itemgetter from bisect import bisect_left, bisect_right, insort_left, insort_right import sys input = ...
s043425766
p03730
u189479417
1587598049
Python
Python (3.4.3)
py
Runtime Error
17
2940
131
import sys A, B, C = map(int,input()) for i in range(B): if A * i % B == C: print('YES') sys.exit() print('NO')
s682409403
p03730
u652656291
1587501978
Python
Python (3.4.3)
py
Runtime Error
18
3060
113
import math a,b,c = map(int,input().split()) g = math.gcd(a, b) if c%g == 0: print('YES') else: print('NO')
s397113612
p03730
u652656291
1587501726
Python
Python (3.4.3)
py
Runtime Error
17
2940
113
import math a,b,c = map(int,input().split()) g = math.gcd(a,b) if c%g == 0: print('YES') else: print('NO')
s314867662
p03730
u652656291
1587501639
Python
Python (3.4.3)
py
Runtime Error
18
2940
129
import math a,b,c = map(int,input().split()) g = math.gcd(a,b) if c%g == 0: answer = 'YES' else: answer = 'NO' print(answer)
s523171711
p03730
u578694888
1587334526
Python
Python (3.4.3)
py
Runtime Error
17
2940
138
# -*- coding: utf-8 -*- import math a,b,c=map(int, input().split()) d=math.gcd(a,b) if c%d==0: print('YES') else: print('NO')
s444673146
p03730
u578694888
1587334462
Python
Python (3.4.3)
py
Runtime Error
17
2940
138
# -*- coding: utf-8 -*- import math a,b,c=map(int, input().split()) d=math.gcd(a,b) if c%d==0: print("YES") else: print("NO")
s203561971
p03730
u832473530
1587310355
Python
Python (3.4.3)
py
Runtime Error
18
2940
113
a,b,c =map(int,input().split()) for num in range(1,b): if a*num%b==c : print("YES");sys.exit(0); print("NO")
s165982909
p03730
u535659144
1587147248
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
import math a,b,c=map(int,input().split()) if c%math.gcd(a,b): print("NO") else: print("YES")
s372777981
p03730
u707124227
1586958040
Python
Python (3.4.3)
py
Runtime Error
18
2940
101
a,b,c=map(int,input().split()) import math ans = 'Yes' if c % math.gcd(a,b) == 0 else 'No' print(ans)
s090504040
p03730
u504335849
1586807479
Python
Python (3.4.3)
py
Runtime Error
17
2940
123
a,b,c = list(map(int, input().split())) for i in range(b): if (i+1)*a%(b) == c: print('YES') sys.exit() print('NO')
s944312563
p03730
u504335849
1586807401
Python
Python (3.4.3)
py
Runtime Error
17
2940
123
a,b,c = list(map(int, input().split())) for i in range(b): if (i+1)*a%(b) == c: print('YES') sys.exit() print('NO')
s301008802
p03730
u504335849
1586807349
Python
Python (3.4.3)
py
Runtime Error
17
2940
121
a,b,c = list(map(int, input().split())) for i in range(b): if i*a%(b+1) == c: print('YES') sys.exit() print('NO')
s717756090
p03730
u504335849
1586807296
Python
Python (3.4.3)
py
Runtime Error
17
2940
117
a,b,c = list(map(int, input().split())) for i in range(b): if i*a%b == c: print('YES') sys.exit() print('NO')
s900347918
p03730
u623819879
1586731426
Python
PyPy3 (2.4.0)
py
Runtime Error
217
40940
2166
from heapq import heappush,heappop,heapify from collections import deque,defaultdict,Counter from itertools import permutations,combinations,groupby import sys,bisect,string,math,time,functools,random def Golf():*a,=map(int,open(0)) def I():return int(input()) def S_():return input() def IS():return input().split() def...
s613986191
p03730
u529870875
1586624069
Python
Python (3.4.3)
py
Runtime Error
18
2940
126
a,b,c = map(int,input().split()) s = sum(list(map(int,input().split()))) if s % b ==c: print("YES") else: print("NO")
s490877527
p03730
u478266845
1585591385
Python
Python (3.4.3)
py
Runtime Error
20
2940
158
## A*n = C mod B from math import gcd A,B,C = [int(i) for i in input().split()] if math.gcd(A,B) == math.gcd(B,C): print("YES") else: print("NO")
s720102473
p03730
u686390526
1585520303
Python
Python (3.4.3)
py
Runtime Error
18
2940
166
A, B, C = map(int, input().split()) li=[] for i in range(1000000): c=A*(i+1)%B if c in li: break li += c if C in li: print("YES") else: print("NO")
s198201226
p03730
u287500079
1585257562
Python
PyPy3 (2.4.0)
py
Runtime Error
264
59500
824
import sys, re, os from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, acos, atan, asin from itertools import permutations, combinations, product, accumulate from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowe...
s619584844
p03730
u287500079
1585257475
Python
Python (3.4.3)
py
Runtime Error
37
5144
824
import sys, re, os from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, acos, atan, asin from itertools import permutations, combinations, product, accumulate from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowe...
s964271907
p03730
u187058053
1585243133
Python
Python (3.4.3)
py
Runtime Error
17
2940
168
a, b, c = map(int, input().split()) flg = 0 for i in range(100000000): if (i*a)%b = c: flg+=1 break if flg==0: print("NO") else: print("YES")
s306680146
p03730
u964299793
1585192894
Python
Python (3.4.3)
py
Runtime Error
17
3064
406
w,h,n=map(int,input().split()) mat=[[1]*h for _ in range(w)] print(mat) l=[-1]*5 l[2]=float('inf') l[4]=float('inf') for _ in range(n): x,y,a=map(int,input().split()) if a==1: l[1]=max(l[1],x) elif a==2: l[2]=min(l[2],x) elif a==3: l[3]=max(l[3],y) else: l[4]=min(l[4]...
s044726041
p03730
u626217906
1584860991
Python
PyPy3 (2.4.0)
py
Runtime Error
200
38512
215
n = int(input()) a = [] for i in range(n): a.append(int(input())) k = 1 p = False for i in range(n): if a[k-1] == 2: print(i+1) p = True break k = a[k-1] if not p: print(-1)
s965647713
p03730
u723583932
1584339255
Python
Python (3.4.3)
py
Runtime Error
18
3064
207
#abc056 b a,b,c=map(int,input().split()) num=[] i=1 n=a while True: n=n*i x=n%b if x not in num: num.append(x) else: break if c in x: print("YES") else: print("NO")
s925234125
p03730
u088063513
1584127453
Python
Python (3.4.3)
py
Runtime Error
52
5688
243
## coding: UTF-8 from fractions import gcd s = input().split() t = [int(p) for p in s] #print(t) A = t[0] B = t[1] C = t[2] print(A) print(B) Gcd = math.gcd(A, B) print(Gcd) print(C) if(C % Gcd == 0): print("YES") else: print("NO")
s873066896
p03730
u088063513
1584126195
Python
Python (3.4.3)
py
Runtime Error
17
3060
189
## coding: UTF-8 import math s = input().split() t = [int(p) for p in s] #print(t) A = t[0] B = t[1] C = t[2] Gcd = math.gcd(A, B) if(C % Gcd == 0): print("YES") else: print("NO")
s542948413
p03730
u829796346
1583772908
Python
Python (3.4.3)
py
Runtime Error
27
3444
172
import math A,B,C=map(int,input().split()) lcm = A*B//math.gcd(A,B) #A*(i+j)%B=C #A*(i+j)=BX+C i=A while i<=lcm: if i%B==C: print("YES") exit() i*=A print("NO")
s741770334
p03730
u746849814
1582589433
Python
Python (3.4.3)
py
Runtime Error
17
3060
123
a, b, c = map(int, input().split()) for i in range(i, b+1): if a*i%b == c: print('YES') break else: print('NO')
s725801385
p03730
u016901717
1582582833
Python
Python (3.4.3)
py
Runtime Error
17
2940
113
from math import gcd a,b,c = map(int,input().split()) if c % gcd(a,b)==0: print("Yes") else : print("No")
s945707798
p03730
u016901717
1582581958
Python
PyPy2 (5.6.0)
py
Runtime Error
35
27756
113
from math import gcd a,b,c = map(int,input().split()) if c % gcd(a,b)==0: print("Yes") else : print("No")