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
s556720541
p03573
u992910889
1586384094
Python
Python (3.4.3)
py
Runtime Error
292
17284
763
def resolve(): from scipy.sparse.csgraph import connected_components # https://note.nkmk.me/python-scipy-connected-components/ from scipy.sparse import csr_matrix N, M = map(int, input().split()) # 頂点数、辺数 A, B, C = [0] * M, [0] * M, [1] * (M-1) for i in range(M): A[i], B[i] = map(int, in...
s950477585
p03573
u992910889
1586384056
Python
PyPy3 (2.4.0)
py
Runtime Error
161
38256
763
def resolve(): from scipy.sparse.csgraph import connected_components # https://note.nkmk.me/python-scipy-connected-components/ from scipy.sparse import csr_matrix N, M = map(int, input().split()) # 頂点数、辺数 A, B, C = [0] * M, [0] * M, [1] * (M-1) for i in range(M): A[i], B[i] = map(int, in...
s103829905
p03573
u992910889
1586384025
Python
Python (3.4.3)
py
Runtime Error
402
24580
814
def input(): return sys.stdin.readline().strip() def resolve(): from scipy.sparse.csgraph import connected_components # https://note.nkmk.me/python-scipy-connected-components/ from scipy.sparse import csr_matrix N, M = map(int, input().split()) # 頂点数、辺数 A, B, C = [0] * M, [0] * M, [1] * (M-1) ...
s683484294
p03573
u772649753
1586289645
Python
Python (3.4.3)
py
Runtime Error
17
2940
95
a,b,c = map(int,inout().split()) if a == b: print(c) elif b == c: print(a) else: print(b)
s120006439
p03573
u145600939
1586021383
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
a,b,c = map(int,input()) if a == b: print(c) elif b == c: print(a) else: print(b)
s562280228
p03573
u063346608
1585660617
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
A,B,C = map(int,input()split()) if A == B: answer = C elif B == C: answer = A elif A ==C: answer = B print(answer)
s446087670
p03573
u453815934
1585529330
Python
Python (3.4.3)
py
Runtime Error
18
2940
102
a,b,c = int(map(input().split())) if a == b: print(c) elif a == c: print(b) else: print(a)
s525920722
p03573
u230717961
1584296061
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
a, b, c = [int(i) for i in input().splt()] if a == b: print(c) elif b == c: print(a) else: print(b)
s045579807
p03573
u565093947
1583927983
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
a,b,c=map(int,input().split()) print(a if b==c else b if a==c else c if a==b)
s723544600
p03573
u137808818
1583681806
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
a,b,c = map(int,input().split()) print(a if b==c else b if a==c else c if a==b)
s637543539
p03573
u137808818
1583681706
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
a,b,c = map(int,input().split()) print('a' if b==c else 'b' if a==c else 'c' if a==b)
s062170636
p03573
u137808818
1583681622
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
a,b,c = map(int,input().split()) print('a' if b==c else 'b' if a==c else 'c' if a=b)
s040224538
p03573
u346677493
1583680644
Python
Python (2.7.6)
py
Runtime Error
10
2568
130
a,b,c=map(int,raw_input().split()) if a ==b and a!=c: print c elif b == c and b != a: print a elif: a==c and a !=b: print b
s112149492
p03573
u992910889
1582500333
Python
Python (3.4.3)
py
Runtime Error
17
2940
94
S=list(map(int,input().split())) for i in range(2): if count(S[i])==1: print(S[i])
s954340974
p03573
u816631826
1581995866
Python
Python (3.4.3)
py
Runtime Error
17
3060
229
A= int(input()) B= int(input()) C= int(input()) if A&B&C >= -100 and A&B&C <= 100: if A-B==0: diff=C elif A-C==0: diff=B elif B-C==0: diff=A print ("The different number is " , diff )
s862092445
p03573
u816631826
1581995794
Python
Python (3.4.3)
py
Runtime Error
17
3060
236
A= int(input("first")) B= int(input()) C= int(input()) if A&B&C >= -100 and A&B&C <= 100: if A-B==0: diff=C elif A-C==0: diff=B elif B-C==0: diff=A print ("The different number is " , diff )
s062539572
p03573
u863442865
1581823324
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
a, b, c = list(map(int, input().split())) if a==b: print(c) elif a==c: print(b): else: print(a)
s882447960
p03573
u982896977
1581284075
Python
Python (3.4.3)
py
Runtime Error
17
3064
968
h,w = map(int,input().split()) a = ["." for i in range(w+2)] dot_map = [a] for _ in range(h): l = list(input()) l.insert(0, ".") l.append(".") dot_map.append(l) dot_map.append(a) for i in range(1, h+1): for j in range(1,w+1): if dot_map[i][j] == ".": counter = 0 if d...
s667080615
p03573
u287880059
1580874952
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
a,b,c = int(input().split()) if a==b: print(c) elif b==c: print(a) else: print(b)
s938768278
p03573
u287880059
1580874878
Python
Python (3.4.3)
py
Runtime Error
17
2940
86
a,b,c = map(int,input()) if a==b: print(c) elif b==c: print(a) else: print(b)
s787275002
p03573
u209619667
1579896825
Python
Python (3.4.3)
py
Runtime Error
17
3064
356
a, b = map(int,input().split()) list_ = [input() for _ in range(a)] for i in range(a): s = '' for j in range(b): #print(list_[max(0, i-1): min(a, i+2)]) if(list_[i][j] == '#'): s += '#' else: p = 0 for q in list_[max(0, i-1): min(a, i+2)]: p += q[max(0, j-1): min(b, j+2)].cou...
s772287852
p03573
u510137738
1579654677
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
a, b, c = int(input().split()) if a == b: print(c) elif b == c: print(a) elif a == c: print(b)
s362343782
p03573
u079022116
1578292259
Python
Python (3.4.3)
py
Runtime Error
18
2940
40
a=input().list() a=sorted(a) print(a[2])
s603652623
p03573
u055687574
1577936551
Python
Python (3.4.3)
py
Runtime Error
17
3064
401
H, W = map(int, input().split()) area = [] for i in range(H): area.append(input()) for i in range(H): for j in range(W): if area[i][j] == '#': print('#', end='') else: count = 0 for k in range(max(0, i-1), min(i+1, H-1)+1): for l in range(max(0, j-1), min(j+1, W-1)+1): i...
s886581589
p03573
u717265305
1576983928
Python
Python (3.4.3)
py
Runtime Error
17
3064
569
H,W = map(int, input().split()) S = [list(input()) for _ in range(H)] #データ形式はS[i][j] eight = [[-1,-1],[0,-1],[1,-1], # 周囲8マスの定義 [-1,0],[1,0], [-1,1],[0,1],[1,1]] for i in range(H): for j in range(W): if S[i][j] == '#': for e in eight: target = S[i+e[0]][j+e[1]] if target ...
s868394625
p03573
u148551245
1576978814
Python
Python (3.4.3)
py
Runtime Error
17
2940
1212
fn main() { let v: Vec<i32> = read_vec(); if v[0] == v[1] { println!("{}", v[2]); } else if v[1] == v[2] { println!("{}", v[0]); } else { println!("{}", v[1]); } } // ######################################################################## // // 標準入力から一行を読み取り、指定の型に変換する関数 pu...
s438787369
p03573
u506587641
1576910830
Python
Python (3.4.3)
py
Runtime Error
17
2940
127
tx = [map(int, input().split(,))] cx = sorted(tx) for i in range(2): if cx[i] == cx[i+1]: print(sum(cx) - 2*cx[i])
s339664159
p03573
u506587641
1576910693
Python
Python (3.4.3)
py
Runtime Error
17
2940
128
tx = [map(int, input().split())] cx = [sorted(tx)] for i in range(2): if cx[i] == cx[i+1]: print(sum(cx) - 2*cx[i])
s092627614
p03573
u506587641
1576910516
Python
Python (3.4.3)
py
Runtime Error
17
2940
145
tx = [map(int, input().split())] cx = sorted(tx) for i in range(2): if cx[i] == cx[i+1]: print(sum(cx) - 2*int(cx[i])) break
s256649453
p03573
u506587641
1576910302
Python
Python (3.4.3)
py
Runtime Error
17
2940
126
tx = [map(int, input().split())] cx = sorted(tx) for i in range(2): if cx[i] == cx[i+1]: print(sum(cx) - 2*cx[i])
s757110074
p03573
u506587641
1576910264
Python
Python (3.4.3)
py
Runtime Error
17
2940
125
tx = [map(int, input().split())] cx = sorted(x) for i in range(2): if cx[i] == cx[i+1]: print(sum(cx) - 2*cx[i])
s271572215
p03573
u076764813
1576385174
Python
Python (3.4.3)
py
Runtime Error
17
2940
105
a, b, c = map(int(input().split())) if a == b: print(a) elif a==c: print(a) elif b==c: print(c)
s620101251
p03573
u076764813
1576385088
Python
Python (3.4.3)
py
Runtime Error
17
2940
99
a, b, c = int(input().split()) if a == b: print(a) elif a==c: print(a) elif b==c: print(c)
s075145127
p03573
u226912938
1576276995
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
a, b, c = map(int, input().split()) if a == b: ans = c elif a == c: ans = b: else: ans = a print(ans)
s706437435
p03573
u075155299
1575913333
Python
Python (3.4.3)
py
Runtime Error
17
2940
84
a,b,c = map(int,input()) if a==c: print(b) elif a==b: print(c) else: print(a)
s123617313
p03573
u760802228
1575684782
Python
Python (3.4.3)
py
Runtime Error
18
3064
1012
H, W = map(int, input().split()) matrix = [input() for i in range(H)] ans = "" for h in range(H): for w in range(W): bomb = 0 for i in range(-1, 2): if 0 <= h - 1 and 0 <= w + i < W: if matrix[h - 1][w + i] == "#": ...
s814239867
p03573
u845536647
1575481674
Python
Python (3.4.3)
py
Runtime Error
17
3064
433
N, M = map(int, input().split()) l=[[] for i in range(N)] e = [[int(i) for i in input().split()] for i in range(M)] e0=e c=0 def DFS(v): seen.append(v) for v2 in l[v]: if not v2 in seen: DFS(v2) return seen for i in range(M): seen=[] l=[[] for i in range(N)] for j in range(M): if j!=i: ...
s482567253
p03573
u211160392
1575166329
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
X = list(map(int,input().split)) X.sort() print(sum(X)-X[1]*2)
s359716923
p03573
u088974156
1574834437
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
a,b,c=sorted(map(int,input().split())) if("c" a==b else "a")
s128745271
p03573
u727787724
1573857213
Python
Python (3.4.3)
py
Runtime Error
19
3448
5969
h,w=map(int,input().split()) s=[] cnt=0 for i in range(h): s.append(list(input())) if h==1 and w==1: if s[0][0]=='#': print('#') else: print(0) elif h==1: for i in range(w): if s[0][i]=='#': continue if i==0: if s[0][i+1]=='#': s[0]...
s584414719
p03573
u314089899
1573645181
Python
Python (3.4.3)
py
Runtime Error
21
3064
522
#75b H,W = map(int, input().split()) S_list = [[0 for i in range(W+2)] for j in range(H+2)] for i in range(1,H+1): S = list(input()) S_list[i][1:W+1] = S ans = [["#" for i in range(W+2)] for j in range(H+2)] for i in range(1,H+1): for j in range(1,W+1): if S_list[i][j] != "#": ...
s816091799
p03573
u957872856
1572830385
Python
Python (3.4.3)
py
Runtime Error
18
3060
267
h, w = map(int,input().split()) s = [input() for i in range(h)] for i in range(h): l = "" for j in range(w): if s[i][j] == "#": l += "#" else: l += str(sum([t[max(0,j-1):min(w,j+2)].count("#") for t in s[max(0,i-1):min(h,i+2)]])) print(l)
s403461767
p03573
u628965061
1571441911
Python
Python (3.4.3)
py
Runtime Error
17
2940
67
a,b,c=map(int,input()) print(a if b-c ==0 else b if a-c ==0 else c)
s124442826
p03573
u591717585
1571369144
Python
Python (3.4.3)
py
Runtime Error
17
2940
83
a=list(map(int,input().split())) a=sorted(a) print(a[0] if a[1]==a[2] else a[2])
s941166683
p03573
u764234894
1571284117
Python
Python (3.4.3)
py
Runtime Error
17
2940
68
a=[map(int,input().split())] a.sort(); print(a[0]+a[1]+a[2]-a[1]*2)
s442300308
p03573
u764234894
1571284039
Python
Python (3.4.3)
py
Runtime Error
17
2940
99
a for i in range(0,3): a.append(map(int,print().split())) a.sort(); print(a[0]+a[1]+a[2]-a[1]*2)
s479284763
p03573
u764234894
1571283926
Python
Python (3.4.3)
py
Runtime Error
17
3064
101
a=[] for i in range(0,3): a.append(map(int,print().split())) a.sort(); print(a[0]+a[1]+a[2]-a[1]*2)
s845589445
p03573
u119655368
1569636065
Python
Python (3.4.3)
py
Runtime Error
18
3064
712
def count_mine(m, i, j): count = 0 for k in range(i - 1, i + 2): for l in range(j - 1, j + 2): if m[k][l] == "#": count += 1 return count H, W = map(int, input().split()) l = [list(map(str, input().split())) for i in range(H)] m = [] m.append("*" * (W + 2)) for i in rang...
s023831068
p03573
u046313635
1569101735
Python
Python (3.4.3)
py
Runtime Error
17
2940
73
a, b, c = map(imput().split()) print(a if b == c else b if a == c else c)
s741383766
p03573
u597455618
1568004551
Python
Python (3.4.3)
py
Runtime Error
17
2940
98
a, b, c = map(int. input().split()) if a == b: print(c) elif b == c: print(a) else: print(b)
s321311442
p03573
u275861030
1567863669
Python
Python (3.4.3)
py
Runtime Error
18
2940
100
a, b, c = map(int, input().split()) if a == b: print(c) elif a == c: print(b): else: print(a)
s138571727
p03573
u353241315
1566737179
Python
Python (3.4.3)
py
Runtime Error
17
2940
138
if __name__ = '__main__': A, B, C = map(int, input().split()) if A == B: print(C) elif A == C: print(B) else: print(A)
s765504162
p03573
u511965386
1566578187
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38256
109
A, B, C = map(int, input().split()) if A == B : print(C) elif A == C : print(B) : else : print(A)
s375031509
p03573
u371530330
1566352862
Python
Python (3.4.3)
py
Runtime Error
18
3320
1859
h,w = map(int, input().split()) s = [list(input() for i in range(h))] t = s.copy() number = [] cnt = 0 for i in range(h) : if 1 <= i and i <= h-2 : for j in range(w) : if j >= 1 and j < w-1 : number = [s[i-1][j-1],s[i-1][j],s[i-1][j+1],s[i][j-1],s[i][j+1],s[i+1][j-1],s[i+1][j],s[i+1][j+1]] ...
s269938808
p03573
u243572357
1566342809
Python
Python (3.4.3)
py
Runtime Error
17
2940
82
a, b, c = map(int, input().split()) print(a if b==c else b if a==c else c if a==b)
s494449507
p03573
u464912173
1565847821
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
a,b,c = input() print(a if b==c else b if a==c else c)
s088861259
p03573
u045408189
1565563549
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
a,b,c=map(int,input().split()) print(c if a==b else b if a==c else a if b==c)
s396045696
p03573
u647767910
1565414663
Python
PyPy3 (2.4.0)
py
Runtime Error
164
38256
90
a, b, c = map(int, input()) if a == b: print(c) elif a == c: print(b) else: print(a)
s704650350
p03573
u242518667
1564933244
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
a,b,c=map(int,input().split()) print(a if [a,b,c].count(a)==1 else b if [a,b,c].count@(b)==1 else c)
s693278811
p03573
u324549724
1563842117
Python
Python (3.4.3)
py
Runtime Error
17
2940
89
a, b, c = int(input().split) if a == c : print(b) elif a == b : print(c) else : print(a)
s023140966
p03573
u797016134
1563509678
Python
Python (3.4.3)
py
Runtime Error
17
2940
54
li = set(list(map(int, input().split()))) print(li[0])
s132375287
p03573
u221061152
1562505281
Python
Python (3.4.3)
py
Runtime Error
17
3064
746
H,W = map(int,input().split()) grid = [[0 for w in range(W)] for h in range(H)] sharps = [] for h in range(H): row = [v for v in input()] #print(row) for w,r in enumerate(row): #print(w,r) if r == "#": #grid[h][w] = "#" sharps.append([h,w]) if h>=1: grid[h-1][w] += 1 if w...
s595614551
p03573
u221061152
1562505127
Python
Python (3.4.3)
py
Runtime Error
18
3064
746
H,W = map(int,input().split()) grid = [[0 for w in range(W)] for h in range(H)] sharps = [] for h in range(H): row = [v for v in input()] #print(row) for w,r in enumerate(row): #print(w,r) if r == "#": #grid[h][w] = "#" sharps.append([h,w]) if h>=1: grid[h-1][w] += 1 if w...
s466160429
p03573
u314050667
1561409063
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
a,b,c=input().split() if a==b: print(c) break elif a==c: print(b) break else: print(a)
s834318184
p03573
u104930676
1560289138
Python
PyPy3 (2.4.0)
py
Runtime Error
183
38384
319
n = int(input()) li = [int(input()) for _ in range(n)] idx_li = [] count = 1 bu = li[0] idx_li.append(bu) if bu == 2: print(count) exit() while True: bu = li[bu - 1] count += 1 if bu == 2: print(count) exit() if bu in idx_li: print(-1) exit() else: idx_li.append(bu)
s204981856
p03573
u178192749
1559790037
Python
Python (3.4.3)
py
Runtime Error
18
2940
93
a,b,c = map(int,input().split()) if a ==b: print(c) elif a==c: print(b) else print(a)
s831750428
p03573
u367130284
1559752363
Python
PyPy3 (2.4.0)
py
Runtime Error
168
38256
720
from itertools import* #permutations("AB",repeat=2) combinations("AB",2) product("AB",2) groupby accumulate import sys #input=sys.stdin.readline #危険!基本オフにしろ! sys.setrecursionlimit(10**6) def main(): n,k=map(int,input().split()) grid=[tuple(map(int,input().split()))for i in range(n)] x=set(s for s,t in g...
s130022794
p03573
u017810624
1559544396
Python
PyPy3 (2.4.0)
py
Runtime Error
182
39792
502
n,k=map(int,input().split()) l=[list(map(int,input().split())) for i in range(n)] x=[l[i][0] for i in range(n)] x.sort() y=[l[i][1] for i in range(n)] y.sort() ans=[] for i1 in range(n): for i2 in range(n): for i3 in range(n): for i4 in range(n): ct=0 for i5 in range(n): if min(x[i...
s417203777
p03573
u095756391
1558747312
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
A, B, C = map(int, input().split())) if A == B: print(C) elif B == C: print(A) else: print(B)
s281090200
p03573
u564060397
1558666423
Python
Python (3.4.3)
py
Runtime Error
17
2940
96
a,b,c=map(int,input(.split())) if a==b: print(c) elif a==c: print(b) else: print(a)
s796075579
p03573
u701318346
1558526754
Python
Python (3.4.3)
py
Runtime Error
17
2940
103
A, B, C = map(int, input().split()) if A == B: print('C') elif B == C: print('A') else: print('B)
s664669030
p03573
u978210902
1558197377
Python
PyPy3 (2.4.0)
py
Runtime Error
165
38256
99
A = [int(i) for i in input().split() A.sort() mid = A[1] s = [i for i in A if i != mid] print(s[0])
s330002316
p03573
u450883456
1557940424
Python
Python (3.4.3)
py
Runtime Error
17
2940
103
a,b,c=stdin.readline().rstrip().split() if a==b: print(c) elif a==c: print(b) elif b==c: print(a)
s126315585
p03573
u194894739
1557425566
Python
Python (3.4.3)
py
Runtime Error
17
2940
95
a, b, c = input().split() if a == b: print(C) elif a == c: print(b) else: print(a)
s806783443
p03573
u802963389
1557071890
Python
Python (3.4.3)
py
Runtime Error
21
3444
418
from collections import deque h,w = map(int,input().split()) hw = [list(input()) for _ in range(h)] for i in range(h): for j in range(w): if hw[i][j] == ".": cnt = 0 for x in [-1, 0, 1]: for y in [-1, 0, 1]: if i+y in range(h) and j+x in range(w): if hw[i+y][j+x]=="#": ...
s023601136
p03573
u900727536
1556947727
Python
Python (3.4.3)
py
Runtime Error
17
3064
99
A,B,C = map(int,input().split()) if A == B: print(C) else if A == C: print(B) else: print(A)
s568760857
p03573
u900727536
1556947691
Python
Python (3.4.3)
py
Runtime Error
17
2940
142
import sys as chokudairedcoderatcoderowner A,B,C = map(int,input().split()) if A == B: print(C) else if A == C: print(B) else: print(A)
s173957328
p03573
u900727536
1556947633
Python
Python (3.4.3)
py
Runtime Error
16
2940
180
import sys as chokudairedcoderatcoderowner A,B,C = map(int,chokudairedcoderatcoderowner.stdin.readline().split()) if A == B: print(C) else if A == C: print(B) else: print(A)
s536935476
p03573
u900727536
1556947530
Python
Python (3.4.3)
py
Runtime Error
17
2940
172
import sys as chokudairedcoderatcoderowner A,B,C = map(int,chokudairedcoderatcoderowner.stdin.readline()) if A == B: print(C) else if A == C: print(B) else: print(A)
s740242147
p03573
u507116804
1556683701
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
a,b,c=map(int, input().split()) if a-b==0 print(int(c)) elif b-c==0: print(int(a)) elif c-a==0: print(int(b))
s529082405
p03573
u379136995
1556207034
Python
Python (3.4.3)
py
Runtime Error
17
2940
88
a,b,c=map(int,input().split()) if a==b: print(c) elif b==c print(a) else: print(b)
s167126586
p03573
u379136995
1556207014
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
a,b,c=map(int,input().split()) if a==b: print(c) elif b==c print(a) else: print(b)
s035629097
p03573
u795630164
1556164620
Python
PyPy3 (2.4.0)
py
Runtime Error
183
38640
649
N, K = map(int, input().split()) data = [list(map(int, input().split())) for _ in range(N)] ans = 10 ** 19 for a in range(N): for b in range(N): for c in range(N): for d in range(N): x0 = data[a][0] x1 = data[b][0] y0 = data[c][1] ...
s787175664
p03573
u059210959
1555044203
Python
Python (3.4.3)
py
Runtime Error
315
20140
1402
# encoding:utf-8 import copy import numpy as np import random import bisect #bisect_left これで二部探索の大小検索が行える N,M = map(int,input().split()) edge = [] pass_edge = [] for i in range(M): a,b = map(int,input().split()) if a < b: a,b = b,a#つねaの方が大きい if a==b: pass_edge.append([a,b]) else: ...
s611721177
p03573
u894694822
1554944615
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
a, b, c=map(int, input().split()) if a==b: print(c) elif b=c: print(a) else: print(b)
s619264145
p03573
u912862653
1554176518
Python
Python (3.4.3)
py
Runtime Error
18
2940
83
A, B, C = int(input()) if A==B: print(C) elif B==C: print(A) elif C==A: print(B)
s152522370
p03573
u987170100
1553803827
Python
Python (3.4.3)
py
Runtime Error
18
3064
480
H, W = map(int, input().split()) S = [list(input()) for _ in range(H)] def aaa(i, j): cnt = 0 for x in [-1, 0, 1]: for y in [-1, 0, 1]: if (not 0 <= i + y < H) or (not 0 <= j + x < W): continue if S[i + y][j + x] == '#': cnt += 1 return s...
s699113792
p03573
u782654209
1553689428
Python
Python (3.4.3)
py
Runtime Error
18
3064
959
N,M=map(int,input().split(' ')) R=[list(map(int,input().split(' '))) for i in range(M)] Mat=[[0]*N]*N for r in R: Mat[r[0]-1][r[1]-1]=1 Mat[r[1]-1][r[0]-1]=1 stack=[1] island=[] ans=0 Matmini=[] def dfs(): global stack global island global Matmini if stack==[]: return None if len(set(island))==N: #全頂点が網羅で...
s794077860
p03573
u366959492
1553306833
Python
Python (3.4.3)
py
Runtime Error
17
2940
123
a,b,c=(int(x) for x in input().split()) if a=b: print(c) elif b=c: print(a) elif c=a: print(b) else: pass
s208869841
p03573
u782654209
1553058159
Python
Python (3.4.3)
py
Runtime Error
17
2940
110
n = list(map(int,input().split(' '))) ans = i if n.count(i)==1 for i in list(dict.fromkeys(n)) print(str(ans))
s512682859
p03573
u782654209
1553058073
Python
Python (3.4.3)
py
Runtime Error
17
2940
104
n = list(map(int,input().split(' '))) ans = i if i.count(dict.fromkeys(n))==1 for i in n print(str(ans))
s989932090
p03573
u367130284
1552548193
Python
Python (3.4.3)
py
Runtime Error
152
12488
367
from numpy import* a,b=map(int,input().split()) c=["0"]*(b+2) x=[list("0"+input().replace(".","0").replace("#","1")+"0")for i in range(a)] x.insert(0,c) x.append(c) x=array(x).astype(int) for s in range(1,1+a): tmp="" for t in range(1,1+b): if x[s][t]==1: tmp+="#" else: t...
s790140039
p03573
u393512980
1552243173
Python
Python (3.4.3)
py
Runtime Error
17
2940
78
l = input().split() for i in range(3): if l[i].count() == 1: print(l[i])
s595836093
p03573
u170324846
1551973045
Python
Python (3.4.3)
py
Runtime Error
17
2940
49
A, B, C = map(int, intput().split()) print(A^B^C)
s455442047
p03573
u170324846
1551973001
Python
Python (3.4.3)
py
Runtime Error
18
2940
53
A, B, C = map(int, intput().split()) print(A ^ B ^ C)
s566348462
p03573
u732870425
1551673577
Python
PyPy3 (2.4.0)
py
Runtime Error
171
38640
89
a,b,c = map(int, input()) if a==b: print(c) elif a==c: print(b) elif b==c: print(a)
s952576261
p03573
u722535636
1551644624
Python
Python (3.4.3)
py
Runtime Error
19
2940
121
a=list(map(int,input().split())) if a[0] == a[1]: print(a[2]) else: if a[0] == a[2]: print(a[1]) else: ptint(a[0])
s018781205
p03573
u363466395
1551494075
Python
Python (3.4.3)
py
Runtime Error
17
3064
499
H, W = [int(_) for _ in input().split()] cbd = [list(input()) for _ in range(H)] for i in range(H): for j in range(W): if cbd[i][j] == ".": c = 0 for iw in range(i-1,i+2): for jw in range(j-1,j+2): if iw < 0 or H <= iw or jw < 0 or W <= jw: ...
s864501027
p03573
u973663980
1551398652
Python
Python (3.4.3)
py
Runtime Error
18
2940
108
a=input() b=input() c=input() if a==b: print(int(c)) elif a==c: print(int(b)) elif b==c: print(int(a))
s270301287
p03573
u973663980
1551398591
Python
Python (3.4.3)
py
Runtime Error
17
2940
116
a=input() b=input() c=input() if a == b: print(int(c)) elif a == c: print(int(b)) elif b == c: print(int(a))