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
s572217758
p03657
u346677493
1583684184
Python
Python (2.7.6)
py
Runtime Error
10
2568
80
a=input() b=input() if (a+b)%3==0: print "Possible" else: print "Impossible"
s815972133
p03657
u975719989
1583614366
Python
Python (3.4.3)
py
Runtime Error
17
2940
127
a,b = map(int,input().split()) if a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0 print("Possible") else: print("Impossible")
s210409870
p03657
u757030836
1582330276
Python
Python (3.4.3)
py
Runtime Error
17
2940
159
N,K = map(int,input().split()) list = [int(i) for i in input().split()] list.sort(reverse=True) ans = 0 for i in range(K): ans += list[i] print(ans)
s493770911
p03657
u759412327
1581990046
Python
Python (3.4.3)
py
Runtime Error
17
3188
110
A,B = map(input().split()) if A%3==0 or B%3==0 or (A+B)%3==0: print("Possible") else: print("Impossible")
s496023867
p03657
u467307100
1581945722
Python
Python (3.4.3)
py
Runtime Error
17
2940
131
a, b= map(int, input().split()) x = False for i in [a, b, a+b]: if i%3 == 0: x = True print("Possible" if x else "Impossible"
s656575410
p03657
u857070771
1581916844
Python
Python (3.4.3)
py
Runtime Error
18
3188
100
n,k=map(int,input().split()) *l,=map(int,input().split()) l=sorted(l,reverse=True) print(sum(l[:k]))
s151334057
p03657
u086503932
1581459953
Python
Python (3.4.3)
py
Runtime Error
17
2940
102
A,B=map(int,input().split()) print('Possible') if A%3==0or B%3==0or(A+B)%3==0 else print('Impossible')
s443633730
p03657
u127499732
1580139284
Python
Python (3.4.3)
py
Runtime Error
18
3060
204
n=int(input()) l=list(map(int,input().split())) b,i,c=10**9,1,True while(i<n and c): p=sum(l[:i]) q=sum(l[i:]) if min(b,abs(p-q))!=abs(p-q): break else: b=min(b,abs(p-q)) i+=1 print(b)
s001605255
p03657
u127499732
1580139034
Python
Python (3.4.3)
py
Runtime Error
17
3060
180
n=int(input()) l=list(map(int,input().split())) b,i,c=10**9,1,True while(i<n and c): p=sum(l[:i]) q=sum(l[i:]) c=min(b,abs(p-q))==abs(p-q) b=min(b,abs(p-q)) i+=1 print(b)
s379587274
p03657
u079022116
1578290972
Python
Python (3.4.3)
py
Runtime Error
17
2940
110
a,b,c=map(int,input().split()) if a%3==0 or b%3==0 or (a+b)%3==0: print('Possible') else:print('Impossible')
s806815382
p03657
u244416763
1577418837
Python
Python (3.4.3)
py
Runtime Error
17
3064
300
n = int(input()) a = list(map(int, input().split())) s = [0] if (n == 2): printf(abs(a[0] - a[1])) else: for i in range(n): s.append(a[i] + s[i]) b = 1e+9 for j in range(n+1): if (abs(s[j] - (s[n] - s[j])) < b): b = abs(s[j] - (s[n] - s[j])) print(b)
s351878632
p03657
u244416763
1577418304
Python
Python (3.4.3)
py
Runtime Error
17
3060
225
n = int(input()) a = list(map(int, input().split())) s = [0] for i in range(n): s.append(a[i] + s[i]) b = 1e+9 for j in range(n+1): if (abs(s[j] - (s[n] - s[j])) < b): b = abs(s[j] - (s[n] - s[j])) print(b)
s124416115
p03657
u846652026
1577400221
Python
Python (3.4.3)
py
Runtime Error
17
2940
247
import sys a, b = map(int, input().split()) if a != 0 and a%3 = 0: print("Possible") sys.exit() if b != 0 and b%3 = 0: print("Possible") sys.exit() if a != 0 and b != 0 and (a+b)%3: print("Possible") sys.exit() print("Impossible")
s787645206
p03657
u972892985
1577219615
Python
Python (3.4.3)
py
Runtime Error
18
2940
87
n, k = map(int,input().split()) l = list(input()) a = sorted(l)[::1] print(sum(a)[-k:])
s459160850
p03657
u374146618
1577041767
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
a, b = map(int, input().split()) if a%3==0 or b%3==0 or (a+b)%==0: print("Possible") else: print("Impossible")
s724530106
p03657
u251582062
1576594970
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
def cookies(A,B): if A%3==0 or B%3==0 or (A+B)%3==0: return 'Possible' else: return 'Impossible
s380812714
p03657
u629013088
1576484077
Python
Python (3.4.3)
py
Runtime Error
17
2940
154
a = int(input("The number of A cookies.")) b = int(input("The number of B cookies.")) if (a+b)%3 == 0: print("Possible") else: print("Impossible")
s987332748
p03657
u695079172
1576465703
Python
Python (2.7.6)
py
Runtime Error
10
2568
124
a,b = map(int,input().split()) if a % 3 == 0 or b % 3 == 0 or (a+b)%3 == 0: print("Possible") else: print("Impossible")
s727339291
p03657
u905582793
1576048156
Python
Python (3.4.3)
py
Runtime Error
17
2940
99
a,b = map(int, input()) if a%3 and b%3 and (a+b)%3: print("Impossible") else: print("Possible")
s813799275
p03657
u135847648
1575748405
Python
Python (3.4.3)
py
Runtime Error
17
3060
208
import itertools n = int(input()) a = list(map(int,input().split())) s = sum(a) ac = list(itertools.accumulate(a)) print(ac) ans = 10**20 for i in range(n-1): ans = min(ans,abs(ac[i]*2-s)) print(ans)
s219519854
p03657
u696444274
1573605486
Python
Python (3.4.3)
py
Runtime Error
17
2940
156
data = list(map(int, input().split()) if data[0]%3==0 or data[1]%3==0 or (data[0]+data[1])%3==0: print("Possible") else: print("Impossible")
s775250112
p03657
u672882146
1573592361
Python
Python (3.4.3)
py
Runtime Error
17
2940
116
a,b=map(int, input().split()) if (a+b)%3 ==0 or a%==0 or b%==0: print("Possible") else: print("Impossible")
s408310314
p03657
u336624604
1573358175
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
a, b = map(int, input().split()) if a%3==0 or b%3==0 or (a+b)%==0: print('Possible') else: print('Impossible')
s041417757
p03657
u336624604
1573358151
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
a, b = map(int, input().split()) if a%3==0 or b%3==0 of (a+b)%==0: print('Possible') else: print('Impossible')
s493985084
p03657
u336624604
1573358084
Python
Python (3.4.3)
py
Runtime Error
17
3064
117
a, b = map(int, input().split()) if a%3==0 or b%==0 of (a+b)%==0: print('Possible') else: print('Impossible')
s592980730
p03657
u914330401
1572887638
Python
Python (3.4.3)
py
Runtime Error
20
2940
127
a, b = map(int, input().split()) if a % 3 == 0 or b % 3 == 0 or (a+b) % 3 == 0: print("Possible") else: Print("Impossible")
s447443769
p03657
u755545520
1572221327
Python
Python (3.4.3)
py
Runtime Error
17
2940
159
a,b=map(int,input().split()) if a%3 ==0: print('Possible') elif b%3 ==0: print('Possible') elif (a+b)%3 ==0: print('Possible') else print('Impossible')
s277522960
p03657
u288948615
1571179009
Python
Python (3.4.3)
py
Runtime Error
18
2940
112
N, K = map(int, input().split()) L = [int(l) for l in input().split()] L.sort(reverse=True) print(sum(L[0:K:]))
s650572617
p03657
u791838908
1570733451
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38384
188
N = int(input()) I = list(map(int, input().split())) minX = 10000000000 start = 0 for i in range(1, len(I)): start += I[i-1] minX = min(minX, abs(start - sum(I[-i:]) ) ) print(minX)
s069033460
p03657
u791838908
1570733110
Python
PyPy3 (2.4.0)
py
Runtime Error
185
38640
165
N = int(input()) I = list(map(int, input().split())) minX = 1000000 for i in range(1, len(I)): minX = min(minX, abs(sum(I[:-i]) - sum(I[-i:]) ) ) print(minX)
s151072108
p03657
u617203831
1570243117
Python
Python (3.4.3)
py
Runtime Error
17
2940
78
a,b=map(int,input().split() print("Impossible" if a*b*(a+b)%3 else "Possible")
s671645608
p03657
u161318582
1569883387
Python
Python (3.4.3)
py
Runtime Error
18
3060
127
a = list(map(int, input().split())) if a[0]%3==0 or a[1]%3==0 or (a[0]+a[1])%3==0: print(Possible) else: print(Impossible)
s833000333
p03657
u161318582
1569883237
Python
Python (3.4.3)
py
Runtime Error
17
2940
128
a = list(map(int(), input().split())) if a[0]%3==0 or a[1]%3==0 or (a[0]+a[1])%3==0: print(Possible) else: print(Impossible)
s509636538
p03657
u463775490
1569883048
Python
Python (3.4.3)
py
Runtime Error
17
2940
109
a,b = map(int,input()) if a%3==0 or b%3==0 or (a+b)%3==0: print('Possible') else: print('Impossible')
s814977099
p03657
u853185302
1569812934
Python
Python (3.4.3)
py
Runtime Error
17
2940
82
a,b = map(int,input().split()) print("Possible" if (A+B)%3 == 0 else "Impossible")
s627984369
p03657
u785470389
1569739462
Python
Python (3.4.3)
py
Runtime Error
17
2940
132
a, b = int(input()) if (a % 3 == 0) or (b % 3 == 0) or ((a + b) % 3 == 0): ans = "Possible" else : ans = "Impossible" print(ans)
s861047280
p03657
u310678820
1569523927
Python
Python (3.4.3)
py
Runtime Error
21
3316
842
from collections import deque import sys sys.setrecursionlimit(1000000000) N = int(input()) edges = [[] for _ in range(N)] for _ in range(N-1): a, b = map(int, input().split()) edges[a-1].append(b-1) edges[b-1].append(a-1) que = deque([0]) parent = [-1]*N parent[0] = 0 while que: cur = que.pop() for...
s777679000
p03657
u740047492
1569352753
Python
Python (3.4.3)
py
Runtime Error
17
3060
275
a, b, c = map(int, input().split()) if a % 3 == 0 and b % 3 != 0 and (a + b) % 3 != 0: print("Possible") elif b % 3 == 0 and a % 3 != 0 and (a + b) % 3 != 0: print("Possible") elif (a + b) % 3 == 0 and a % 3 != 0 and b % 3 != 0: print("Possible") else: ("Inpossible")
s352435822
p03657
u740047492
1569352688
Python
Python (3.4.3)
py
Runtime Error
17
3060
275
a, b, c = map(int, input().split()) if a % 3 == 0 and b % 3 != 0 and (a + b) % 3 != 0: print("Possible") elif b % 3 == 0 and a % 3 != 0 and (a + b) % 3 != 0: print("Possible") elif (a + b) % 3 == 0 and a % 3 != 0 and a % 3 != 0: print("Possible") else: ("Inpossible")
s417006486
p03657
u740047492
1569352635
Python
Python (3.4.3)
py
Runtime Error
17
2940
232
a, b, c = map(int, input().split()) if a % 3 == 0 and b % 3 != 0 and (a + b) % 3 != 0: print("possible") elif b % 3 == 0 and a % 3 != 0 and (a + b) % 3 != 0: print("possible") elif (a + b) % 3 == 0 and a % 3 != 0 and a % 3 != 0:
s984238471
p03657
u873269440
1569188187
Python
Python (3.4.3)
py
Runtime Error
17
2940
56
print('Possible' if int(input())%3==0 else 'Impossible')
s774491455
p03657
u305732215
1568777470
Python
Python (3.4.3)
py
Runtime Error
17
2940
127
a, b = map(int, input().split()) s = a + b if a%3 == 0 or b%3 == 0 or s%3 == 0: print('Possible') else: print('Impossible)
s352342433
p03657
u616393299
1568428423
Python
Python (3.4.3)
py
Runtime Error
17
2940
103
A, B = input.split() n = int(A) + int(B) if n % 3 == 0: print(Possible) else: print(Impossible)
s516924605
p03657
u787456042
1568208712
Python
Python (3.4.3)
py
Runtime Error
17
2940
68
A,B=map(int,input().split());print("YNeos"[all(A%3,B%3,(A+B)%3)::2])
s494616769
p03657
u721425712
1567868945
Python
Python (3.4.3)
py
Runtime Error
17
2940
160
N, K = map(int, input().split()) l = list(map(int, input().split())) l.sort(reverse=True) ans = [] for i in range(K): ans.append(l[i]) print(sum(ans))
s975474731
p03657
u033606236
1567457643
Python
Python (3.4.3)
py
Runtime Error
18
2940
86
a,b = int(input()),int(input()) print("Possible" if a*b*(a+b)%3==0 else "Impossible")
s871487723
p03657
u325227960
1567423286
Python
PyPy3 (2.4.0)
py
Runtime Error
172
38640
135
a, b, c = map(int,input().split()) if a % 3 == 0 or b % 3 == 0 or (a+b) % 3 == 0: print("Possible") else: print("Impossible")
s831075830
p03657
u395202850
1567007697
Python
Python (3.4.3)
py
Runtime Error
18
3188
114
a, b = map(int, input().split()) print("Possible" if(a % 3 == 0 and b % 3 == 0 (a+b) % 3 == 0) else "Impossible")
s825273156
p03657
u643714578
1566677690
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
N, K = map(int, input().split()) pint("Possible" if N*K*(N+K)%3==0 else "Impossible")
s341037141
p03657
u627530854
1566247954
Python
Python (3.4.3)
py
Runtime Error
17
2940
123
(a, b) = (int(tok) for tok in input().split()) print("Possible" if any(s % 3 == 0 for s in [a, b, a + b] else "Impossible")
s902936880
p03657
u302292660
1566052626
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
a,b = map(int,input().split()) orint("Possible" if a%3==0 or b%3==0 or (a+b)%3==0 else "Impossible")
s347510547
p03657
u093033848
1565927916
Python
Python (3.4.3)
py
Runtime Error
17
2940
127
a, b = map(int, input().split()) if a % 3 == 0 or b % 3 == 0 or (a*b) % == 0 : print("Possible") else: print("Impossible")
s594028412
p03657
u464912173
1565859207
Python
Python (3.4.3)
py
Runtime Error
17
2940
139
a,b = map(int,input().split()) if a % 3 == 0 or b % 3 == 0 or (a+b) % 3 == 0: print('Possible') else: print('Impossible')
s655033287
p03657
u464912173
1565859094
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
a = map(int,input().split()) print('possible' if (a+b)% ==0 else 'impossible')
s518873067
p03657
u598229387
1565819436
Python
Python (3.4.3)
py
Runtime Error
18
3064
129
a,b = map(int,input().split()) if a % 3 == 0 or b % 3 == 0 or (a+b) % e == 0: print('Possible') else: print('Impossible')
s786847280
p03657
u248670337
1565792118
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
a,b=map(int,input().split()) print("Possible" iaf any([a%3==0,b%3==0,(a+b)%3==0]) else "Impossible")
s045817760
p03657
u248670337
1565792045
Python
Python (3.4.3)
py
Runtime Error
18
2940
97
a,b=map(int,input().split()) print("Possible" if any(a%3==0,b%3==0,(a+b)%3==0) else "Impossible")
s785556090
p03657
u908763441
1565619767
Python
Python (3.4.3)
py
Runtime Error
17
2940
114
N, K = map(int, input().split()) l = sorted(list(map(int, input().split())), reverse=True) print(str(sum(l[0:K])))
s317340188
p03657
u908763441
1565619691
Python
Python (3.4.3)
py
Runtime Error
20
2940
114
N, K = map(int, input().split()) l = sorted(list(map(int, input().split())), reverse=True) print(str(sum(l[0:K])))
s652025119
p03657
u408620326
1565110261
Python
Python (3.4.3)
py
Runtime Error
17
2940
132
a,b=[int(x) for x in input().split()] if (a%3==1 and b%d==1) or (a%3==2 and b%3==2): print('Possible') else: print('Impposible')
s477559819
p03657
u740767776
1564976539
Python
Python (3.4.3)
py
Runtime Error
17
2940
102
A, B = list(map(int,input().split())) if A * B % == 0: print("Possible") else: print("Impossible")
s875288200
p03657
u921773161
1563925537
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
a,b = map(int,input().split()) c = a+b if c%3 == 0: print('Possible') else: print('Impossible ')
s377559394
p03657
u797016134
1563505723
Python
Python (3.4.3)
py
Runtime Error
17
2940
96
a,b = map(int, input().split()) if (a+b) % : print("Impossible") else: print("Possible")
s282231379
p03657
u066455063
1563502718
Python
Python (3.4.3)
py
Runtime Error
17
2940
210
N, K = map(int, input().split()) l = list(map(int, input().split())) l.sort(reverse=True) ans = 0 for i in range(N): if K != 0: ans += l[i] K -= 1 elif K == 0: break print(ans)
s394916087
p03657
u003501233
1562807407
Python
Python (3.4.3)
py
Runtime Error
18
2940
111
A,B=map(int,input().split()) if A%3==0 or B%3== or (A+B)%3==0: print("Possible") else: print("Impossible")
s443590364
p03657
u224951113
1562599975
Python
Python (3.4.3)
py
Runtime Error
17
2940
184
#include <bits/stdc++.h> using namespace std; int main() { int A,B; cin >>A>>B; if(A%3==0 ||B%3==0 ||(A+B)%3==0){ cout <<"Possible"; } else{ cout <<"Impossible";} }
s014164448
p03657
u224951113
1562599963
Python
Python (3.4.3)
py
Runtime Error
18
2940
184
#include <bits/stdc++.h> using namespace std; int main() { int A,B; cin >>A>>B; if(A%3==0 ||B%3==0 ||(A+B)%3==0){ cout <<"Possible"; } else{ cout <<"Impossible";} }
s939889211
p03657
u855819610
1562203682
Python
Python (3.4.3)
py
Runtime Error
18
3064
241
N = int(input()) l = list(map(int,input().split())) sum_s= 0 sum_a = 0 diff = 100*100 for a in range(len(l)-1): sum_s = sum(l[:a+1]) sum_a = sum(l[a+1:]) if diff > abs(sum_s - sum_a): diff = abs(sum_s - sum_a) print(diff)
s546478317
p03657
u855819610
1562184718
Python
Python (3.4.3)
py
Runtime Error
17
3064
381
N = int(input()) l = list(map(int,input().split())) Sum = sum(l) print(Sum) a = Sum/2 b = 0 c = 0 if Sum > 0: for i in range(len(l)): b += l[i] if b > a: c = b - l[i] break if Sum < 0: for i in range(len(l)): b += l[i] if b < a: c = b - l[i] ...
s000798453
p03657
u349873261
1562180262
Python
Python (3.4.3)
py
Runtime Error
17
2940
117
N,K=map(int,input().split(" ")) nums=map(int,input().split(" ")) nums=sorted(nums,reverse=True) print(sum(nums[0:K]))
s908826331
p03657
u855819610
1562180145
Python
Python (3.4.3)
py
Runtime Error
17
3060
140
N,K = map(int,input().split()) l = list(map(int,input().split())) l.sort() l.reverse() Sum = 0 for i in range(K): Sum+=l[i] print(Sum)
s874402618
p03657
u556589653
1561744320
Python
Python (3.4.3)
py
Runtime Error
17
2940
131
N,K = map(int,input().split()) l = list(map(int,input().split())) ans = 0 sorted(l) for i in range(K): ans += l[n-i-1] print(ans)
s773009857
p03657
u556589653
1561744307
Python
Python (3.4.3)
py
Runtime Error
18
3064
131
N,K = map(int,input().split()) l = list(map(int,input().split())) ans = 0 sorted(l) for i in range(K): ans += l[n-i+1] print(ans)
s249875965
p03657
u556589653
1561744109
Python
Python (3.4.3)
py
Runtime Error
17
3060
126
N,K = map(int,input().split()) l = list(map(int,input().split())) ans = 0 l.sort() for i in range(K): ans += l[i] print(ans)
s697820945
p03657
u552122040
1561420419
Python
Python (3.4.3)
py
Runtime Error
23
3316
265
n = int(input()) list_a = list(map(int, input().split(" "))) min_diff = 10**9 for i in range(len(list_a)-1): sunuke = sum(list_a[:i+1]) arai = sum(list_a[i+1:]) diff = abs(sunuke - arai) if min_diff > diff: min_diff = diff print(min_diff)
s426659393
p03657
u200785298
1560910631
Python
PyPy3 (2.4.0)
py
Runtime Error
188
40176
1230
#!/usr/bin/env python3 import sys sys.setrecursionlimit(300000) def solve(N: int, a: "List[int]", b: "List[int]"): conn = [[] for _ in range(N)] for i in range(N - 1): conn[a[i] - 1].append(b[i] - 1) conn[b[i] - 1].append(a[i] - 1) def dfs(idx, cur, conn, dis): dis[idx] = cur ...
s661382381
p03657
u497596438
1560909436
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38256
111
A,B=map(int,input().split()) if A%3==0 or B%3==0 or (A+B)%3==0: print(Possible) else: print(Impossible)
s740251993
p03657
u296150111
1560456154
Python
Python (3.4.3)
py
Runtime Error
18
2940
101
a,b=map(int,input()) if a%3==0 or b%3==0 or (a+b)%3==0: print("Possible") else: print("Impossible")
s826015556
p03657
u663014688
1560357790
Python
Python (3.4.3)
py
Runtime Error
17
2940
151
N,K = map(int, input().split()) ans = 0 l = [int(i) for i in input().split()] l = sorted(l, reverse=True) for i in range(K): ans += l[i] print(ans)
s837782066
p03657
u584529823
1560104450
Python
Python (3.4.3)
py
Runtime Error
18
2940
111
N, K = map(int, input().split()) ls = list(map(int, input().split())) print(sum(sorted(ls, reverse=True)[:K]))
s997140662
p03657
u399721252
1559084614
Python
Python (3.4.3)
py
Runtime Error
17
2940
144
a, b = [ int(input()) for i in input().split() ] ans = "Impossible" if a % 3 == 0 or b % 3 == 0 or (a+b) % 3 == 0: ans = "Possible" print(ans)
s002493898
p03657
u399721252
1559084510
Python
Python (3.4.3)
py
Runtime Error
17
2940
144
a, b = [ int(input()) for i in input().split() ] ans = "Impossible" if a % 3 == 0 or b % 3 == 0 or (a+b) % 3 == 0: ans = "Possible" print(ans)
s961692893
p03657
u676496404
1558033839
Python
Python (3.4.3)
py
Runtime Error
17
2940
89
n,k=int(input().split()) if (n+k)%3 == 0: print("Possible") else: print("Impossible")
s114605759
p03657
u374103100
1557889873
Python
Python (3.4.3)
py
Runtime Error
21
3316
359
# https://atcoder.jp/contests/abc067/tasks/abc067_a import itertools from collections import Counter from collections import defaultdict import bisect def main(): A, B = map(int, input().split()) if A % 3 == 0 or B % 0 == 0 or (A + B) % 3 == 0: print('Possible') else: print('Impossible') ...
s234542894
p03657
u278886389
1557329053
Python
Python (3.4.3)
py
Runtime Error
17
2940
73
A,B=input().split(" ") print("Impossible" if A*B*(A+B)%3 else "Possible")
s650553775
p03657
u532966492
1557162968
Python
Python (3.4.3)
py
Runtime Error
17
2940
84
A,B=map(int,input().split());print(("Possible","Impossible")[min([A%3,B%3,(A+B)%3])]
s928016011
p03657
u507116804
1556683883
Python
Python (3.4.3)
py
Runtime Error
17
2940
95
a,b=map(int, input().split()) if (a+b)%3==0: print("Possible") elif: print("Impossible")
s305724675
p03657
u575279726
1556393575
Python
Python (3.4.3)
py
Runtime Error
17
2940
252
#include <iostream> int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); int A, B; std::cin >> A >> B; if (A % 3 == 0 || B % 3 == 0 || (A + B) % 3 == 0)std::cout << "Possible"; else std::cout << "Impossible"; return 0; }
s125600824
p03657
u575279726
1556393476
Python
Python (3.4.3)
py
Runtime Error
17
2940
252
#include <iostream> int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); int A, B; std::cin >> A >> B; if (A % 3 == 0 || B % 3 == 0 || (A + B) % 3 == 0)std::cout << "Possible"; else std::cout << "Impossible"; return 0; }
s980646730
p03657
u788856752
1556292143
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
A, B = map(int, input().split()) print("No") if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0: print("Possible") else: print("Impossible")
s619398497
p03657
u788856752
1556292080
Python
Python (3.4.3)
py
Runtime Error
17
2940
135
A, B = maP(int, input().split()) if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0: print("Possible") else: print("Impossible")
s560631347
p03657
u621100542
1555907324
Python
PyPy3 (2.4.0)
py
Runtime Error
168
38768
234
# coding: utf-8 # Your code here! import math N = int(input()) lst = list(map(int,input().split())) x = lst[0] y = sum(lst[1:]) ans = abs(y - x) for i in range(1,N-1): x+=lst[i] y-=lst[i] ans = min(ans,abs(x-y)) print(ans)
s307253218
p03657
u621935300
1555891529
Python
PyPy2 (5.6.0)
py
Runtime Error
49
28524
1283
# -*- coding: utf-8 -*- import sys from collections import deque N=input() nl=[ [] for i in range(N+1)] D=[ 0 for i in range(N+1)] # No.1からの距離 V=[ 0 for i in range(N+1)] # 訪問済みフラグ for i in range(N-1): a,b=map(int, sys.stdin.readline().split()) nl[a].append(b) nl[b].append(a) def bfs(v): #1からの頂点Nまでの距離を算出 q = de...
s034905914
p03657
u144980750
1555822541
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
a,b=map(int,input().split()) if a%3==0 or b%3==0 (a+b)%3==0: print("Possible") else: print("Impossible")
s418745010
p03657
u144980750
1555822507
Python
Python (3.4.3)
py
Runtime Error
17
2940
111
a,b=map(int,input().split()) if a//3==0 or b//3==0 (a+b)//3==0: print("Possible") else: print("Impossible")
s440635375
p03657
u331464808
1555445410
Python
Python (3.4.3)
py
Runtime Error
18
2940
83
a,b=map(int,input().split()) if(a+b)%3: print(Impossible) else: print(Possible)
s446002144
p03657
u268516119
1555168636
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
A,B=map(int,input().split()) print(["Possible","Impossible][bool(A*B*(A+B))])
s591733133
p03657
u288040231
1554715131
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
A,B = map(int, input().split()) print('Possible' if 0 in (A % 3 or B % 3 or (A + B) % 3) else 'Impossible')
s614681046
p03657
u288040231
1554715102
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
A,B = map(int, input().split()) print('Possible' if (A % 3 or B % 3 or (A + B) % 3) in 0 else 'Impossible')
s082013693
p03657
u288040231
1554715005
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
A,B = map(int, input().split()) print('Possible' if 0 in (A % 3 or B % 3 or (A + B) % 3) else 'Impossible')