Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
⌀
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
8 values
p02662
# coding: utf-8 # Your code here! import sys readline = sys.stdin.readline read = sys.stdin.read n,s,*a = map(int,read().split()) MOD = 998244353 def mul(c,m,dp): #multiply (2+x^c) up to x^m for i in range(m,c-1,-1): dp[i] *= 2 dp[i] += dp[i-c] dp[i] %= MOD for i in range(c-1,-1,-1): ...
# coding: utf-8 # Your code here! import sys readline = sys.stdin.readline read = sys.stdin.read n,s,*a = map(int,read().split()) MOD = 998244353 def mul(c,m,dp): #multiply (2+x^c) up to x^m for i in range(m,c-1,-1): dp[i] *= 2 dp[i] += dp[i-c] dp[i] %= MOD for i in range(min(m,c-1),-1...
[ "call.add", "call.arguments.change", "control_flow.loop.range.bounds.step.change" ]
387,028
387,029
u875291233
python
p02663
import sys sys.setrecursionlimit(10**7) def I(): return int(sys.stdin.readline().rstrip()) def MI(): return map(int,sys.stdin.readline().rstrip().split()) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) #空白あり def LI2(): return list(map(int,sys.stdin.readline().rstrip())) #空白なし def S(): return s...
import sys sys.setrecursionlimit(10**7) def I(): return int(sys.stdin.readline().rstrip()) def MI(): return map(int,sys.stdin.readline().rstrip().split()) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) #空白あり def LI2(): return list(map(int,sys.stdin.readline().rstrip())) #空白なし def S(): return s...
[ "misc.opposites", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,061
387,062
u119148115
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) H = h2 - h1 if m1 <= m2: M = m2 - m1 else: M = 60 - m1 + m2 # print(H) # print(M) print(H*60 + M - k)
h1, m1, h2, m2, k = map(int, input().split()) H = h2 - h1 if m1 <= m2: M = m2 - m1 else: M = 60 - m1 + m2 H -= 1 print(H*60 + M - k)
[]
387,063
387,064
u353895424
python
p02663
h1,m1,h2,m2,k = map(int,input().split()) t1 = h1*60+m1 t2 = h2*60+m1 d = t2-t1 print(d-k)
h1,m1,h2,m2,k = map(int,input().split()) t1 = h1*60+m1 t2 = h2*60+m2 d = t2-t1 print(d-k)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,067
387,068
u761320129
python
p02663
h1,m1,h2,m2,k = map(int ,input().split()) h = (h2-h1)*60 m = m2 -m1 print((h+m-1)//k*k)
h1,m1,h2,m2,k = map(int ,input().split()) h = (h2-h1)*60 m = m2-m1 print((h+m)-k)
[ "expression.operation.binary.remove", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,075
387,076
u188827677
python
p02663
import sys H1,M1,H2,M2,K = map(int, sys.stdin.readline().split()) print((H2 - H1) * 60 + M1 - M2 - K)
import sys H1,M1,H2,M2,K = map(int, sys.stdin.readline().split()) print((H2 - H1) * 60 + M2 - M1 - K)
[ "expression.operation.binary.remove" ]
387,077
387,078
u319245933
python
p02663
h1,m1,h2,m2,K = map(int,input().split() ) H=h2-h1 M=m2-m1 if(M<0): m += 60 H -= 1 if(H<0): H += 24 M += H*60 ans =M - K print(ans)
h1,m1,h2,m2,K = map(int,input().split() ) H=h2-h1 M=m2-m1 if(M<0): M += 60 H -= 1 if(H<0): H += 24 M += H*60 ans =M - K print(ans)
[ "identifier.change" ]
387,089
387,090
u098436028
python
p02663
h1,m1,h2,m2,k = map(int(input())) a = 60(h2-h1) b = m2-m1 ##起きている合計時間 c = a+b ##勉強開始時間の最遅時間 d = c-k print(d)
h1,m1,h2,m2,k = map(int,input().split()) a = 60*(h2-h1) b = m2-m1 ##起きている合計時間 c = a+b ##勉強開始時間の最遅時間 d = c-k print(d)
[ "assignment.value.change", "call.arguments.change", "call.add" ]
387,095
387,096
u850479192
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) # 時間を、0時0分からの経過時間に変換する。 start = (60 * h1) + m1 end = (60 * h2) + m2 - k print(start-end)
h1, m1, h2, m2, k = map(int, input().split()) # 時間を、0時0分からの経過時間に変換する。 start = (60 * h1) + m1 end = (60 * h2) + m2 - k print(end - start)
[ "expression.operation.binary.remove" ]
387,099
387,100
u125269142
python
p02663
(a,b,c,d,e)=map(int,input().split()) if a==c: t=d-b if e<=t: print(t-e) else: print(0) if c>a: if b>d: t=60-b+d if e<=t: print(t-e) else: print(0) if b<=d: t=(c-a)*60+d-b if e<=t: prin...
(a,b,c,d,e)=map(int,input().split()) if a==c: t=d-b if e<=t: print(t-e) else: print(0) if c>a: if b>d: t=60*(c-a)-b+d if e<=t: print(t-e) else: print(0) if b<=d: t=(c-a)*60+d-b if e<=t: ...
[ "assignment.change" ]
387,118
387,119
u323445215
python
p02663
(a,b,c,d,e)=map(int,input().split()) if a==c: t=d-b if e<=t: print(t-e) else: print(0) if c>a: if b>d: t=60-b+d if e<=t: print(t-e) else: print(0) if b<=d: t=(c-a)*60+d-b if e<=t: prin...
(a,b,c,d,e)=map(int,input().split()) if a==c: t=d-b if e<=t: print(t-e) else: print(0) if c>a: if b>d: t=60*(c-a)-b+d if e<=t: print(t-e) else: print(0) if b<=d: t=(c-a)*60+d-b if e<=t: ...
[ "assignment.change" ]
387,120
387,119
u323445215
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) print(min(0, (h2*60+m2) - (h1*60+m1) - k))
h1, m1, h2, m2, k = map(int, input().split()) print(max(0, (h2*60+m2) - (h1*60+m1) - k))
[ "misc.opposites", "identifier.change", "call.function.change", "call.arguments.change", "io.output.change" ]
387,132
387,133
u597455618
python
p02663
H1,M1,H2,H2,K = map(int,input().split()) print((H2-H1)*60+(M2-M1)-K)
H1,M1,H2,M2,K = map(int,input().split()) print((H2-H1)*60+(M2-M1)-K)
[ "assignment.variable.change", "identifier.change" ]
387,134
387,135
u229429359
python
p02663
H1, M1, H2, M2, K = map(int, input().split()) hk = K//60 mk = K%60 ans = (H2 - hk)*60 + (M2 - mk) - (H1*60 + M2) print(max(ans, 0))
H1, M1, H2, M2, K = map(int, input().split()) hk = K//60 mk = K%60 ans = (H2 - hk)*60 + (M2 - mk) - (H1*60 + M1) print(max(ans, 0))
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,138
387,139
u555767343
python
p02663
h1, m1, h2, m2, k= map(int, input().split()) s = h1 * 60 + m1 e = h2 * 60 + m2 ans = s - e - k print(ans)
h1, m1, h2, m2, k= map(int, input().split()) e = h1 * 60 + m1 s = h2 * 60 + m2 ans = s - e - k print(ans)
[ "assignment.variable.change", "identifier.change" ]
387,140
387,141
u723345499
python
p02663
import sys """ H1時M1分起床 H2時M2分就寝 K分勉強 """ H1, M1, H2, M2, K = map(int, sys.stdin.read().split()) awake_time = H1 *60 + M1 sleep_time = H2 *60 + M1 start_limit_time = sleep_time - K can_study_time = start_limit_time - awake_time print(can_study_time)
import sys """ H1時M1分起床 H2時M2分就寝 K分勉強 """ H1, M1, H2, M2, K = map(int, sys.stdin.read().split()) awake_time = H1 *60 + M1 sleep_time = H2 *60 + M2 start_limit_time = sleep_time - K can_study_time = start_limit_time - awake_time print(can_study_time)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,147
387,148
u416187046
python
p02663
#!/usr/bin/env python3 H1, M1, H2, M2, K = map(int, input().split()) ans = 0 if M1 <= M2: ans = (H2-H1) * 60 + M2 - M1 - K else: ans = (H2-H1) * 60 + (60-M1) + M2 - K if ans < 0: print(0) else: print(ans)
#!/usr/bin/env python3 H1, M1, H2, M2, K = map(int, input().split()) ans = 0 if M1 <= M2: ans = (H2-H1) * 60 + M2 - M1 - K else: ans = (H2-H1-1) * 60 + (60-M1) + M2 - K if ans < 0: print(0) else: print(ans)
[ "assignment.change" ]
387,151
387,152
u998733244
python
p02663
H1, M1, H2, M2, K = map(int, input().split()) m = (H2 * 60 + M2) - (H1 * 60 - M1) print(m - K)
H1, M1, H2, M2, K = map(int, input().split()) m = (H2 * 60 + M2) - (H1 * 60 + M1) print(m - K)
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
387,153
387,154
u852690916
python
p02663
h1, m1, h2, m2, k = list(map(int, readline().split())) x = (h2 - h1) * 60 + (m2 - m1) # 起きている時間の長さ(分) print(x - k)
h1, m1, h2, m2, k = map(int, input().split()) x = (h2 - h1) * 60 + (m2 - m1) # 起きている時間の長さ(分) print(x - k)
[ "call.remove", "assignment.value.change", "identifier.change", "call.function.change", "call.arguments.change" ]
387,155
387,156
u261103969
python
p02663
a, b, c, d, k = map(int, input().split()); x = 60*a + b y = 60*c + b print(y-x-k);
a, b, c, d, k = map(int, input().split()); x = 60*a + b y = 60*c + d print(y-x-k);
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,168
387,169
u158380546
python
p02663
a, b, c, d, k = map(int, input().split()); x = 60*a + b y = 60*c + b if y>x: print(y-x-k); else: print(1440+y-x-k);
a, b, c, d, k = map(int, input().split()); x = 60*a + b y = 60*c + d if y>x: print(y-x-k); else: print(1440+y-x-k);
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,170
387,171
u158380546
python
p02663
H1, M1, H2, M2, K = map(int, input().split()) H = (H2 - H1) * 60 M = M2 - M1 res = (H+M) - K if res >= K: print(res) else: print(0)
H1, M1, H2, M2, K = map(int, input().split()) H = (H2 - H1) * 60 M = M2 - M1 res = (H+M) if res >= K: print(res - K) else: print(0)
[ "expression.operation.binary.remove" ]
387,178
387,179
u447166124
python
p02663
h1,m1,h2,m2,k=map(int,input().split()) if h1==h2: print(m2-m1-k) else: print((60-m1)+(h2-h1-1)*60-k)
h1,m1,h2,m2,k=map(int,input().split()) if h1==h2: print(m2-m1-k) else: print((60-m1)+(h2-h1-1)*60-k+m2)
[ "expression.operation.binary.add" ]
387,180
387,181
u725757838
python
p02663
h1,m1,h2,m2,k = map(int,input().split()) dm = m2 - m1 if h2 < h1: h2 +=24 if dm < 0: h2 -= 1 dm = 60 - dm print((h2 - h1)*60 + dm - k)
h1,m1,h2,m2,k = map(int,input().split()) dm = m2 - m1 if h2 < h1: h2 +=24 if dm < 0: h2 -= 1 dm = 60 + dm print((h2 - h1)*60 + dm - k)
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
387,182
387,183
u983234117
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) print((h2 * 60 + m2 - 1 - h1 * 60 - m1) // k * k)
h1, m1, h2, m2, k = map(int, input().split()) print((h2 * 60 + m2 - k - h1 * 60 - m1))
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change", "expression.operation.binary.change", "io.output.change", "expression.operation.binary.remove" ]
387,199
387,200
u888092736
python
p02663
H1, M1, H2, M2, K = map(int, input().split()) if H1 > H2 or (H1 == H2 and M1 >= M2): H2 += 24 diff_min = H2*60 + M2 - (H1*60 + M1) if diff_min - K < 0: print(0) else: diff_min - K
H1, M1, H2, M2, K = map(int, input().split()) if H1 > H2 or (H1 == H2 and M1 >= M2): H2 += 24 diff_min = H2*60 + M2 - (H1*60 + M1) if diff_min - K < 0: print(0) else: print(diff_min - K)
[ "call.add", "call.arguments.change" ]
387,203
387,204
u531220228
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) start = m2 + 60*h1 end = m2 + 60*h2 print(end-start-k)
h1, m1, h2, m2, k = map(int, input().split()) start = m1 + 60*h1 end = m2 + 60*h2 print(end-start-k)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,208
387,209
u940831163
python
p02663
h1, m1, h2, m2, k = map(int,input().split()) #print(h1, m1, h2, m2, k) time = h2*60+m2 - (h1*60+m2) print(time-k)
h1, m1, h2, m2, k = map(int,input().split()) #print(h1, m1, h2, m2, k) time = h2*60+m2 - (h1*60+m1) print(time-k)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,212
387,213
u680851063
python
p02663
h1,m1,h2,m2,k = map(int,input().split()) d=h2*60+m2-h1*60+m1-k print(d)
h1,m1,h2,m2,k = map(int,input().split()) d=(h2*60+m2)-(h1*60+m1)-k print(d)
[]
387,220
387,221
u846385882
python
p02663
H1, M1, H2, M2, K = map(int, input().split()) time = H2*60+M1 - (H1*60+M1) print(time - K)
H1, M1, H2, M2, K = map(int, input().split()) time = H2*60+M2 - (H1*60+M1) print(time - K)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,224
387,225
u948050032
python
p02663
h1,m1,h2,m2,k=map(int,input().split()) tot=0 if m2>=m1: tot+=(m2-m1)+60*(h2-h1) else: h2=h2-1 m2+=60+m2 tot+=(h2-h1)*60+(m2-m1) print(max(0,tot-k))
h1,m1,h2,m2,k=map(int,input().split()) tot=0 if m2>=m1: tot+=(m2-m1)+60*(h2-h1) else: h2=h2-1 m2=60+m2 tot+=(h2-h1)*60+(m2-m1) print(max(0,tot-k))
[ "assignment.value.change" ]
387,226
387,227
u224993839
python
p02663
h1,m1,h2,m2,k=map(int,input().split()) tot=0 if m2>=m1: tot+=(m2-m1)+60*(h2-h1) else: h2=h2-1 m2+=60+m2 tot+=(h2-h1)*60+(m2-m1) print(tot-k)
h1,m1,h2,m2,k=map(int,input().split()) tot=0 if m2>=m1: tot+=(m2-m1)+60*(h2-h1) else: h2=h2-1 m2=60+m2 tot+=(h2-h1)*60+(m2-m1) print(max(0,tot-k))
[ "assignment.value.change", "call.add", "call.arguments.change" ]
387,228
387,227
u224993839
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) t1 = h1 * 60 + m1 t2 = h2 * 60 + m1 print(t2-t1 - k)
h1, m1, h2, m2, k = map(int, input().split()) t1 = h1 * 60 + m1 t2 = h2 * 60 + m2 print(t2-t1 - k)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,229
387,230
u327465093
python
p02663
h1,m1,h2,m2,k = map(int,input().split()) h = h2 - h1 m = m2 - m1 print((60*h-m)-k)
h1,m1,h2,m2,k = map(int,input().split()) h = h2 - h1 m = m2 - m1 print((60*h+m)-k)
[ "misc.opposites", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,231
387,232
u752907966
python
p02663
H1, M1, H2, M2, K = map(int, input().split()) J = H2 - H1 if (M1 > M2): J -= 1 F = 60 - M1 else: F = M2 - M1 F = J * 60 + F print(F - K)
H1, M1, H2, M2, K = map(int, input().split()) J = H2 - H1 if (M1 > M2): J -= 1 F = 60 + M2 - M1 else: F = M2 - M1 F = J * 60 + F print(F - K)
[ "assignment.change" ]
387,233
387,234
u634046173
python
p02663
H1, M1, H2, M2, K = map(int, input().split()) h=(H2-H1)*60 m=M2-M1 print(h-m-K)
H1, M1, H2, M2, K = map(int, input().split()) h=(H2-H1)*60 m=M2-M1 print(h+m-K)
[ "misc.opposites", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,258
387,259
u841599623
python
p02663
H1,M1,H2,M2,K = map(int,input().split()) K_time = (H2*60+M2) - (H1*60-M1) print(K_time - K)
H1,M1,H2,M2,K = map(int,input().split()) K_time = (H2*60+M2) - (H1*60+M1) print(K_time - K)
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
387,264
387,265
u767821815
python
p02663
H1, M1, H2, M2, K = map(int,input().split()) dH = H2-H1 dM = M2-M1 dm = 60*dH+dM-1 print(dm//K*K)
H1, M1, H2, M2, K = map(int,input().split()) dH = H2-H1 dM = M2-M1 dm = 60*dH+dM print(dm-K)
[ "expression.operation.binary.remove", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,272
387,273
u834224054
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) h = h2 - h1 m = m2 - m2 if m < 0: m = 60 + m h -= 1 ans = h * 60 + m - k print(ans)
h1, m1, h2, m2, k = map(int, input().split()) h = h2 - h1 m = m2 - m1 if m < 0: m = 60 + m h -= 1 ans = h * 60 + m - k print(ans)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,274
387,275
u290563917
python
p02663
a,b,c,d,e,f = map(int,input().split()) kis = a * 60 + b nel = c * 60 + d print(nel - f - kis)
a,b,c,d,e = map(int,input().split()) kis = a * 60 + b nel = c * 60 + d print(nel - e - kis)
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,278
387,279
u366424761
python
p02663
h1,m1,h2,m2,k=map(int,input().split()) if m1<=m2: print(max((h2-h1)*60+m2-m1-k),0) else: print(max((h2-h1-1)*60+m2+60-m1-k,0))
h1,m1,h2,m2,k=map(int,input().split()) if m1<=m2: print(max((h2-h1)*60+m2-m1-k,0)) else: print(max((h2-h1-1)*60+m2+60-m1-k,0))
[ "call.arguments.change" ]
387,284
387,285
u669173971
python
p02663
H1, M1, H2, M2, K = map(int, input().split()) print(H2*60+M2 - H1*60+M1 - K)
H1, M1, H2, M2, K = map(int, input().split()) print(H2*60+M2 - (H1*60+M1) - K)
[ "call.arguments.change" ]
387,286
387,287
u078349616
python
p02663
H1, M1, H2, M2, K = map(int, input().split()) H = H2 - H1 M = abs(M2 - M1) answer = H*60 + M - K print(answer)
H1, M1, H2, M2, K = map(int, input().split()) H = H2 - H1 M = M2 - M1 answer = H*60 + M - K print(answer)
[ "call.remove", "call.arguments.change" ]
387,292
387,293
u523087093
python
p02663
H1, M1, H2, M2, K = map(int, input().split()) time = 60*H2+M2 - 60*H1+M1 print(max(time-K, 0))
H1, M1, H2, M2, K = map(int, input().split()) time = (60*H2+M2) - (60*H1+M1) print(max(time-K, 0))
[]
387,328
387,329
u357949405
python
p02663
h1, m1, h2, m2, m = map(int, input().split()) if m2 < m1: mm = m2 + 60 - m1 else: mm = m2 - m1 t = (h2 - h1) * 60 + mm if t < m: print(0) else: print(t - m)
h1, m1, h2, m2, m = map(int, input().split()) if m2 < m1: mm = m2 - m1 else: mm = m2 - m1 t = (h2 - h1) * 60 + mm if t < m: print(0) else: print(t - m)
[ "expression.operation.binary.remove" ]
387,333
387,334
u637593381
python
p02663
[h1,m1,h2,m2,k] = [int(i) for i in input().split()] print((h2 - h1) * 60 + (m1 - m2) - k)
[h1,m1,h2,m2,k] = [int(i) for i in input().split()] print((h2 - h1) * 60 + (m2 - m1) - k)
[ "expression.operation.binary.remove" ]
387,337
387,338
u333139319
python
p02663
H1, M1, H2, M2, K = map(int, input().split()) ans = max(0, H2 * 60 + M1 - H1 * 60 - M1 - K) print(ans)
H1, M1, H2, M2, K = map(int, input().split()) ans = max(0, H2 * 60 + M2 - H1 * 60 - M1 - K) print(ans)
[ "assignment.value.change", "identifier.change", "call.arguments.change", "expression.operation.binary.change" ]
387,339
387,340
u839188633
python
p02663
h1, m1, h2, m2, k = map(int,input().split()) minutes = (h2-h1)*60 - (m2-m1) print(max(0,minutes-k))
h1, m1, h2, m2, k = map(int,input().split()) minutes = (h2-h1)*60 + (m2-m1) print(max(0,minutes-k))
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
387,365
387,366
u038724782
python
p02663
h1, m1, h2, m2, k = map(int,input().split()) print(h2*60 + m2 - h1*60 + m1 - k)
h1, m1, h2, m2, k = map(int,input().split()) print(int(h2*60 + m2 - h1*60 - m1 - k))
[ "call.arguments.add", "misc.opposites", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,371
387,372
u466074086
python
p02663
h_1, m_1, h_2, m_2, k = map(int, input().split()) print(h_1*60+m_1-h_2*60-m_2-k)
h_1, m_1, h_2, m_2, k = map(int, input().split()) print(-h_1*60-m_1+h_2*60+m_2-k)
[ "expression.operation.unary.add", "call.arguments.change", "expression.operation.binary.remove", "misc.opposites", "expression.operator.arithmetic.change", "expression.operation.binary.change", "io.output.change" ]
387,381
387,382
u384124931
python
p02663
H1, M1, H2, M2, K = map(int, input().split()) time = (H2 - H1) * 60 + (M1 - M2) print(time - K)
H1, M1, H2, M2, K = map(int, input().split()) time = (H2 - H1) * 60 + (M2 - M1) print(time - K)
[ "expression.operation.binary.remove" ]
387,387
387,388
u076245995
python
p02663
H1, M1, H2, M2, K = [ int(i) for i in input().strip().split(' ')] print(H2 * 60 + M2 - (H1 * 60 + M2) - K)
H1, M1, H2, M2, K = [ int(i) for i in input().strip().split(' ')] print(H2 * 60 + M2 - (H1 * 60 + M1) - K)
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,389
387,390
u362255558
python
p02663
H,M,h,m,K = map(int,input().split()) ans=(h*60+m)-(H*60+m)-K print(ans)
H,M,h,m,K = map(int,input().split()) ans=(h*60+m)-(H*60+M)-K print(int(ans))
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change", "call.add", "call.arguments.change" ]
387,391
387,392
u861471387
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) t1 = 60 * h1 + m1 t2 = 60 * h2 * m2 print(t2 - t1 - k)
h1, m1, h2, m2, k = map(int, input().split()) t1 = 60 * h1 + m1 t2 = 60 * h2 + m2 print(t2 - t1 - k)
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
387,393
387,394
u686230543
python
p02663
h_1,m_1_h_2,m_2,k = map(int,input().split()) H = 60*h_2+m_2-(60*h_1+m_1)-k if(H<=0): print(0) else: print(H)
h_1,m_1,h_2,m_2,k = map(int,input().split()) H = 60*h_2+m_2-(60*h_1+m_1)-k if(H<=0): print(0) else: print(H)
[ "assignment.variable.change", "identifier.change" ]
387,397
387,398
u655048024
python
p02663
def main(): hs,ms,he,me,k = map(int,input().split()) h = he - hs m = me - ms h *= 60 if m >= 0: h += m else: h += -m - 60 print(h - k) if __name__=='__main__': main()
def main(): hs,ms,he,me,k = map(int,input().split()) h = he - hs m = me - ms h *= 60 if m >= 0: h += m else: h += m print(h - k) if __name__=='__main__': main()
[ "expression.operation.unary.arithmetic.remove", "expression.operation.binary.remove" ]
387,399
387,400
u321035578
python
p02663
H, M, h, m, K = map(int, input().split()) print((60*h + m - 60*H - M)//K)
H, M, h, m, K = map(int, input().split()) print(60*h + m - 60*H - M - K)
[ "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,401
387,402
u536034761
python
p02663
h1,m1,h2,m2,k = map(int,input().split()) print(h2*60+m2-h1*60+m1-k)
h1,m1,h2,m2,k = map(int,input().split()) print((h2*60+m2)-(h1*60+m1)-k)
[ "call.arguments.change" ]
387,412
387,413
u551109821
python
p02663
h,m,H,M,k = map(int,input().split()) v = H*60+M u = h*60+M+k print(v-u)
h,m,H,M,k = map(int,input().split()) v = H*60+M u = h*60+m+k print(v-u)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,414
387,415
u703214333
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) h = h2 - h1 if m2 >= m1: m = m2 - m1 else: m = m1 - m2 h -= 1 working_time = h*60 + m print(working_time - k)
h1, m1, h2, m2, k = map(int, input().split()) h = h2 - h1 if m2 >= m1: m = m2 - m1 else: m = 60 - (m1 - m2) h -= 1 working_time = h*60 + m print(working_time - k)
[ "assignment.change" ]
387,418
387,419
u628335443
python
p02663
h1, m1, h2, m2, k = list(map(int, input().split())) h3 = h2 - h1 m3 = m2 - m1 if m3 < 0: h2 = h2 - 1 m3 = 60 - m1 + m2 a = h3 * 60 + m3 ans = a - k print(ans)
h1, m1, h2, m2, k = list(map(int, input().split())) h3 = h2 - h1 m3 = m2 - m1 if m3 < 0: h3 = h3 - 1 m3 = 60 - m1 + m2 a = h3 * 60 + m3 ans = a - k print(ans)
[ "assignment.variable.change", "identifier.change", "assignment.value.change", "expression.operation.binary.change" ]
387,432
387,433
u676939443
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) h3 = h2 - h1 m3 = m2 - m1 if m3 < 0: h2 = h2 - 1 m3 = 60 - m1 + m2 a = h3 * 60 + m3 ans = a - k print(ans)
h1, m1, h2, m2, k = list(map(int, input().split())) h3 = h2 - h1 m3 = m2 - m1 if m3 < 0: h3 = h3 - 1 m3 = 60 - m1 + m2 a = h3 * 60 + m3 ans = a - k print(ans)
[ "call.add", "call.arguments.change", "assignment.variable.change", "identifier.change", "assignment.value.change", "expression.operation.binary.change" ]
387,434
387,433
u676939443
python
p02663
a, b, c, d,e = map(int,input().split()) minute = (c-a)*60-(d-b) if minute<=e: print(0) else: print(minute-e)
a, b, c, d,e = map(int,input().split()) minute = (c-a)*60+(d-b) if minute<=e: print(0) else: print(minute-e)
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
387,444
387,445
u711245972
python
p02663
h1, m1,h2,m2,k = map(int,input().split()) if h2 * 60 + m2 >h1* 60 + m2: r = (h2 * 60 + m2) -(h1* 60 + m2) - k else: r = (h2 * 60 + m2) + 24 * 60 - (h1* 60 + m2) - k print(r)
h1, m1,h2,m2,k = map(int,input().split()) if h2 * 60 + m2 >h1* 60 + m1: r = (h2 * 60 + m2) -(h1* 60 + m1) - k else: r = (h2 * 60 + m2) + 24 * 60 - (h1* 60 + m1) - k print(r)
[ "identifier.change", "control_flow.branch.if.condition.change", "assignment.value.change", "expression.operation.binary.change" ]
387,446
387,447
u091489347
python
p02663
guh, gum, gbh, bgm, st = map(int, input().split()) if bgm < gum: gbh -= 1 bgm += 60 tmp = (gbh-guh)*60+(gbm-gum) ans = tmp-st print(ans)
guh, gum, gbh, gbm, st = map(int, input().split()) if gbm < gum: gbh -= 1 gbm += 60 tmp = (gbh-guh)*60+(gbm-gum) ans = tmp-st print(ans)
[ "assignment.variable.change", "identifier.change", "control_flow.branch.if.condition.change" ]
387,456
387,457
u135632715
python
p02663
a=input().split(' ') a[0]=int(a[0]) a[1]=int(a[1]) a[2]=int(a[2]) a[3]=int(a[3]) a[4]=int(a[4]) b=(a[0]*60)+a[1] c=(a[2]*60)+a[3] print(c-b+a[4])
a=input().split(' ') a[0]=int(a[0]) a[1]=int(a[1]) a[2]=int(a[2]) a[3]=int(a[3]) a[4]=int(a[4]) b=(a[0]*60)+a[1] c=(a[2]*60)+a[3] print((c-b)-a[4])
[ "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,458
387,459
u882869256
python
p02663
a=input().split(' ') a[0]=int(a[0]) a[1]=int(a[1]) a[2]=int(a[2]) a[3]=int(a[3]) a[4]=int(a[4]) b=(a[1]*60)+a[2] c=(a[2]*60)+a[3] print(c-b+a[4])
a=input().split(' ') a[0]=int(a[0]) a[1]=int(a[1]) a[2]=int(a[2]) a[3]=int(a[3]) a[4]=int(a[4]) b=(a[0]*60)+a[1] c=(a[2]*60)+a[3] print((c-b)-a[4])
[ "literal.number.integer.change", "assignment.value.change", "variable_access.subscript.index.change", "expression.operation.binary.change", "call.arguments.change", "io.output.change" ]
387,460
387,459
u882869256
python
p02663
h1, m1, h2, m2, k = [int(arg) for arg in input().split()] print((h2-h1)*60 - (m2-m1) - k)
h1, m1, h2, m2, k = [int(arg) for arg in input().split()] print((h2-h1)*60 + (m2-m1) - k)
[ "misc.opposites", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,490
387,491
u697502900
python
p02663
h1,m1,h2,m2,k=map(int,input().split()) if(h1==h2): print(m2-m1-k) elif(m1<m2): print((h2-h1+1)*60+(60-m1)+m2-k) else: print((h2-h1)*60+(m2-m1)-k)
h1,m1,h2,m2,k=map(int,input().split()) if(h1==h2): print(m2-m1-k) elif(m2<m1): print((h2-h1-1)*60+(60-m1)+m2-k) else: print((h2-h1)*60+(m2-m1)-k)
[ "control_flow.branch.if.condition.change", "misc.opposites", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,502
387,503
u548303713
python
p02663
h1,m1,h2,m2,k=map(int,input().split()) if(h1==h2): print(m2-m1-k) elif(m1<m2): print((h2-h1)*60+(60-m1)+m2-k) else: print((h2-h1)*60+(m2-m1)-k)
h1,m1,h2,m2,k=map(int,input().split()) if(h1==h2): print(m2-m1-k) elif(m2<m1): print((h2-h1-1)*60+(60-m1)+m2-k) else: print((h2-h1)*60+(m2-m1)-k)
[ "control_flow.branch.if.condition.change" ]
387,504
387,503
u548303713
python
p02663
H,M,h,m,K = map(int,input().split()) A = H*60 + M B = h*60 + m X = B - A - K print(min(X,0))
H,M,h,m,K = map(int,input().split()) A = H*60 + M B = h*60 + m X = B - A - K print(X)
[ "call.remove", "call.arguments.change" ]
387,507
387,508
u923010184
python
p02663
H,M,h,m,K = map(int,input().split()) A = H*60 + M B = h*60 + M X = B - A - K print(X)
H,M,h,m,K = map(int,input().split()) A = H*60 + M B = h*60 + m X = B - A - K print(X)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,509
387,508
u923010184
python
p02663
H1,M1,H2,M2,K = map(int,input().split()) if (H1, M1) > (H2, M2): H2 += 24 print(max(0, 60*H2 + M2 - (60*H1 + M2) - K))
H1,M1,H2,M2,K = map(int,input().split()) if (H1, M1) > (H2, M2): H2 += 24 print(max(0, 60*H2 + M2 - (60*H1 + M1) - K))
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,518
387,519
u942033906
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) if h1 <= h2: time = h2 * 60 + m2 - h1 * 60 + m1 else: time = (h2+24) * 60 + m2 - h1 * 60 + m1 if k >= time: print(0) else: print(time - k)
h1, m1, h2, m2, k = map(int, input().split()) if h1 <= h2: time = h2 * 60 + m2 - h1 * 60 - m1 else: time = (h2+24) * 60 + m2 - h1 * 60 - m1 if k >= time: print(0) else: print(time - k)
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
387,520
387,521
u204208382
python
p02663
H1, M1, H2, M2, K = map(int, input().rstrip().split()) minutes = M2 - M1 hours = 0 if minutes < 0: minutes += 60 hours += 1 hours = H2 - H1 minutes += hours * 60 answer = minutes - K if answer < 0: answer = 0 print(answer)
H1, M1, H2, M2, K = map(int, input().rstrip().split()) minutes = M2 - M1 hours = 0 if minutes < 0: minutes += 60 hours -= 1 hours += H2 - H1 minutes += hours * 60 answer = minutes - K if answer < 0: answer = 0 print(answer)
[ "expression.operator.change", "assignment.value.change" ]
387,522
387,523
u541921833
python
p02663
h1,m1,h2,m2,K = map(int,input().split()) ans = 60*h2+m2 - 60*h1+m1 -K print(ans)
h1,m1,h2,m2,K = map(int,input().split()) ans = (60*h2+m2) - (60*h1+m1) -K print(ans)
[]
387,532
387,533
u674574659
python
p02663
a,b,c,d,e = map(int,input().split()) f = c - a g = d - b if g < 0: g = 60 - g f -=1 total = 60 * f + g if total - e <= 0: print('0') else: total -= e print(total)
a,b,c,d,e = map(int,input().split()) f = c - a g = d - b if g < 0: g = 60 + g f -=1 total = 60 * f + g if total - e <= 0: print('0') else: total -= e print(total)
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
387,538
387,539
u395816772
python
p02663
a,b,c,d,e = map(int,input().split()) f = c - a g = d - b if g < 0: g = -g f -=1 total = 60 * f + g if total - e <= 0: print('0') else: total -= e print(total)
a,b,c,d,e = map(int,input().split()) f = c - a g = d - b if g < 0: g = 60 + g f -=1 total = 60 * f + g if total - e <= 0: print('0') else: total -= e print(total)
[ "assignment.value.change" ]
387,540
387,539
u395816772
python
p02663
h1,m1,h2,m2,k=map(int,input().split()) print(h1*60+m1-k-m2-60*h2)
h1,m1,h2,m2,k=map(int,input().split()) print(h2*60+m2-k-m1-60*h1)
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,541
387,542
u859059120
python
p02663
import os import sys from io import BytesIO, IOBase def main(): h1,m1,h2,m2,k=map(int,input().split()) ht=h2-h1 ht*=60 if(m2>=m1): ht+=m2-m1 else: ht-=m2-m1 print(ht-k) # fast-io region BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, file): ...
import os import sys from io import BytesIO, IOBase def main(): h1,m1,h2,m2,k=map(int,input().split()) ht=h2-h1 ht*=60 if(m2>=m1): ht+=m2-m1 else: ht+=(m2-m1) print(ht-k) # fast-io region BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, file): ...
[ "expression.operator.change" ]
387,543
387,544
u567225946
python
p02663
import os import sys from io import BytesIO, IOBase def main(): h1,m1,h2,m2,k=map(int,input().split()) ht=h2-h1 ht*=60 if(m2>=m1): ht+=m2-m1 else: ht-=60+m2-m1 print(ht-k) # fast-io region BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, file): ...
import os import sys from io import BytesIO, IOBase def main(): h1,m1,h2,m2,k=map(int,input().split()) ht=h2-h1 ht*=60 if(m2>=m1): ht+=m2-m1 else: ht+=(m2-m1) print(ht-k) # fast-io region BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, file): ...
[]
387,545
387,544
u567225946
python
p02663
h1,m1,h2,m2,k=map(int,input().split()) h_d=h2-h m_d=m2-m1 if m_d<0: h_d-=1 m_d=60+m2-m1 sum=60*h_d+m_d sum-=k if sum<0: print(0) else: print(sum)
h1,m1,h2,m2,k=map(int,input().split()) h_d=h2-h1 m_d=m2-m1 if m_d<0: h_d-=1 m_d=60+m2-m1 sum=60*h_d+m_d sum-=k if sum<0: print(0) else: print(sum)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,552
387,553
u125348436
python
p02663
h1,m1,h2,m2,k=map(int,input().split()) h_d=h2-h m_d=m2-m1 if m_d<0: h_d-=1 m_d=60+m2-m1 sum=60*h_d+m_d sum-=k if sum<0: print(0) else: print(sum)
h1,m1,h2,m2,k=map(int,input().split()) h_d=h2-h1 m_d=m2-m1 if m_d<0: h_d-=1 m_d=60+m2-m1 sum=60*h_d+m_d sum-=k if sum<0: print(0) else: print(sum)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,554
387,553
u125348436
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) print(min((h2-h1)*60+m2-m1-k, 0))
h1, m1, h2, m2, k = map(int, input().split()) print(max((h2-h1)*60+m2-m1-k, 0))
[ "misc.opposites", "identifier.change", "call.function.change", "call.arguments.change", "io.output.change" ]
387,555
387,556
u417820548
python
p02663
h1, m1, h2, m2, k =map(int, input().split()) ans = (h2-h1)*60+(m1-m2) -k print(ans)
h1, m1, h2, m2, k =map(int, input().split()) ans = (h2-h1)*60+(m2-m1)-k print(ans)
[ "expression.operation.binary.remove" ]
387,557
387,558
u209299893
python
p02663
import sys import math import itertools h1, m1, h2, m2, k = map(int, input().split()) print(max((h2-h1)*60 + (m2-m1)-k),0)
import sys import math import itertools h1, m1, h2, m2, k = map(int, input().split()) print(max((h2-h1)*60 + (m2-m1)-k,0))
[ "call.arguments.change" ]
387,561
387,562
u469281291
python
p02663
h, m, h2, m2, k = map(int, input().split()) print(12*h2+m2-(12*h+m+k))
h, m, h2, m2, k = map(int, input().split()) print(60*h2+m2-(60*h+m+k))
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,563
387,564
u518085378
python
p02663
a,b,c,d,e = map(int,input.split()) print((c*60+d)-(a*60+b)-e)
a,b,c,d,e = map(int,input().split()) print((c*60+d)-(a*60+b)-e)
[ "call.add" ]
387,571
387,572
u842028864
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) ans = (h2*60+m2-h1*60+m1) - k print(ans)
h1, m1, h2, m2, k = map(int, input().split()) ans = (h2*60+m2-(h1*60+m1)) - k print(ans)
[]
387,583
387,584
u530786533
python
p02663
h1,m1,h2,m2,k=map(int,input().split()) h=h2-h1 m=m2-m1 t=h*60+m print(min(t-k,0))
h1,m1,h2,m2,k=map(int,input().split()) h=h2-h1 m=m2-m1 t=h*60+m print(max(t-k,0))
[ "misc.opposites", "identifier.change", "call.function.change", "call.arguments.change", "io.output.change" ]
387,591
387,592
u344065503
python
p02663
A, B, C ,D, K = map(int,input().split()) ans = (C-A)* 60 + B - D - K print(ans)
A, B, C ,D, K = map(int,input().split()) ans = (C-A)* 60 - B + D - K print(ans)
[ "expression.operation.binary.remove" ]
387,593
387,594
u628285938
python
p02663
H, M, h, m, K = map(int, input().slpit()) print( max(0, 60*(h-H) + m - M - K) )
H, M, h, m, K = map(int, input().split()) print( max(0, 60*(h-H) + m - M - K) )
[ "assignment.value.change", "identifier.change", "call.arguments.change" ]
387,595
387,596
u779728630
python
p02663
h, m, x, y, k = map(int, input().split()) mi = x*60 + y - h*60+m - k print(mi)
h, m, x, y, k = map(int, input().split()) mi = x*60 + y - (h*60+m) - k print(mi)
[]
387,601
387,602
u054559808
python
p02663
#list(map(int,input().split())) a,b,c,d,e=list(map(int,input().split())) print(max(c*60+d-a*60+b-e,0))
#list(map(int,input().split())) a,b,c,d,e=list(map(int,input().split())) print(c*60+d-a*60-b-e)
[ "call.arguments.change", "misc.opposites", "expression.operator.arithmetic.change", "expression.operation.binary.change", "io.output.change" ]
387,605
387,606
u180645294
python
p02663
H1, M1, H2, M2, K=map(int, input().split()) if H1==H2: x=M2-M1 ms=x-K else: ms=(60-M1)+(H2-H1-1)*60-K print(max(0, ms))
H1, M1, H2, M2, K=map(int, input().split()) if H1==H2: x=M2-M1 ms=x-K else: ms=(60-M1)+(H2-H1-1)*60+M2-K print(max(0, ms))
[ "assignment.change" ]
387,613
387,614
u095021077
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) t1 = h1*60+m2 t2 = h2*60+m2 print(t2-t1-k)
h1, m1, h2, m2, k = map(int, input().split()) t1 = h1*60+m1 t2 = h2*60+m2 print(t2-t1-k)
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,617
387,618
u193182854
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) start = h1 * 60 + m1 end = h2 * 60 + m1 print(max(end - start - k, 0))
h1, m1, h2, m2, k = map(int, input().split()) start = h1 * 60 + m1 end = h2 * 60 + m2 print(max(end - start - k, 0))
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
387,621
387,622
u794173881
python
p02663
h1, m1, h2, m2, k = map(int, input().split()) print(h2*60+m2 - h1*60-m2 - k)
h1, m1, h2, m2, k = map(int, input().split()) print(h2*60+m2 - h1*60-m1 - k)
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
387,623
387,624
u218843509
python
p02663
H1, M1, H2, M2, K = [int(s) for s in input().split()] if H2 < H1: H2 += 24 elif H2 == H1 and M1 > M2: H2 += 24 print(int(H2 * 60 + M2 - H1 * 60 + M1 - K))
H1, M1, H2, M2, K = [int(s) for s in input().split()] if H2 < H1: H2 += 24 elif H2 == H1 and M1 > M2: H2 += 24 print(int(H2 * 60 + M2 - (H1 * 60 + M1) - K))
[ "call.arguments.change" ]
387,627
387,628
u692054751
python
p02663
H1, M1, H2, M2, K = [int(s) for s in input().split()] if H2 < H1: H2 += 24 elif H2 == H1 and M1 > M2: H2 += 24 print(H2 * 60 + M2 - H1 * 60 + M1 - K)
H1, M1, H2, M2, K = [int(s) for s in input().split()] if H2 < H1: H2 += 24 elif H2 == H1 and M1 > M2: H2 += 24 print(int(H2 * 60 + M2 - (H1 * 60 + M1) - K))
[ "call.arguments.add", "call.arguments.change" ]
387,629
387,628
u692054751
python