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
s763587235
p03609
u477696265
1598752161
Python
Python (3.8.2)
py
Runtime Error
20
9088
110
a,b = ((x) for x in input().split()) int(c) = int(a) - int(b) if c > '0': print ( c ) else: print('0')
s217093485
p03609
u477696265
1598751996
Python
Python (3.8.2)
py
Runtime Error
26
9072
113
a,b = ((x) for x in input().split(" ")) int(c) = int(a) - int(b) if c > '0': print ( c ) else: print('0')
s504699591
p03609
u477696265
1598751914
Python
Python (3.8.2)
py
Runtime Error
24
9096
111
a,b = ((x) for x in input().split(" ")) int(c) = int(a) - int(b) if c > 0: print ( c ) else: print('0')
s072587633
p03609
u477696265
1598751834
Python
Python (3.8.2)
py
Runtime Error
26
8888
96
a,b = ((x) for x in input().split(" ")) c = a - b if c > 0: print ( c ) else: print('0')
s895743151
p03609
u477696265
1598751686
Python
Python (3.8.2)
py
Runtime Error
26
8944
96
a,b = ((x) for x in input().split(" ")) c = (a - b) if c > 0: print (c) else: print('0')
s058604661
p03609
u477696265
1598751638
Python
Python (3.8.2)
py
Runtime Error
21
9012
117
a,b = (int(x) for x in input().split(" ")) int(c) = (int(a) - int(b)) if c > 0: print int(c) else: print('0')
s535551441
p03609
u477696265
1598751534
Python
Python (3.8.2)
py
Runtime Error
27
8964
137
a,b = (int(x) for x in input().split(" ")) int(c) = (int(a) - int(b)) if c > ('-1'): print int(c) elif int(c) < ('0'): print('0')
s793744477
p03609
u477696265
1598751498
Python
Python (3.8.2)
py
Runtime Error
28
8944
138
a,b = (int(x) for x in input().split(" ")) int(c) = (int(a) - int(b)) if c > ('-1'): print int(c) elif int(c) < ('-1'): print('0')
s530847002
p03609
u477696265
1598751450
Python
Python (3.8.2)
py
Runtime Error
25
8952
133
a,b = (int(x) for x in input().split(" ")) int(c) = (int(a - b)) if c > ('-1'): print int(c) elif int(c) < ('-1'): print('0')
s640146797
p03609
u477696265
1598751386
Python
Python (3.8.2)
py
Runtime Error
22
8948
130
a,b = (int(x) for x in input().split()) int(c) = (int(a - b)) if c > ('-1'): print int(c) elif int(c) < ('-1'): print('0')
s633522584
p03609
u477696265
1598751232
Python
Python (3.8.2)
py
Runtime Error
21
9156
111
a,b = (int(x) for x in input().split()) c = (a - b) if c > ('-1'): print(c) elif c < ('-1'): print('0')
s342001251
p03609
u657208344
1598576875
Python
Python (3.8.2)
py
Runtime Error
29
8792
70
a,b=map(int,input().split()) if a <= b: print(0) else: print(a-b):
s973412496
p03609
u278143034
1598408835
Python
Python (3.8.2)
py
Runtime Error
23
9156
154
# 各秒数を取得 X,t = map(int,input().split()) #残りの砂を計算し出力 Remain = X - t if remain > 0: print(Remain) else: print("0")
s944769233
p03609
u278143034
1598408814
Python
Python (3.8.2)
py
Runtime Error
21
8952
152
# 各秒数を取得 X,t = map(int,input().split()) #残りの砂を計算し出力 Remain = X - t if remain > 0: print(Remain) else: print(0)
s775458129
p03609
u779830746
1598148429
Python
Python (3.8.2)
py
Runtime Error
24
9048
89
# 入力 x = int(input()) t = int(input()) # 処理 answer = x-t # 出力 print(answer)
s704522105
p03609
u546440137
1597863603
Python
Python (3.8.2)
py
Runtime Error
27
9104
103
s=list(input()) for i in range(len(s)): if i%2==1: s.pop(i) ss=''.join(map(str,s)) print(ss)
s410632335
p03609
u408071652
1597557226
Python
PyPy3 (7.3.0)
py
Runtime Error
108
74436
47
X T =map(int,input().split()) print(max(0,X-T))
s032866043
p03609
u968404618
1596942272
Python
Python (3.8.2)
py
Runtime Error
28
9040
271
n = int(input()) P = list(map(int, input().split())) Cnt = [] cnt = 0 ans = 0 for idx, p in enumerate(P, 1): if idx == p: Cnt.append(idx) cnt += 1 else: cnt = 0 if cnt == 2: ans -= 1 cnt = 0 ans += len(Cnt) print(ans)
s627849429
p03609
u739843002
1596219391
Python
Python (3.8.2)
py
Runtime Error
24
9020
58
tmp = input().split(" ") print(max([tmp[0] - tmp[1], 0]))
s539759899
p03609
u075303794
1595865668
Python
Python (3.8.2)
py
Runtime Error
27
9148
55
X=int(input()) t=int(input()) print(X-t if X>=t else 0)
s885609988
p03609
u282657760
1594173437
Python
Python (3.8.2)
py
Runtime Error
23
8820
257
#include <bits/stdc++.h> #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int,int>; int main() { int x, t; cin >> x >> t; int ans = x - t; if (ans < 0) ans = 0; cout << ans << endl; return 0; }
s329521842
p03609
u763249708
1594032684
Python
Python (3.8.2)
py
Runtime Error
24
8940
76
x, t = map(int, input().split()) if x-t >= 0: print(x-t) else: print(0)
s627247678
p03609
u911516631
1593907397
Python
Python (3.8.2)
py
Runtime Error
22
9036
32
print(int(input())-int(input()))
s677403388
p03609
u440478998
1593808185
Python
Python (3.8.2)
py
Runtime Error
23
8876
48
x,t = map(int, input().split()) print(max(x-t,0)
s349065214
p03609
u159335277
1593307246
Python
Python (3.8.2)
py
Runtime Error
26
8904
60
x, t = list(map(int, input().split())) print(max([0, x - t])
s443141423
p03609
u159335277
1593307153
Python
Python (3.8.2)
py
Runtime Error
27
8952
55
x, t = list(map(input().split())) print(max([0, x - t])
s962397454
p03609
u187883751
1592877060
Python
Python (3.8.2)
py
Runtime Error
20
9016
38
x,t=map(int,input().split) print(x-t)
s044943072
p03609
u819135704
1592366392
Python
Python (3.4.3)
py
Runtime Error
17
2940
122
s = input() oddstring = s[0] a = ((len(s) + 1) // 2) - 1 for i in renge(a): oddstring += s[2*i+2] print(oddstring)
s242104882
p03609
u757274384
1591572710
Python
Python (3.4.3)
py
Runtime Error
17
2940
75
x,t = map(int, input().split()) if x => t: print(x-t) else: print("0")
s307311302
p03609
u519923151
1590692406
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
x,t = map(int, input().split()) print((max(x-t),0))
s337131300
p03609
u201986772
1590595851
Python
Python (3.4.3)
py
Runtime Error
17
3064
319
n=int(input()) alis=list(map(int,input().split())) xlis=set() for i in alis: xlis.add(i-1) xlis.add(i+1) xlis.add(i) #print(xlis) counter=[0 for _ in range(len(xlis))] t=-1 for x in xlis: t+=1 for i in range(n): if x-1<=alis[i] and alis[i]<=x+1: counter[t]+=1 print(max(counter))
s794130381
p03609
u350093546
1590430074
Python
Python (3.4.3)
py
Runtime Error
17
2940
41
print(max((int(input())-int(input())),0))
s134495481
p03609
u350093546
1590429952
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
print(int(input())-int(input()))
s888864231
p03609
u559346857
1589815304
Python
Python (3.4.3)
py
Runtime Error
17
2940
59
a,b=map(int,input().split()) print("0" else a-b<0 else a-b)
s215983659
p03609
u559346857
1589815183
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
a,b=map(int,input().split()) print(max(a-b))
s829038066
p03609
u559346857
1589815116
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
a,b=map(int,input().split()) print(abt(a-b))
s404060191
p03609
u973108807
1588641662
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
x,t = map(int, input().split()) if x > t: print(x-t) else: print(0
s274862941
p03609
u285891772
1588563177
Python
Python (3.4.3)
py
Runtime Error
23
3560
765
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, gcd from itertools import accumulate, permutations, combinations, product, groupby from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, a...
s783543401
p03609
u507116804
1587440009
Python
Python (3.4.3)
py
Runtime Error
17
2940
73
x,t=map(int input().split()) A=x-t if A>=0: print(A) else: print(0)
s226202015
p03609
u496821919
1587420227
Python
Python (3.4.3)
py
Runtime Error
17
3060
336
N = int(input()) A = list(map(int,input().split())) cnt = 0 X=[] for n in A: X.append(n) X.append(n-1) X.append(n+1) Y = set(X) y = list(Y) for x in y: transient = 0 for a in A: if -1 <= a - x <= 1: transient += 1 else: if transient > cnt: cnt = transi...
s014414591
p03609
u252964975
1587265742
Python
Python (3.4.3)
py
Runtime Error
17
2940
37
if X<t: print(0) else: print(X-t)
s944724388
p03609
u054717609
1586987516
Python
Python (3.4.3)
py
Runtime Error
18
2940
78
x=input() x=int(x) t=input() t=int(t) if(x>t): print(x-t) else: print("0")
s663555242
p03609
u652656291
1586810947
Python
Python (3.4.3)
py
Runtime Error
17
2940
71
x,t = map(int,input(),split()) if x >= t: print(x-t) else: print(0)
s375695776
p03609
u698919163
1586540962
Python
PyPy3 (2.4.0)
py
Runtime Error
165
38384
77
X,t = map(int,input().split()) if X >= t: print(X-t) elsel: print(0)
s704557014
p03609
u581603131
1586441807
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
X, t = map(int, inputa().split()) print(X-t if X >=t else '0')
s001827953
p03609
u969848070
1586381635
Python
Python (3.4.3)
py
Runtime Error
18
2940
74
x, t = map(int, input.split()) if x - t < 0: print(0) else: print(x-t)
s249329005
p03609
u624689667
1584305771
Python
PyPy3 (2.4.0)
py
Runtime Error
169
38256
40
print(max(int(input())-int(input()), 0))
s095813454
p03609
u291628833
1584133130
Python
PyPy3 (2.4.0)
py
Runtime Error
165
38256
49
x,t = map(int,input().splist()) print(max(0,x-t))
s871776866
p03609
u291628833
1584133105
Python
PyPy3 (2.4.0)
py
Runtime Error
183
38640
48
x,t = map(int,input().splist()) print(max(0,x-t)
s980295351
p03609
u346677493
1583681865
Python
Python (2.7.6)
py
Runtime Error
10
2568
69
x,t=map(int,raw_input().split()) if t>X: print 0 else: print X-t
s027167953
p03609
u346677493
1583681808
Python
Python (2.7.6)
py
Runtime Error
10
2568
56
X=input() t=input() if t>X: print 0 else: print X-t
s461156296
p03609
u346677493
1583681778
Python
Python (2.7.6)
py
Runtime Error
10
2568
58
X=input() t=input() if t>X: print "0" else: print X-t
s907064866
p03609
u066455063
1583204177
Python
Python (3.4.3)
py
Runtime Error
17
2940
80
X, t = map(int, input().split()) if t >= x: print(0) else: print(X-t)
s293867216
p03609
u857070771
1582951089
Python
Python (3.4.3)
py
Runtime Error
17
3064
211
n=int(input()) *p,=map(int,input().split()) order=1 cnt=0 for i in range(n-1): if p[i]==i+1: p[i],p[i+1]=p[i+1],p[i] cnt+=1 if p[n-1]==n: p[n-2],p[n-1]=p[n-1],p[n-2] cnt+=1 print(cnt)
s330911785
p03609
u476418095
1582231629
Python
Python (2.7.6)
py
Runtime Error
10
2568
47
a=int(input()) b=int(input()) print(max(a-b,0))
s461333856
p03609
u476418095
1582231602
Python
Python (3.4.3)
py
Runtime Error
17
2940
37
a=input() b=input() print(max(a-b,0))
s214131647
p03609
u426964396
1582231564
Python
Python (2.7.6)
py
Runtime Error
13
2696
37
a=input() b=input() print(max(a-b,0))
s022175440
p03609
u372144784
1581193695
Python
PyPy3 (2.4.0)
py
Runtime Error
168
38256
17
print(max(0,x-t))
s959495771
p03609
u434872492
1581104536
Python
Python (3.4.3)
py
Runtime Error
17
2940
84
X,t = map(int,input().split()) ans = X-t if ans>=0 print(ans) else: print(0)
s392182167
p03609
u329049771
1580306945
Python
Python (3.4.3)
py
Runtime Error
17
2940
59
a,b = map(int, input().split()) print(x-t if x-t>=0 else 0)
s860650130
p03609
u431981421
1578934555
Python
PyPy3 (2.4.0)
py
Runtime Error
175
38384
211
N=int(input()) li = list(map(int,input().split())) max = 0 for i in range(N + 1): X = i new = [l for l in li if l == X or l == (X + 1) or l == (X - 1)] if max < len(new): max = len(new) print(new)
s030546140
p03609
u823044869
1578431673
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
x, t = map(int,input().split()) if x <= t: print(0) else; print(x-t)
s713014400
p03609
u071416928
1578349624
Python
Python (3.4.3)
py
Runtime Error
16
3064
348
def main(): n = int(input()) a = list( map( int, input().split() ) ) b = set(a) b.add(min(b)-1) b.add(max(b)+1) cnt = [0]*len(b) for j in a: for i,num in enumerate(b): if j-1 == num or j == num or j+1 == num: cnt[i] += 1 print(max(cnt)) if __name...
s453348456
p03609
u696444274
1578097102
Python
Python (3.4.3)
py
Runtime Error
17
2940
82
x,t=list(map(int,input().split())) if x > t: print(x-t) else: prit(0)
s980245652
p03609
u185037583
1577625982
Python
Python (3.4.3)
py
Runtime Error
16
2940
59
ans = int(input())-int(input()) print(ans if ans>0 else 0)
s197952161
p03609
u138486156
1577214129
Python
Python (3.4.3)
py
Runtime Error
17
3064
414
N = int(input()) P = list(map(int, input().split())) Q = P.copy() cnt1 = 0 for i in range(N-1): if P[i] == i+1: tmp = P[i] P[i] = P[i+1] P[i+1] = tmp cnt1 += 1 if P[-1] == N: cnt1 += 1 cnt2 = 0 for i in range(N-1, 0, -1): if Q[i] == i+1: tmp = Q[i] Q[i] = Q[i...
s343092888
p03609
u807084817
1576867273
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38640
58
a,b = map(int,input().split) print (a -b if a-b <0 else 0)
s905004006
p03609
u934052933
1576618115
Python
PyPy3 (2.4.0)
py
Runtime Error
175
38256
307
N = int(input()) a = list(map(int, input().split())) a_dict = Counter(a) keys = a_dict.keys() max_count = 0 for key in keys: tmp_count = 0 for i in keys: if key + 1 == i or key - 1 == i or key == i: tmp_count += a_dict[i] if tmp_count > max_count: max_count = tmp_count print(max_count)
s559263465
p03609
u934052933
1576615949
Python
Python (3.4.3)
py
Runtime Error
21
3316
468
from collections import Counter def main()->None: N = int(input()) a = list(map(int, input().split())) a_dict = Counter(a) keys = a_dict.keys() max_count = 0 for key in keys: tmp_count = a_dict[key] for i in keys: if key + 1 == i or key - 1 == i: tm...
s903870080
p03609
u934052933
1576602353
Python
Python (3.4.3)
py
Runtime Error
17
2940
781
from collections import Counter from typing import List, Set def main()->None: # a_iに1を足すか、1引くか、何もしないかの操作を行って、ある整数個数最大化をする # x を決めるとgreedyに決まる。 # 最後の一つのサンプルがTLEになる。jit の使い方もよくわからん N: int = int(input()) a: List[int] = list(map(int, input().split())) set_a: Set[int] = set(a) max_count: int ...
s342397152
p03609
u934052933
1576595420
Python
Python (3.4.3)
py
Runtime Error
21
3316
732
from collections import Counter def main()->None: # a_iに1を足すか、1引くか、何もしないかの操作を行って、ある整数個数最大化をする # x を決めるとgreedyに決まる。 # どうやってxを決めるのか。 N = int(input()) a = list(map(int, input().split())) set_a = set(a) max_count = 0 for a_compo in set_a: X = a_compo tmp_count = 0 fo...
s490379196
p03609
u934052933
1576535663
Python
Python (3.4.3)
py
Runtime Error
18
3064
693
def main()->None: # a_iに1を足すか、1引くか、何もしないかの操作を行って、ある整数個数最大化をする # x を決めるとgreedyに決まる。 # どうやってxを決めるのか。 N = int(input()) a = list(map(int, input().split())) range_N = range(N) counter = {} for i in range_N: X = a[i] tmp_count = 0 for j in a: if j + 1 == X...
s499716903
p03609
u587292349
1575820665
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
n = int(input()) m = int(input()) ans = n - m if ans < 0 : ans = 0 print(ans)
s803211232
p03609
u135847648
1575787444
Python
Python (3.4.3)
py
Runtime Error
20
3316
404
import collections n = int(input()) a = list(map(int,input().split())) c = dict(collections.Counter(a)) c = dict(sorted(c.items(),key = lambda x:x[0])) ans = 0 for i in range(1,10**5): cnt = 0 try: cnt += c[i-1] except KeyError: pass try: cnt += c[i] except KeyError: pass try: c...
s678181536
p03609
u275212209
1575346310
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
X = int(input()) t = int(input()) if t <= X: print(X-t) else: print(0)
s459855585
p03609
u275212209
1575346234
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
X = int(input()) t = int(input()) if t < X: print(X-t) else: print (0)
s858401322
p03609
u923659712
1574182322
Python
Python (3.4.3)
py
Runtime Error
16
2940
181
N = int(input()) P = list(map(int,input().split())) ans = 0 for i in range(N - 1): if P[i] == i+1: P[i],P[i+1] = P[i+1],P[i] ans += 1 if P[-1] == N: ans += 1 print(ans)
s618814846
p03609
u047816928
1573712705
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
X, t = list(map(int,input().split())) print(max(X-t),0)
s665247595
p03609
u328694671
1572465987
Python
Python (3.4.3)
py
Runtime Error
17
3060
275
import sys N=int(input()) a=[int(t.strip()) for t in input().split()] num=[] num= [0] * (max(a)+3) for i in range(N): num[a[i]] += 1 maximum=0 for i in range(len(num)-2): tmp=num[i] + num[i+1] +num[i+2] if maximum < tmp: maximum = tmp print(maximum) #print(num)
s245761534
p03609
u110383054
1572457598
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
x = input() t = input() x = int(x) t = int(t) if x >= t: print(x-t) else: print(0)
s099798008
p03609
u010090035
1569681706
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
x,t=map(int.input().split()) print(x-t)
s579746564
p03609
u010090035
1569681685
Python
Python (3.4.3)
py
Runtime Error
17
2940
31
x,t=map(int.input()) print(x-t)
s113962598
p03609
u089376182
1569677730
Python
Python (3.4.3)
py
Runtime Error
17
2940
29
print(max(int(input())-t, 0))
s478797746
p03609
u626337957
1569512188
Python
Python (3.4.3)
py
Runtime Error
17
3060
232
N = int(input()) nums = list(map(int, input().split())) cnt = 0 ren = 0 for i in range(N): if nums[i] == i+1: cnt += 1 ren += 1 elif ren > 1: cnt -= 1 ren = 0 else: ren = 0 if ren > 1: cnt -= 1 print(cnt)
s619013524
p03609
u207464563
1569506726
Python
Python (3.4.3)
py
Runtime Error
17
2940
48
X,T = map(int,input().split()) print(max(0,X-t))
s759020866
p03609
u617203831
1569107405
Python
Python (3.4.3)
py
Runtime Error
19
2940
57
X,t=map(int,input().split()) print("0" if x-t<0 else x-t)
s589182182
p03609
u934529721
1569094278
Python
Python (3.4.3)
py
Runtime Error
17
2940
138
#include <iostream> using namespace std; int main(){ int X, t; cin >> X >> t; X >= t ? cout << X - t : cout << 0; }
s330767185
p03609
u623687794
1568079735
Python
Python (3.4.3)
py
Runtime Error
17
2940
163
n=int(input()) l=list(map(int,input().split())) cnt=0 for i in range(n): if l[i] == i+1: change=l[i] l[i]=l[i+1] l[i+1]=change cnt+=1 print(cnt)
s956445955
p03609
u597455618
1568012362
Python
Python (3.4.3)
py
Runtime Error
17
2940
75
x, t = map(int, input().split()) if x => t: print(x - t) else: print(0)
s336849401
p03609
u788023488
1567990577
Python
Python (3.4.3)
py
Runtime Error
17
2940
49
a, b = map(int, input().split()) print min(0,a-b)
s607858134
p03609
u298297089
1567673511
Python
Python (3.4.3)
py
Runtime Error
17
2940
49
x,t = map(int,input().split()) print(max(0, x=t))
s541002582
p03609
u152638361
1567544236
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
print(max(0,int(input())-int(input())))
s952417891
p03609
u521866787
1566351003
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
print(max(o,eval(input().replace(" ","-"))))
s617748414
p03609
u846218099
1566160621
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
x,t=map(int,input().split) print(max(0,x-t))
s560132653
p03609
u846218099
1566160583
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
x,t=map(int,input().split) print(max(0,x-t))
s830137716
p03609
u846218099
1566160535
Python
Python (3.4.3)
py
Runtime Error
17
2940
43
x,t=map(int,input().split) print(max(0,x-t)
s753067825
p03609
u271044469
1566158579
Python
Python (3.4.3)
py
Runtime Error
17
2940
45
if x-t > 0: print(x-t) else: print(0)
s888100663
p03609
u908763441
1566156200
Python
Python (3.4.3)
py
Runtime Error
17
3064
328
#! /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 N = int(input()) a = list(map(int, input().split())) b = [0] * 100001 # 0から100000まで b[0]:0,b[1]:1… c = [0] * 99999 for i in range(N): b[a[i]] += 1 for i in range(99999): # 0から99998まで c[i] = b[i] + b[i + 1] + b[i + 2] print(str(max(c)))
s294052143
p03609
u589381719
1565883379
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
X=int(input()) t=int(input()) print(X-t if X>=t else 0)
s178237935
p03609
u598229387
1565808872
Python
Python (3.4.3)
py
Runtime Error
17
2940
49
x,t = map(int, input().split()) print(max(0. x-t)