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
s254502728
p03853
u875600867
1576448651
Python
PyPy3 (2.4.0)
py
Runtime Error
181
39152
235
H, W = map(int, input().split()) pixel = [["."] * H for i in range(W)] # 入力 for h in range(H): pixel[h] = list(input()) # 同じ行を2回繰り返して表示する for h in range(H): print(pixel[h]) print(pixel[h])
s759854157
p03853
u875600867
1576448595
Python
PyPy3 (2.4.0)
py
Runtime Error
179
39152
235
H, W = map(int, input().split()) pixel = [["."] * H for i in range(W)] # 入力 for h in range(H): pixel[h] = list(input()) # 同じ行を2回繰り返して表示する for h in range(H): print(pixel[h]) print(pixel[h])
s088200635
p03853
u226912938
1574780003
Python
Python (3.4.3)
py
Runtime Error
17
3060
122
h, w = map(int, input().split()) C = [str(input()) for _ in range(w)] for i in range(h): print(C[i]) print(C[i])
s209221340
p03853
u102960641
1574708997
Python
Python (3.4.3)
py
Runtime Error
17
3060
134
h,w = map(int, input().split()) c = [list(map(int, input().split())) for i in range(h)] for i in range(2): for j in c: print(*j)
s230709973
p03853
u143278390
1574646393
Python
Python (3.4.3)
py
Runtime Error
20
3316
163
h,w=[int(i) for i in input().split()] for i in range(w): lst=[i for i in input().split()] for j in lst: print(j) for j in lst: print(j)
s658003499
p03853
u469953228
1574536005
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
h,w =map(int,input.split()) for i in range(h): s=input() print(s) print(s)
s324222858
p03853
u623516423
1572657616
Python
Python (3.4.3)
py
Runtime Error
17
2940
152
H,W= list(map(int,input().split())) c=[[0]*W for i in range(H)] for i in range(H): c[2*i]=list(map(int,input().split())) c[2*i+1]=c[2*i] print(c)
s864836435
p03853
u348868667
1572556490
Python
Python (3.4.3)
py
Runtime Error
18
3060
113
H,W = map(int,input().split()) c = [input() for i in range(W)] for j in range(W): print(c[j]) print(c[j])
s220037606
p03853
u261891508
1570989742
Python
Python (3.4.3)
py
Runtime Error
18
3060
81
h,w=map(int,input().split()) for i in range(w): a=input() print(a) print(a)
s686906012
p03853
u391059484
1570914635
Python
Python (3.4.3)
py
Runtime Error
17
3060
142
W,H = map(int, input().split()) pic = [input().split() for i in range(H)] for i in range(H): print(''.join(pic[i])) print(''.join(pic[i]))
s112764626
p03853
u047816928
1570743210
Python
Python (3.4.3)
py
Runtime Error
18
3060
92
H, W = list(map(int, input().split())) for _ in H: S = input() print(S) print(S)
s687235090
p03853
u066455063
1569636819
Python
Python (3.4.3)
py
Runtime Error
18
3060
95
H, W = map(int, input().split()) for i in range(W): C = input() print(C) print(C)
s791539813
p03853
u539018546
1569196573
Python
Python (3.4.3)
py
Runtime Error
17
3060
133
W,H=map(int,input().split()) List=[input().split() for i in range(H)] for j in range(H): print(List[j][0]) print(List[j][0])
s353642674
p03853
u539018546
1569196342
Python
Python (3.4.3)
py
Runtime Error
18
3060
139
W,H=map(int,input().split()) List=[list(input().split()) for i in range(H)] for j in range(H): print(List[j][0]) print(List[j][0])
s690443029
p03853
u602677143
1568902935
Python
Python (3.4.3)
py
Runtime Error
17
2940
194
9 20 .....***....***..... ....*...*..*...*.... ...*.....**.....*... ...*.....*......*... ....*.....*....*.... .....**..*...**..... .......*..*.*....... ........**.*........ .........**.........
s182787626
p03853
u634461820
1568753171
Python
PyPy3 (2.4.0)
py
Runtime Error
163
38256
119
H,W = list(map(int,input89.split())) picture = [input() for i in range(H)] for i in range(2*H): print(picture[i//2])
s114543228
p03853
u785470389
1567874545
Python
Python (3.4.3)
py
Runtime Error
18
3060
104
wide, height = map(int, input().split()) for i in range(height): c = input() print(c) print(c)
s288555854
p03853
u802963389
1566558659
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38512
77
h, w = input().split() for i in range(h): s = input() print(s) print(s)
s920389622
p03853
u952022797
1566417504
Python
PyPy3 (2.4.0)
py
Runtime Error
187
39024
763
# -*- coding: utf-8 -*- import sys import copy import collections from bisect import bisect_left from bisect import bisect_right from collections import defaultdict from heapq import heappop, heappush, heapify import math import itertools import random # NO, PAY-PAY #import numpy as np #import statistics #from statistics import mean, median,variance,stdev INF = float('inf') def inputInt(): return int(input()) def inputMap(): return map(int, input().split()) def inputList(): return list(map(int, input().split())) def main(): H,W = inputMap() C = [] for i in range(H): c = inputList() C.append(c) for i in C: tmp = "".join(i) print(tmp) print(tmp) if __name__ == "__main__": main()
s341552714
p03853
u111525113
1565612124
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
h, w = map(int, input().split()) dots = [] for i in range(h): print(dots[i]) print(dots[i])
s840893601
p03853
u893931781
1565485039
Python
Python (3.4.3)
py
Runtime Error
25
3444
249
H,W = map(int,input().split()) image=[] for i in range(H): image.append(input()) out=[[0]*W]*(2*H) print(image[2//2-1][0]) for i in range(2*H): for j in range(W): p=(i+2)//2-1 out[i][j]=image[p][j] out[1][0]=image[4//2-1][0] print(out)
s209372582
p03853
u450904670
1564274617
Python
Python (3.4.3)
py
Runtime Error
1608
22192
162
import numpy as np n, m = list(map(int, input().split())) a = [list(input()) for _ in range(n)] for i in range(n): print("".join(arr[i])) print("".join(arr[i]))
s942715701
p03853
u450904670
1564274235
Python
Python (3.4.3)
py
Runtime Error
17
3060
224
import pandas as pd n, m = list(map(int, input().split())) a = [list(input()) for _ in range(n)] df = pd.DataFrame(a) df_v = pd.concat([df, df], axis=0) arr = df_v.values.tolist() for i in range(n*2): print("".join(arr[i]))
s682363231
p03853
u888512581
1564069968
Python
Python (3.4.3)
py
Runtime Error
18
3060
155
H, M = map(int, input().split()) src_image = [list(input().split() for i in range(H))] for i in range(H): print(*src_image[i]) print(*src_image[i])
s446600461
p03853
u759412327
1564034285
Python
Python (3.4.3)
py
Runtime Error
17
3060
91
H,W = list(int,map(input().split())) for i in range(H): C = input() print(C) print(C)
s181255917
p03853
u759412327
1564034239
Python
Python (3.4.3)
py
Runtime Error
17
3060
92
H,W = list(map,int(input().split())) for i in range(H): C = input() print(C) print(C)
s934761099
p03853
u314050667
1562510869
Python
Python (3.4.3)
py
Runtime Error
17
2940
164
h,w=map(int,input().split()) c=[] for _ in range(h): c.append(list(map(str,input()))) ans=[c[i//2] for i in range(2h)] for j in ans: print(''.join(j))
s105431722
p03853
u405256066
1562394407
Python
Python (3.4.3)
py
Runtime Error
18
3060
167
from sys import stdin H,W = [int(x) for x in stdin.readline().rstrip().split()] C = [] for _ in range(N): C.append((input())) for i in C: print(i) print(i)
s894840056
p03853
u181668771
1560829675
Python
Python (3.4.3)
py
Runtime Error
17
2940
54
C = open(0) for i in C[1:]: print(i) print(i)
s670656298
p03853
u181668771
1560829572
Python
Python (3.4.3)
py
Runtime Error
17
3060
96
import sys H,W = map(int,sys.stdin.readline()) C = open(0) for i in C: print(i) print(i)
s197111633
p03853
u181668771
1560828917
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
import sys H, W = sys.stdin.readline().split() C = set(map(int, sys.stdin)) for i in C: print(i) print(i)
s183946480
p03853
u181668771
1560828806
Python
Python (3.4.3)
py
Runtime Error
18
2940
120
import sys H,W = map(int,input().split()) C = list() C = set(map(int, sys.stdin)) for i in C: print(i) print(i)
s411573569
p03853
u181668771
1560828761
Python
Python (3.4.3)
py
Runtime Error
17
2940
126
import sys H,W = map(int,input().split()) C = list() C = set(map(int, sys.stdin)) for i in C: print(C[i]) print(C[i])
s228398428
p03853
u181668771
1560828703
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
import sys H,W = map(int,input().split()) C = set(map(int, sys.stdin)) for i in C: print(C[i]) print(C[i])
s789995597
p03853
u181668771
1560828648
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
import sys H,W = map(int,input().split()) C = list(map(int,sys.stdin)) for i in C: print(C[i]) print(C[i])
s425842098
p03853
u524747996
1560387638
Python
Python (3.4.3)
py
Runtime Error
18
3060
92
H, W = map(int, input().split()) for i in range(W): c = input() print(c + '\n' + c)
s991416718
p03853
u399721252
1559431428
Python
Python (3.4.3)
py
Runtime Error
17
3060
98
h, w = [ int(v) for v in input().split() ] for i in range(k): s = input() print(s) print(s)
s682543289
p03853
u382431597
1557989635
Python
Python (3.4.3)
py
Runtime Error
18
3060
145
import sys h,w = list(map(int, input().split())) c = [] c.append([input() for _ in range(h)]) for i in range(h): print(c[i]) print(c[i])
s021907463
p03853
u609738635
1557501516
Python
Python (3.4.3)
py
Runtime Error
18
3060
268
# -*- coding: utf-8 -*- def solve(H, W, C): for i in range(2*H): for j in C[i]: print(j) print(j) if __name__ == '__main__': H, W = map(int, input().split()) C = [[input()] for i in range(H)] solve(H, W, C)
s439786802
p03853
u166621202
1556994651
Python
Python (3.4.3)
py
Runtime Error
19
3060
83
H,W=map(int,input().split()) for i in range(a): x = input() print(x) print(x)
s076343403
p03853
u885899351
1555462021
Python
Python (3.4.3)
py
Runtime Error
18
3060
87
h,w=map(int,input().split()) for i in range(n): s=input() print(s) print(s)
s459863414
p03853
u042377269
1554862868
Python
Python (3.4.3)
py
Runtime Error
17
3060
131
h, w = map(int, input().split()) image = [] for i in h: image.append(input().split()) for row in image: print(row+"\n"+row)
s343682772
p03853
u319818856
1554609102
Python
Python (3.4.3)
py
Runtime Error
20
3188
267
def thin(H: int, W: int, C: list)->list: return [[C[h//2][w] for w in range(W)] for h in range(2*H)] if __name__ == "__main__": H = 0 H, W = map(int, input().split()) C = [input() for _ in range(H)] ans = thin(H, W, C) print('\n'.join(ans))
s659578638
p03853
u305965165
1553718453
Python
Python (3.4.3)
py
Runtime Error
18
3060
114
h,w= (int(i) for i in input().split()) c = [int(input()) for i in range(h)] for x in c: print(x) print(x)
s466888195
p03853
u878138257
1552863794
Python
Python (3.4.3)
py
Runtime Error
18
3188
119
h,w = map(int, input().split()) listA = [input() for i in range(h)] for i in range(h): print(listA[i-1]\nlistA[i-1])
s706092043
p03853
u878138257
1552863616
Python
Python (3.4.3)
py
Runtime Error
17
2940
121
h,w = map(int, input().split()) listA = [input() for i in range(h)] for i in range(h): print(listA[i-1]"\n"listA[i-1])
s067032617
p03853
u878138257
1552863557
Python
Python (3.4.3)
py
Runtime Error
17
2940
121
h,w = map(int, input().split()) listA = [input() for i in range(n)] for i in range(n): print(listA[i-1]"\n"listA[i-1])
s349502834
p03853
u878138257
1552863420
Python
Python (3.4.3)
py
Runtime Error
17
2940
184
h,w = map(int, input().split()) listA = [] while True: try: listA.append(list(map(int,input().split()))) except: break; for i in range(n): print(listA[i-1]"\n"listA[i-1])
s200541874
p03853
u933214067
1552309117
Python
Python (3.4.3)
py
Runtime Error
156
15356
1314
from statistics import mean, median,variance,stdev import numpy as np import sys import math import fractions import itertools import copy def j(q): if q==1: print("YES") else:print("NO") exit(0) def ct(x,y): if (x>y):print("GREATER") elif (x<y): print("LESS") else: print("EQUAL") def ip(): return int(input()) def calculate(a): s = 0 for i in range(len(a)): for k in range(i+1,len(a)): s+=(a[i]*a[k]) return s #n = ip() #入力整数1つ h,w= (int(i) for i in input().split()) #入力整数横2つ #n,a,b = (int(i) for i in input().split()) #入力整数横3つ #n,a,b,c= (int(i) for i in input().split()) #入力整数横4つ #s = [int(i) for i in input().split()] #入力整数配列 #a = input() #入力文字列 #a = input().split() #入力文字配列 #n = ip() #入力セット(整数改行あり)(1/2) #a=[ip() for i in range(n)] #入力セット(整数改行あり)(2/2) #a=[input() for i in range(h)] #jの変数はしようできないので注意 #全足しにsum変数使用はsum関数使用できないので注意 a =[] for i in range(n): a.append(input()) for i in range(n): print(a[i]) print(a[i])
s321333069
p03853
u864197622
1551481648
Python
PyPy3 (2.4.0)
py
Runtime Error
177
38256
94
H, W = map(int, input().split()) for i in range(W): s = input() print(s) print(s)
s029858301
p03853
u717001163
1551046839
Python
Python (3.4.3)
py
Runtime Error
18
3060
122
h,w=map(int,input().split()) c=list(h) for i in range(h): c[i]=input() for i in range(h): print(c[i]) print(c[i])
s230140568
p03853
u602850810
1550981280
Python
PyPy3 (2.4.0)
py
Runtime Error
179
38640
137
H, W = [int(x) for x in input().split()] C = [] for i in range(H): C.append(input()) for i in range(2 * H): print(C[(i + 2) // 2])
s185048594
p03853
u543954314
1550689986
Python
Python (3.4.3)
py
Runtime Error
17
3060
78
h, _ = map(int, input().split()) for i in range(h): a = input() print(a)*2
s187695418
p03853
u316386814
1548975239
Python
Python (3.4.3)
py
Runtime Error
18
2940
84
h,w = list(map(int,input())) for _ in range(h): s = input() print(s) print(s)
s557063911
p03853
u026155812
1544069305
Python
Python (3.4.3)
py
Runtime Error
17
2940
194
from sys import stdin n, m = int(stdin.readline().rstrip().split()) data = [stdin.readline().rstrip().split() for _ in range(n)] for i in range(n): print(data[i]\n) print(data[i])
s946938082
p03853
u026155812
1544069196
Python
Python (3.4.3)
py
Runtime Error
18
2940
186
from sys import stdin n, m = int(stdin.readline().rstrip()) data = [stdin.readline().rstrip().split() for _ in range(n)] for i in range(n): print(data[i]\n) print(data[i])
s333834596
p03853
u919521780
1542741623
Python
Python (3.4.3)
py
Runtime Error
17
2940
114
h, w = list(map(int, input().split())) line = [input() for i in range(h)] for l in line: print(l) print(l
s899743711
p03853
u063052907
1542248224
Python
Python (3.4.3)
py
Runtime Error
17
2940
110
coding: utf-8 H, W = map(int, input().split()) for _ in range(H): l = input() print(l, l, sep="\n")
s849548389
p03853
u018679195
1541714999
Python
Python (3.4.3)
py
Runtime Error
19
3060
132
H, W = map(int, input().split()) C = [] for i in range(W): C.append(input()) for i in range(W): print(C[i]) print(C[i])
s578058990
p03853
u816631826
1541714845
Python
Python (3.4.3)
py
Runtime Error
19
3060
93
H, W = map(int, input().split()) for i in range(W): C = input() print(C) print(C)
s446338150
p03853
u333139319
1541090906
Python
Python (3.4.3)
py
Runtime Error
17
3060
126
[h,w] = [int(i) for i in input().split()] s=[] for i in range(h): s=input() for i in range(h): print(s[i]) print(s[i])
s348239705
p03853
u842170774
1541025397
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
i,p=input,print;H,W=map(int,i().split());for j in range(H):k=i();p(k);p(k)
s292928223
p03853
u853900545
1539914831
Python
Python (3.4.3)
py
Runtime Error
17
3060
76
h,w=map(int,input().split()) for i in range(h): s=input() 2*print(s)
s329395818
p03853
u657913472
1537946789
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
a,b=input().split();for _ in[0]*int(a):print(input()*2)
s440756858
p03853
u095969144
1530845408
Python
Python (3.4.3)
py
Runtime Error
18
2940
176
H, W = map(int, input().split()) px = [] ans = [] for x in range(H): px.append(input()) ans.append(px[x]) ans.append(px[x]) for x in range(ans): print(ans[x])
s235497663
p03853
u095969144
1530845275
Python
Python (3.4.3)
py
Runtime Error
17
3060
147
H, W = map(int, input().split()) px = [] ans = [] for x in range(H): px.append(W[x]) px.append(W[x]) for x in range(px): print(px[x])
s603197295
p03853
u095969144
1530845140
Python
Python (3.4.3)
py
Runtime Error
17
3060
119
H, W = map(int, input().split()) px = [] ans = [] for x in range(H): px.append(W[x]) px.append(W[x]) print(px)
s104489770
p03853
u026788530
1530832901
Python
Python (3.4.3)
py
Runtime Error
17
2940
134
H,W=[int(i) for i in input().split() ans=[] for i in range(H): lis =input() ans.append(lis) ans.append(lis) print(ans)
s490415064
p03853
u026788530
1530832870
Python
Python (3.4.3)
py
Runtime Error
17
2940
129
H,W=[int(i) for i in input().split() ans=[] for i in range(H): lis =input() ans.append(lis) ans.append(lis) print(ans)
s921954307
p03853
u026788530
1530832658
Python
Python (3.4.3)
py
Runtime Error
17
2940
122
H,W=[int(i) for i in input().split() ans=[] for i in range(H): lis =input() ans.append(lis) ans.append(lis) print(ans)
s057894139
p03853
u803647747
1530733806
Python
Python (3.4.3)
py
Runtime Error
18
3060
103
H, W = map(int, input().split()) C_list = [] for _ in range(W): i = input() print(i + "\n" + i)
s483110019
p03853
u803647747
1530733755
Python
Python (3.4.3)
py
Runtime Error
17
3064
136
H, W = map(int, input().split()) C_list = [] for _ in range(W): C_list.append(input()) for i in C_list: print(i + "\n" + i)
s322689223
p03853
u803647747
1530733581
Python
Python (3.4.3)
py
Runtime Error
17
3060
138
H, W = map(int, input().split()) C_list = [] for _ in range(W): C_list.append(input()) for i in C_list: print(i) print(i)
s213506515
p03853
u803647747
1530733454
Python
Python (3.4.3)
py
Runtime Error
18
3060
129
H, W = map(int, input().split()) C_list = [] for _ in range(W): temp_list = input() print(temp_list) print(temp_list)
s030195016
p03853
u881612683
1527894898
Python
Python (3.4.3)
py
Runtime Error
17
2940
110
H, W = map(int,input().strip().split()) for i in range(H): line = input() for j in range(2): print(line)
s162399169
p03853
u503901534
1524397128
Python
Python (3.4.3)
py
Runtime Error
18
3060
324
fig = [] h,w = map(int,input().split()) for i in range(h): fig.append(list(str(input()))) fig_2 = [] for i in range(h): fig_2.append(fig[i]) fig_2.append(fig[i]) for i in range(len(fig_2)): onetime = '' for j in range(fig_2[i]): onetime = onetime + fig_2[i][j] print(onetime)
s678918312
p03853
u363299657
1522704026
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
h, w = map(int, raw_input().split()) for i in range(h): row = raw_input() print(row) print(row)
s966045184
p03853
u550574002
1514381993
Python
Python (3.4.3)
py
Runtime Error
18
3060
93
w=int(input().split()[1]) c=[input() for _ in [0]*w] for _c in c: print(_c) print(_c)
s088729893
p03853
u879309973
1495190910
Python
Python (2.7.6)
py
Runtime Error
10
2568
99
H, W = map(int, raw_input().split()) for i in range(W): s = raw_input() print s print s
s267868790
p03853
u184851950
1487800010
Python
Python (2.7.6)
py
Runtime Error
10
2568
136
h, w = map(int, raw_input().split()) d = [100] for i in range(0, h): d[i] = raw_input() for i in range(0, h): print d[i] print d[i]
s520552872
p03853
u706797709
1487799617
Python
Python (2.7.6)
py
Runtime Error
10
2568
281
# -*- coding: utf-8 -*- """ Created on Wed Feb 22 16:06:57 2017 @author: 0048005387 """ h, w = map(int, raw_input().split()) c=[] for i in range(h): c.append(map(str, raw_input().split())) for i in c: for j in i: print j 22 3 for j in i: print j
s586838643
p03853
u580920947
1482265664
Python
Python (3.4.3)
py
Runtime Error
24
3064
121
# -*- coding: utf-8 -*- # problem B y, x = map(int, input()) for i in range(y): l = input() print(l) print(l)
s509316704
p03853
u580920947
1482265519
Python
Python (3.4.3)
py
Runtime Error
24
3064
147
# -*- coding: utf-8 -*- # problem B y, x = map(int, input()) l = list(input() for i in range(y)) for i in range(y): print(l[i]) print(l[i])
s600070367
p03853
u224027174
1481765588
Python
Python (3.4.3)
py
Runtime Error
24
3064
235
inp = input() H = int(inp.split()[0]) W = int(inp.split()[1]) l = [] for i in range(H): l.append(list(input().split())) for i in range(H*2): line = [] for j in range(W): line = line + l[(i+1)/2][j] print(line)
s968039955
p03853
u224027174
1481765453
Python
Python (3.4.3)
py
Runtime Error
23
3064
219
inp = input() H = inp.split()[0] W = inp.split()[1] l = [] for i in range(H): l.append(input().split()) for i in range(H*2): line = [] for j in range(W): line = line + l[(i+1)/2][j] print(line)
s783072991
p03853
u224027174
1481765231
Python
Python (3.4.3)
py
Runtime Error
23
3064
220
inp = input() H = inp.split()[0][0] W = inp.split()[0][0] l = [] for i in range(H): l.append(inp[i+1]) for i in range(H*2): line = [] for j in range(W): line = line + inp[(i+2)/2][j] print(line)
s138743227
p03853
u317493066
1481606468
Python
Python (3.4.3)
py
Runtime Error
22
3064
164
# -*- coding:utf-8 -*- H, W = int(raw_input()).split() for i in range(H): for j in range(W): row = raw_input() print(row) print(row)
s911597867
p03853
u317493066
1481606418
Python
Python (2.7.6)
py
Runtime Error
16
2568
164
# -*- coding:utf-8 -*- H, W = int(raw_input()).split() for i in range(H): for j in range(W): row = raw_input() print(row) print(row)
s576287865
p03853
u317493066
1481606345
Python
Python (2.7.6)
py
Runtime Error
16
2568
164
# -*- coding:utf-8 -*- H, W = int(raw_input().split()) for i in range(H): for j in range(W): row = raw_input() print(row) print(row)
s044266857
p03853
u317493066
1481606216
Python
Python (2.7.6)
py
Runtime Error
17
2696
163
# -*- coding:utf-8 -*- H, W = list(raw_input()) for i in range(H): for j in range(W): row = list(raw_input()) print(row) print(row)
s625075370
p03853
u913523703
1481482062
Python
Python (3.4.3)
py
Runtime Error
23
3064
115
height = int(input()) width = int(input()) for hindex in range(height): x = input() print(x) print(x)
s303025680
p03853
u270343876
1481425294
Python
Python (2.7.6)
py
Runtime Error
16
2568
94
a = raw_input() a.split(' ') for i in range(a[0]): a = raw_input() print a print a
s025583036
p03853
u270343876
1481424761
Python
Python (2.7.6)
py
Runtime Error
16
2568
113
#coding:utf-8 a = raw_input() while 1: a = raw_input() if a == '': break print a print a
s629889699
p03853
u546700081
1481423579
Python
Python (2.7.6)
py
Runtime Error
16
2568
125
import sys H,_=map(int,raw_input().spilt()) for _ in range(0,H): line=sys.stdin.readline() print line print line
s797136218
p03853
u006961128
1481423341
Python
Python (3.4.3)
py
Runtime Error
22
3192
121
# --* coding:utf-8 *-- size = int(input().split()) for i in range(size[0]): data = input() print(data) print(data)
s667949233
p03854
u676464724
1601349488
Python
Python (3.8.2)
py
Runtime Error
219
9876
486
S = list(input()) def hantei(S): flag = True if S[0:5] == list('dream'): del(S[0:5]) if S[0:2] == list('er') and S[2] != 'a': del(S[0:2]) elif S[0:5] == list('erase'): del(S[0:5]) if S[0:1] == list("r"): del(S[0]) else: flag = False return S, flag S, flag = hantei(S) while flag == True: if len(S) == 0: print("YES") break S, flag = hantei(S) if flag == False: print("NO")
s412234281
p03854
u676464724
1601349131
Python
Python (3.8.2)
py
Runtime Error
232
9724
478
S = list(input()) def hantei(S): flag = True if S[0:5] == list('dream'): del(S[0:5]) if S[0:2] == list('er') and S[2] != 'a': del(S[0:2]) elif S[0:5] == list('erase'): del(S[0:5]) if S[0:1] == list("r"): del(S[0]) else: flag = False return S, flag flag = True while flag == True: if len(S) == 0: print("YES") break S, flag = hantei(S) if flag == False: print("NO")
s636221279
p03854
u365156087
1600733823
Python
Python (3.8.2)
py
Runtime Error
26
9068
166
n = int(input()) A = list(map(int,input().split())) ans = 10**9 for i in range(-100,101): tmp = 0 for a in A: tmp += (a-i)**2 ans = min(ans, tmp) print(ans)
s849313816
p03854
u397496203
1600312577
Python
Python (3.8.2)
py
Runtime Error
475
711760
681
import sys sys.setrecursionlimit(10000) def input(): return sys.stdin.readline().strip() def input_int(): return int(input()) def input_int_list(): return [int(i) for i in input().split()] def solver(T): if T == "": print("YES") quit() if len(T) >= 5: if T[:5] == "dream" or T[:5] == "erase": solver(T[5:]) if len(T) >= 6: if T[:6] == "eraser": solver(T[6:]) if len(T) >= 7: if T[:7] == "dreamer": solver(T[7:]) return def main(): S = input() # 再帰的に解いて解く solver(S) print("NO") return if __name__ == "__main__": main()
s966831530
p03854
u397496203
1600312447
Python
Python (3.8.2)
py
Runtime Error
531
714152
736
import sys sys.setrecursionlimit(10000) def input(): return sys.stdin.readline().strip() def input_int(): return int(input()) def input_int_list(): return [int(i) for i in input().split()] def main(): S = input() # 再帰的に解いて解く def solver(T): if T == "": print("YES") quit() if len(T) >= 5: if T[:5] == "dream" or T[:5] == "erase": solver(T[5:]) if len(T) >= 6: if T[:6] == "eraser": solver(T[6:]) if len(T) >= 7: if T[:7] == "dreamer": solver(T[7:]) return solver(S) print("NO") return if __name__ == "__main__": main()