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
s233888456
p03609
u821251381
1565763383
Python
Python (3.4.3)
py
Runtime Error
17
2940
50
S=map(int,input().split()) print(max(0,S[0]-S[1]))
s896865971
p03609
u798316285
1565726630
Python
Python (3.4.3)
py
Runtime Error
17
2940
46
X,t=mao(int,input().split()) print(max(X-t,0))
s686086356
p03609
u371530330
1565544254
Python
Python (3.4.3)
py
Runtime Error
20
2940
66
x,t = map(int(input())) if x >= t: print(x-t) else: print(0)
s577753501
p03609
u371530330
1565544137
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
x,t = int(input()) if x >= t: print(x-t) else: print(0)
s779816114
p03609
u111365362
1565537495
Python
Python (3.4.3)
py
Runtime Error
17
2940
50
#ABC073 x,t = map(int,input()) print( max(0,x-t) )
s794992348
p03609
u740767776
1564950542
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
X, t = list(map(int,input())) s = X -t if s > 0: print(s) else: print(0)
s715323336
p03609
u761529120
1564535316
Python
PyPy3 (2.4.0)
py
Runtime Error
162
38384
83
X, t = map(int, input().spilt()) if X - t > 0: print(X - t) else: print(0)
s191934247
p03609
u502028059
1563639392
Python
Python (3.4.3)
py
Runtime Error
17
2940
78
x, t = map(int, input().split()) ans = x - t if ans < 0: ans = 0 print(ans)
s681427701
p03609
u292735000
1563564622
Python
Python (3.4.3)
py
Runtime Error
21
3316
455
from collections import Counter n = int(input()) a = list(map(int, input().split())) a_c = Counter(sorted(a)) a_v = list(a_c.values()) a_k = list(a_c.keys()) count_max = a_v[0] for i in range(1, len(a_v)): count = 0 if a_k[i] - a_k[i - 1] == 1: count += a_v[i - 1] if i < (len(a_v) - 1) and a_k[i +...
s075347518
p03609
u797016134
1563509039
Python
Python (3.4.3)
py
Runtime Error
17
2940
72
x,t = map(int, input()) if x >= t: print(x-t) if x < t: print(0)
s045133166
p03609
u003501233
1562766129
Python
Python (3.4.3)
py
Runtime Error
18
2940
72
X,t=map(int,input().split()) if X-t >= o: print(X-t) else: print(0)
s948841238
p03609
u037430802
1561734365
Python
Python (3.4.3)
py
Runtime Error
17
2940
48
x,t= map(int, input().split()) pritn(max(x-t,0))
s979706958
p03609
u732870425
1558508051
Python
Python (3.4.3)
py
Runtime Error
17
3064
201
N = int(input()) A = list(map(int, input().split())) L = [0 for _ in range(10 ** 5 + 2)] for a in A: L[a] += 1 ans = 0 for i in range(1,100001): ans = max(ans,L[i-1]+L[i]+L[i+1]) print(ans)
s840773129
p03609
u576434377
1557370599
Python
Python (3.4.3)
py
Runtime Error
17
2940
51
x,t = map(int,input().split()) print(max(x - t),0)
s992983109
p03609
u504562455
1556859078
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
x, t =[int(i) for i in input().split()] if x > t: print(x-t) else: print(0) v
s202746516
p03609
u150641538
1555625718
Python
Python (3.4.3)
py
Runtime Error
17
2940
48
x,y = map(int,input().split()) print(max(x-t,0))
s733845321
p03609
u374103100
1554867697
Python
Python (3.4.3)
py
Runtime Error
17
2940
26
print(input()[0:len(s):2])
s752522941
p03609
u813102292
1554685269
Python
Python (3.4.3)
py
Runtime Error
18
2940
93
x, t = map(int, input().split()) print(x-t)x, t = map(int, input().split()) print(max(x-t,0))
s506439841
p03609
u191829404
1554407924
Python
Python (3.4.3)
py
Runtime Error
18
2940
79
x, t = map(int, input()) ans = x - t if ans < 0: print(0) else : print(ans)
s832696232
p03609
u318861481
1554249134
Python
Python (3.4.3)
py
Runtime Error
18
2940
148
inputArr = input().split(" ") X = inputArr[0] t = inputArr[1] remain_sand = int(X - t) if remain_sand > 0 : print(remain_sand) else : print(0)
s686205067
p03609
u112318601
1553645324
Python
Python (3.4.3)
py
Runtime Error
17
3064
257
N = int(input()) a = list(map(int, input().split())) values=[] for i in range(min(a), max(a)+1): values.append(a.count(i)) max_value=0 for i in range(len(values)-2): max_value = max(max_value, values[i]+values[i+1]+values[i+2]) print(max_value)
s191168226
p03609
u501952592
1553044026
Python
Python (3.4.3)
py
Runtime Error
18
3064
228
N = int(input()) p = list(map(int, input().split())) count = 0 for i in range(N-1): if p[i] == i+1: p[i], p[i+1] = p[i+1], p[i] count += 1 if p[N-1] == N: p[N-2], p[N-1] = p[N-1], p[N-2] count += 1 print(count)
s599608817
p03609
u732870425
1552009289
Python
Python (3.4.3)
py
Runtime Error
20
2940
60
x, t = imap(int, input().split()) print(x-t if x-t>0 else 0)
s545640299
p03609
u170324846
1551821688
Python
Python (3.4.3)
py
Runtime Error
18
2940
54
x,t=map(int,input()) print(x-t) if x-t>0 else print(0)
s590596482
p03609
u906651641
1551591224
Python
Python (3.4.3)
py
Runtime Error
18
2940
53
x = int(input()) t = int(input()) print(max(x-t, 0))
s671219402
p03609
u074445770
1551331300
Python
Python (3.4.3)
py
Runtime Error
17
2940
71
x=int(input()) t=int(input()) if(x-t>=0): print(x-t) else: print(0)
s566264838
p03609
u864667985
1551296831
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
print(int(input())-int(input()))
s833458560
p03609
u449555432
1550720302
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
print(max(int(input())-int(input())),0)
s159035254
p03609
u367130284
1550635438
Python
Python (3.4.3)
py
Runtime Error
20
3316
293
from collections import Counter n=int(input()) a=list(map(int,input().split())) b=Counter(a) t=[] for _ in b.most_common(100): t.append(len([i for i in a if _[0]-1<i<_[0]+3])) t.append(len([i for i in a if _[0]-2<i<_[0]+2])) t.append(len([i for i in a if _[0]-3<i<_[0]+1])) print(max(t))
s905865317
p03609
u367130284
1550635358
Python
Python (3.4.3)
py
Runtime Error
20
3316
292
from collections import Counter n=int(input()) a=list(map(int,input().split())) b=Counter(a) t=[] for _ in b.most_common(10): t.append(len([i for i in a if _[0]-1<i<_[0]+3])) t.append(len([i for i in a if _[0]-2<i<_[0]+2])) t.append(len([i for i in a if _[0]-3<i<_[0]+1])) print(max(t))
s920997951
p03609
u604412462
1550432224
Python
Python (3.4.3)
py
Runtime Error
17
2940
116
xt = list(map(int, input().split())) if xt[0]-xt[1]>=0: print(xt[0]-xt[1]) else: print(0)print(xt[0]-xt[1])
s758720192
p03609
u777028980
1550003899
Python
Python (3.4.3)
py
Runtime Error
16
2940
70
a,b=map(int.input().split()) if(a-b>=0): print(a-b) else: print(0)
s459277445
p03609
u397563544
1549518451
Python
Python (3.4.3)
py
Runtime Error
18
2940
69
x,t= map(int,inut().split) if x>=t: print(x-t) else: print(0)
s000661201
p03609
u620945921
1546623580
Python
Python (3.4.3)
py
Runtime Error
18
3060
320
#import sys #input = sys.stdin.readline n=int(input()) a=[int(i) for i in input().split()] maxa=max(a) #print(a) ans=0 if n==1: ans=1 else: for i in range(1,maxa+1): cnt=0 for j in range(len(a)): if a[j]==i or a[j]==i-1 or a[j]==i+1: cnt+=1 if ans <= cnt: ans = cnt print(ans)
s773848363
p03609
u071061942
1546287169
Python
Python (3.4.3)
py
Runtime Error
18
2940
80
X,t = map(int,input.split()) snd = X - t if X > t: print(snd) else: print(0)
s718335342
p03609
u993642190
1544823719
Python
Python (3.4.3)
py
Runtime Error
21
3316
455
import collections as cl N = int(input()) a_li = [i for i in input().split()] c = cl.Counter(a_li) keys = list(c.keys()) max_sum = 0 if (len(c) == 1) : print(1) elif (len(c) == 2) : if (abs(a_li[0] - a_li[1]) <= 1 ) : print(2) else : print(1) else : for k in range(len(c) -2 ) : ...
s784390938
p03609
u928784113
1544252225
Python
Python (3.4.3)
py
Runtime Error
18
2940
99
# -*- coding: utf-8 -*- X = int(input()) t = int(input()) if X > t: print(X - t) else: print(0)
s629512926
p03609
u669382434
1543995382
Python
Python (3.4.3)
py
Runtime Error
18
2940
54
x,t=[int(i) for i in input().split()] print(max(0,x-t)
s754241636
p03609
u601522790
1543520723
Python
Python (3.4.3)
py
Runtime Error
17
2940
73
ans = int(input()) - int(input()) if ans < 0: print(0) else: print(ans)
s703961516
p03609
u129978636
1543375148
Python
Python (3.4.3)
py
Runtime Error
17
2940
43
X, t = map(int, input().split()) print(x-t)
s254121666
p03609
u919521780
1542305110
Python
Python (3.4.3)
py
Runtime Error
18
2940
81
x, t = list(map(int, input().split())) if x - t <: print(0) else: print(x - t)
s058212127
p03609
u240793404
1541014212
Python
Python (3.4.3)
py
Runtime Error
17
2940
47
a,b = map(int,input().split();print(max(a-b,0))
s648309265
p03609
u897302879
1540865233
Python
Python (3.4.3)
py
Runtime Error
17
2940
54
x, y = map(int, input().split()) print(max([x - y, 0])
s081526070
p03609
u923279197
1540154592
Python
Python (3.4.3)
py
Runtime Error
17
2940
47
x=int(input()) t=int(input()) print(max(0,x-t))
s183809571
p03609
u932465688
1536960339
Python
Python (3.4.3)
py
Runtime Error
17
2940
73
X,t = map(int,input().split()) if (x >= t): print(x-t) else: print(0)
s113850575
p03609
u102126195
1536599493
Python
Python (3.4.3)
py
Runtime Error
17
2940
65
X, t = map(int, input).split()) X -= t if X < 0: X = 0 print(X)
s742235589
p03609
u038027079
1535561694
Python
Python (3.4.3)
py
Runtime Error
17
2940
76
x, t = list(map(int,input().split()) if x < t: print("0") else: print(x-t)
s598784958
p03609
u255280439
1534774893
Python
Python (3.4.3)
py
Runtime Error
55
5244
630
import sys import math import collections import itertools import array import inspect # Set max recursion limit sys.setrecursionlimit(10000) # Debug output def chkprint(*args): names = { id(v): k for k, v in inspect.currentframe().f_back.f_locals.items() } print(', '.join( names....
s172917088
p03609
u201234972
1534466033
Python
Python (3.4.3)
py
Runtime Error
18
2940
50
X, t = map(int, input().split()) print(max(X-t),0)
s556403076
p03609
u446687234
1532555082
Python
Python (3.4.3)
py
Runtime Error
17
2940
80
a,b = input().split() if int(a) < int(b): print(0) else print(int(a)-int(b))
s442468930
p03609
u982762220
1531970666
Python
Python (3.4.3)
py
Runtime Error
17
2940
40
print(min(int(input())-int(input()), 0))
s587565641
p03609
u333945892
1531247580
Python
Python (3.4.3)
py
Runtime Error
18
2940
48
X,t = map(int,input().split()) print(max(X-t),0)
s295607332
p03609
u004025573
1530547310
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
x, t = map(int, input().split()) if x<t: ans=0 else ans=x-t print(ans)
s833509550
p03609
u007462477
1530052000
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
(a,b)=list(map(int,input()));print( a-b if( a > b ) else 0 )
s021465465
p03609
u503901534
1525172816
Python
Python (3.4.3)
py
Runtime Error
17
2940
144
#include <iostream> int main(void) { int x,t; std::cin >> x >> t; x = std::max<int>(0,x-t); std::cout << x << std::endl; return 0; }
s710719580
p03609
u503901534
1525172786
Python
Python (3.4.3)
py
Runtime Error
17
2940
139
#include <iostream> int main() { int x,t; std::cin >> x >> t; x = std::max<int>(0,x-t); std::cout << x << std::endl; return 0; }
s690956089
p03609
u591295155
1524074232
Python
Python (3.4.3)
py
Runtime Error
17
2940
40
print(max(int(input())-int(input()), 0))
s086602501
p03609
u497046426
1520552160
Python
Python (3.4.3)
py
Runtime Error
17
2940
53
X, t = map(int, input(),split()) print(max(X - t, 0))
s312673838
p03609
u730606460
1516749885
Python
Python (2.7.6)
py
Runtime Error
10
2568
55
import sys x = sys.argv[0] t = sys.argv[1] print x - t
s789709516
p03609
u730606460
1516749846
Python
Python (2.7.6)
py
Runtime Error
10
2568
55
import sys x = sys.argv[0] t = sys.argv[1] print X - t
s276587202
p03609
u730606460
1516749699
Python
Python (2.7.6)
py
Runtime Error
10
2568
43
X,t = map(int,rawinput().split) return X-t
s793949163
p03609
u778700306
1515867329
Python
Python (3.4.3)
py
Runtime Error
17
3060
296
input() xs = list(map(int, input().split())) possibles = set() for x in xs: possibles.add(x - 1) possibles.add(x) possibles.add(x + 1) res = 0 for p in possibles: d = 0 for x in xs: c = abs(x - p) if c <= 1: d += 1 if res < d: res = d print(res)
s529475148
p03609
u789417951
1513828263
Python
Python (3.4.3)
py
Runtime Error
192
3444
192
from collections import Counter N = int(input()) A = list(map(int, input().split())) C = Counter(A) ans = 0 for i in range(max(A)+1): ans = max(C[i] + C[i-1] + C[i+1], ans) print(ans)
s676206242
p03609
u887153853
1509144658
Python
Python (3.4.3)
py
Runtime Error
18
2940
45
X,t=map(int,input().split()) print(max(X-t,0)
s472451171
p03609
u887153853
1509144619
Python
Python (3.4.3)
py
Runtime Error
18
2940
46
X,t=map(int,input().split()) print(max(X-t, 0)
s666659565
p03609
u887153853
1509144426
Python
Python (3.4.3)
py
Runtime Error
18
3188
48
n = input().split(" ") print(int(n[0])-int(n[t])
s119422086
p03609
u274555984
1507592622
Python
Python (3.4.3)
py
Runtime Error
18
2940
404
def A_Sandglass2(): try: LOCAL_FLAG X = 100 t = 170 except NameError: X, t = list(map(int, input().split())) R = X - t if R > 0: print(R) else: print("0") start = time.time() A_Sandglass2() elapsed_time = time.time() - start try: LOCAL_FLAG p...
s558747546
p03609
u080990738
1506881282
Python
Python (3.4.3)
py
Runtime Error
17
2940
174
alphabet="abcdefghijklmnopqrstuvwxyz" st=input() s="" for i in range(0,len(st)): if alphabet.index(st[i]) % 2 == 0: s+=str(st[i]) else: pass print(s)
s832768527
p03609
u080990738
1506881224
Python
Python (3.4.3)
py
Runtime Error
17
2940
164
alphabet="abcdefghijklmnopqrstuvwxyz" st=input() s="" for i in range(0,len(st)): if alphabet.index(st[i]) % 2 == 0: s+=str(st[i]) else: pass
s332897691
p03609
u080990738
1506880870
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
X,t =map(int, split()) if X-t <0: print(str(0)) else: print(str(X-t))
s934852841
p03609
u782516204
1506738270
Python
Python (3.4.3)
py
Runtime Error
18
2940
80
x = int(input()) t = int(input()) if t < x: print( x - t ) else: print( 0 )
s754647345
p03609
u782516204
1506738231
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
x = input() t = input() if t < x: print( x - t ) else: print( 0 )
s934251330
p03609
u966695411
1506639121
Python
Python (3.4.3)
py
Runtime Error
19
2940
49
a, b = map(int, input.split()) print(max(0, a-b))
s587415361
p03609
u937164028
1506491076
Python
Python (3.4.3)
py
Runtime Error
18
2940
138
if __name__ == '__main__': X, t = map(int, raw_input().split()) rt = X-t if re>0: print(re) else: print(0)
s891421102
p03609
u209951743
1506298824
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
X = int(input()) t = int(input()) if X-t>0: print(X-t) else: print(0)
s252367149
p03609
u209951743
1506298694
Python
Python (3.4.3)
py
Runtime Error
17
2940
56
X = int(input()) t = int(input()) print(max(X - t, 0))
s398727770
p03609
u813450984
1506270506
Python
Python (3.4.3)
py
Runtime Error
19
2940
81
S = input().split() if S[0] - S[1] <= 0: print('0') else: print(S[0] - S[1])
s722561244
p03609
u813450984
1506270444
Python
Python (3.4.3)
py
Runtime Error
18
2940
79
S = input().split() d = S[0] - S[1] if d <= 0: print('0') else: print(d)
s382341316
p03609
u813450984
1506270224
Python
Python (3.4.3)
py
Runtime Error
17
2940
89
S = map(int, input().split()) d = S[0] - S[1] if d <= 0: print("0") else: print(d)
s631084908
p03609
u813450984
1506270168
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
S = map(int, input().split()) d = S[0] - S[1] if d <= 0: print(0) else: print(d)
s230684543
p03609
u210718367
1505911309
Python
Python (3.4.3)
py
Runtime Error
17
2940
46
a,b=input().split() print(a-b if a-b>0 else 0)
s752263680
p03609
u210718367
1505911242
Python
Python (3.4.3)
py
Runtime Error
17
2940
45
a,b=input().split() print a-b if a-b>0 else 0
s569773956
p03609
u210718367
1505911206
Python
Python (3.4.3)
py
Runtime Error
18
2940
45
a=input() b=input() print a-b if a-b>0 else 0
s649946277
p03609
u327466606
1505239358
Python
Python (3.4.3)
py
Runtime Error
20
3060
146
import os a,b = os.read(0,100).split(b' ') a = int(a.decode()) b = int(b.decode()) print(max(a-b,0)) os.write(1,' '.join(str(a),str(b)).encode())
s351031625
p03609
u835709901
1504915776
Python
Python (3.4.3)
py
Runtime Error
16
2940
65
def oddOut(): s = str(input()) print(s[::2]) pddOut()
s191818175
p03609
u318073603
1504904381
Python
Python (3.4.3)
py
Runtime Error
20
3316
753
from collections import Counter #Nをセットする N = int(input()) #aiをセットする a = list(map(int,input().split())) a_mai = [] a_pura = [] #ai +- 1したものを作る for i in range(len(a)): #+1したもの a_pura.append(a[i] + 1) #-1したもの a_mai.append(a[i] - 1) #aiそのままの重複の数 count_a = Counter(a) #ai + 1重複の数 count_a_pura = Counter(a_pura...
s909321523
p03609
u112465297
1504842458
Python
Python (3.4.3)
py
Runtime Error
17
3060
245
N = int(input()) a = list(map(int, input().split())) cnt=0 for i in range(len(a)): if i < len(a): if a[i] == i+1: inter=a[i] a[i]=a[i+1] a[i+1]=inter cnt +=1 continue print(cnt)
s349170848
p03609
u112465297
1504841973
Python
Python (3.4.3)
py
Runtime Error
17
3060
242
N = int(input()) a = list(map(int, input().split())) cnt=0 for i in range(len(a)): if i+1 < N: if a[i] == i+1: inter=a[i] a[i]=a[i+1] a[i+1]=inter cnt +=1 continue print(cnt)
s507789171
p03609
u220991851
1504828882
Python
Python (3.4.3)
py
Runtime Error
16
2940
136
# coding: utf-8 x = int(input()) t = int(input()) 1<= x <=10^99 1<= t <=10^99 if (x - t) < 0 : print(0) else : print(x - t)
s459631726
p03609
u677320550
1504745923
Python
Python (3.4.3)
py
Runtime Error
16
2940
80
N=int(input()) t=int(input()) k=N-t if (k<=0): print(0) else: print(k)
s000225582
p03609
u677320550
1504745843
Python
Python (3.4.3)
py
Runtime Error
16
2940
81
N=int(input()) t=int(input()) k=N-t if (k<=0): print(0) else: print(k)
s559368805
p03609
u879309973
1504607565
Python
Python (2.7.6)
py
Runtime Error
10
2572
17
print max(X-t, 0)
s635826844
p03609
u676264453
1504564834
Python
Python (3.4.3)
py
Runtime Error
17
3064
308
N = int(input()) ls = list(map(int, input().split(' '))) d = {} for l in ls: if l in d: d[l] += 1 else: d[l] = 1 m = 0 for k in range(1, 100002): if k in d: c += d[k] if (k-1) in d: c += d[k-1] if (k+1) in d: c += d[k+1] m = max(m,c) print(m)
s762285374
p03609
u112465297
1504552926
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
s=str(input()) x=list(s) out="" for i in range(x): if (i+1) % 2 ==0: out+=x[i] print(out)
s360288093
p03609
u112465297
1504552625
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
s=str(input()) x=list(s) out="" for i in range(x): if (i+1) % 2 !=1: out+=x[i] print(out)
s935738184
p03609
u112465297
1504552232
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
s=str(input()) x=list(s) out="" for i in len(x): if (i+1) % 2 !=1: out+=x[i] print(out)
s159500217
p03609
u112465297
1504551962
Python
Python (3.4.3)
py
Runtime Error
17
2940
94
s=str(input()) x=list(s) out=str() for i in len(x): if (i+1) % 2 !=1: out+=x[i] print(out)
s956835168
p03609
u112465297
1504550813
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
x,t=input().split() print(max(x-t,0))
s973890745
p03609
u112465297
1504550434
Python
Python (3.4.3)
py
Runtime Error
17
2940
36
X,t=input().split print(max(X-t,0))
s073095779
p03609
u112465297
1504550302
Python
Python (3.4.3)
py
Runtime Error
17
2940
43
X, t=input(int, split()) print(max(X-t),0)