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 |
|---|---|---|---|---|---|---|---|
p02663 | h1,m1,h2,m2,k = map(int,input().split())
m = m2-m1 + (h2-h1)*60 -1
print(m//k * k)
| h1,m1,h2,m2,k = map(int,input().split())
m = m2-m1 + (h2-h1)*60
print(m-k)
| [
"expression.operation.binary.remove",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 387,638 | 387,639 | u152334204 | python |
p02663 | H, M, h, m, K = map(int, input().split())
wake = H * 60 + M
sleep = h * 60 + M
spinner = sleep - wake
oops = spinner - K
print(oops) | H, M, h, m, K = map(int, input().split())
wake = H * 60 + M
sleep = h * 60 + m
spinner = sleep - wake
oops = spinner - K
print(oops) | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 387,640 | 387,641 | u201878104 | 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,655 | 387,656 | u536103057 | python |
p02663 | H1, M1, H2, M2, K = map(int,input().split())
latest = H2*60+M2-K #[min]
earliest = H1*60
study = abs(latest-earliest)
print(study) | H1, M1, H2, M2, K = map(int,input().split())
latest = H2*60+M2-K #[min]
earliest = H1*60+M1
study = latest-earliest
print(study) | [
"call.remove",
"call.arguments.change"
] | 387,657 | 387,658 | u071068106 | python |
p02663 | H1, M1, H2, M2, K = map(int,input().split())
latest = H2*60+M2-K #[min]
earliest = H1*60
study = latest-earliest
print(study) | H1, M1, H2, M2, K = map(int,input().split())
latest = H2*60+M2-K #[min]
earliest = H1*60+M1
study = latest-earliest
print(study) | [
"assignment.change"
] | 387,659 | 387,658 | u071068106 | python |
p02663 | li = list(map(int,input().split()))
h1, m1, h2, m2, k = li
life_time = (h2 - h1)*60 + (m2 - m1)
time = life_time - k # 分
| li = list(map(int,input().split()))
h1, m1, h2, m2, k = li
life_time = (h2 - h1)*60 + (m2 - m1)
time = life_time - k # 分
print(time)
| [
"call.add"
] | 387,662 | 387,663 | u619551113 | python |
p02663 | H1, M1, H2, M2, K = map(int, input().split())
startTime = (H1*60)+M1
endTime = (H2*60)+M2
time = endTime - startTime
posTime = time - k
if (posTime < 0):
print(0)
else:
print(posTime) | H1, M1, H2, M2, K = map(int, input().split())
startTime = (H1*60)+M1
endTime = (H2*60)+M2
time = endTime - startTime
posTime = time - K
if (posTime < 0):
print(0)
else:
print(posTime) | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 387,670 | 387,671 | u660899380 | python |
p02663 | H1, M1, H2, M2, K = map(int, input().split())
h1 = H1 * 60
m1 = M1
h2 = H2 * 60
m2 = M2
ans = (h2 - m2) - (h1 + m1) - K if (h2 - m2) > (h1 + m1) else (h2 - m2) - (h1 + m1) - K + 24 * 60
print(ans) | H1, M1, H2, M2, K = map(int, input().split())
h1 = H1 * 60
m1 = M1
h2 = H2 * 60
m2 = M2
ans = (h2 + m2) - (h1 + m1) - K if (h2 + m2) > (h1 + m1) else (h2 + m2) - (h1 + m1) - K + 24 * 60
print(ans) | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 387,672 | 387,673 | u189513668 | python |
p02663 | #!/usr/bin/env python3
h1, m1, h2, m2, k = list(map(int, input().split()))
print(h2*60+m2-h1*60+m1-k)
| #!/usr/bin/env python3
h1, m1, h2, m2, k = list(map(int, input().split()))
print((h2*60+m2)-(h1*60+m1)-k)
| [
"call.arguments.change"
] | 387,685 | 387,686 | u239528020 | python |
p02663 | H1, M1, H2, M2, K = map(int, input().split())
print(60 * (H2 - H1) - (M2 - M1) - K) | H1, M1, H2, M2, K = map(int, input().split())
awake = 60 * (H2 - H1) + (M2 - M1)
print(awake - K) | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"call.add"
] | 387,687 | 387,688 | u169165784 | python |
p02663 | h1, m1, h2, m2, k = map(int, input().split())
if m1 > m2:
h = h2 - h1 - 1
m = 60 - m1 - m2
else:
h = h2 - h1
m = m2 - m1
if k > h*60 + m:
print(0)
else:
print(h*60 + m - k)
| h1, m1, h2, m2, k = map(int, input().split())
if m1 > m2:
h = h2 - h1 - 1
m = 60 - m1 + m2
else:
h = h2 - h1
m = m2 - m1
if k > h*60 + m:
print(0)
else:
print(h*60 + m - k)
| [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 387,689 | 387,690 | u079827881 | python |
p02663 | a, b, c, d, e = map(int, input().split())
# get a string
#s = raw_input()
# output
start = a*60+b
end = c*60+d
result = end - start - 30
print(result) | a, b, c, d, e = map(int, input().split())
# get a string
#s = raw_input()
# output
start = a*60+b
end = c*60+d
result = end - start - e
print(result) | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"expression.operation.binary.change"
] | 387,691 | 387,692 | u828900839 | python |
p02663 | #a = input()
a, b, c, d, e = map(int, input().split())
# get a string
#s = raw_input()
# output
start = a*60+b
end = c*60+d
result = end - start
print(result) | a, b, c, d, e = map(int, input().split())
# get a string
#s = raw_input()
# output
start = a*60+b
end = c*60+d
result = end - start - e
print(result) | [
"assignment.change"
] | 387,693 | 387,692 | u828900839 | python |
p02663 | h1, m1, h2, m2, k = map(int, input().split())
time1 = h1*60 + m1
time2 = h2*60 - m2
ans = time2 - k - time1
print(ans)
| h1, m1, h2, m2, k = map(int, input().split())
time1 = h1*60 + m1
time2 = h2*60 + m2
ans = time2 - k - time1
print(ans) | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 387,699 | 387,700 | u325660636 | python |
p02663 | h1, m1, h2, m2, k = map(int,input().split())
x = 60*max(0, h2-h1-1)
print(x)
if h1 == h2:
x += (m2-m1)
else:
x += (60-m1 + m2)
print(x - k) | h1, m1, h2, m2, k = map(int,input().split())
x = 60*max(0, h2-h1-1)
if h1 == h2:
x += (m2-m1)
else:
x += (60-m1 + m2)
print(x - k) | [
"call.remove"
] | 387,703 | 387,704 | u175034939 | python |
p02663 | h1, m1, h2, m2, k = int(input().split(' '))
awake_time = (h2 - h1) * 60 + (m2 - m1)
y = awake_time - k
print(y) | h1, m1, h2, m2, k = list(map(int, input().split(' ')))
awake_time = (h2 - h1) * 60 + (m2 - m1)
y = awake_time - k
print(y)
| [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.add",
"call.arguments.change"
] | 387,709 | 387,710 | u934225857 | python |
p02663 | import sys
a = []
for l in sys.stdin:
a.append(int(l))
h1, m1, h2, m2, k = a[0].split()
H1, M1, H2, M2, K = int(h1), int(m1), int(h2), int(m2), int(k)
time = 60 * H2 + M2 - (60*H1 + M1) - K
print(time) | import sys
a = []
for l in sys.stdin:
a.append(l)
h1, m1, h2, m2, k = a[0].split()
H1, M1, H2, M2, K = int(h1), int(m1), int(h2), int(m2), int(k)
time = 60 * H2 + M2 - (60*H1 + M1) - K
print(time)
| [
"call.remove",
"call.arguments.change"
] | 387,711 | 387,712 | u653931433 | python |
p02663 | num_list = list(map(int, input().split()))
a=num_list[2]-num_list[0]
b=num_list[3]-num_list[1]
if b<0:
a=a-1
a=a*60
c=b+a-num_list[4]
if c<0:
c=0
print(c) | # coding: utf-8
# Your code here!
num_list = list(map(int, input().split()))
a=num_list[2]-num_list[0]
b=num_list[3]-num_list[1]
if b<0:
a=a-1
b=b+60
a=a*60
c=b+a-num_list[4]
if c<0:
c=0
print(c) | [
"assignment.add"
] | 387,715 | 387,716 | u376392666 | python |
p02663 | num_list = list(map(int, input().split()))
a=num_list[2]-num_list[0]
b=num_list[3]-num_list[1]
if b>0:
a=a-1
a=a*60
c=b+a-num_list[4]
if c<0:
c=0
print(c) | # coding: utf-8
# Your code here!
num_list = list(map(int, input().split()))
a=num_list[2]-num_list[0]
b=num_list[3]-num_list[1]
if b<0:
a=a-1
b=b+60
a=a*60
c=b+a-num_list[4]
if c<0:
c=0
print(c) | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 387,717 | 387,716 | u376392666 | python |
p02663 | w_h, w_m, s_h, s_m,t = map(int,input().split())
s_t = s_h*60 + s_m -t
ans = s_t - w_h*60
print(ans) | w_h, w_m, s_h, s_m,t = map(int,input().split())
s_t = s_h*60 + s_m -t
ans = s_t - w_h*60 - w_m
print(ans) | [
"assignment.change"
] | 387,718 | 387,719 | u317710033 | python |
p02663 | h1, m1, h2, m2, k = map(int, input().split())
h = (h2 - h1)*60
m = m2 - m1
if m < 0:
h = h - 1
m = 60 - m
total = h + m
print(total-k) | h1, m1, h2, m2, k = map(int, input().split())
h = (h2 - h1)*60
m = m2 - m1
if m < 0:
h = h - 60
m = 60 + m
total = h + m
print(total-k) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change",
"misc.opposites",
"expression.operator.arithmetic.change"
] | 387,722 | 387,723 | u273339216 | python |
p02663 | h1, m1, h2, m2, k = map(int, input().split())
h = h2 - h1
m = m2 - m1
if m < 0:
h = h - 1
m = 60 - m
total = h + m
print(total - k) | h1, m1, h2, m2, k = map(int, input().split())
h = (h2 - h1)*60
m = m2 - m1
if m < 0:
h = h - 60
m = 60 + m
total = h + m
print(total-k) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change",
"misc.opposites",
"expression.operator.arithmetic.change"
] | 387,724 | 387,723 | u273339216 | python |
p02663 | H1,M1,H2,M2,K=map(int, input().split())
if H1 > H2:
hour = H2+(24-H1)
else:
hour = H2-H1
if M1 > M2:
hour -= 1
minutes = abs(M2-M1)
else:
minutes = M2-M1
print(hour*60+minutes-K)
| H1,M1,H2,M2,K=map(int, input().split())
if H1 > H2:
hour = H2+(24-H1)
else:
hour = H2-H1
if M1 > M2:
hour -= 1
minutes = M2+(60-M1)
else:
minutes = M2-M1
print(hour*60+minutes-K)
| [
"call.remove"
] | 387,725 | 387,726 | u746154235 | python |
p02663 | a,b,c,d,e = map(int,input.split())
time = c*60+d-a*60-b
if time>=e:
print(time-e)
else:
print(0) | a,b,c,d,e = map(int,input().split())
time = c*60+d-a*60-b
if time>=e:
print(time-e)
else:
print(0) | [
"call.add"
] | 387,727 | 387,728 | u796044734 | python |
p02663 | h1,m1,h2,m2,k=map(int,input().split())
s=abs(h2-h1)*60+abs(m2-m1)
n=s-k
print(n) | h1,m1,h2,m2,k=map(int,input().split())
s=(h2-h1)*60+(m2-m1)
n=s-k
print(n) | [] | 387,741 | 387,742 | u419658700 | python |
p02663 | h1, m1,h2,m2,k = map(int,input().split())
print(abs((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,743 | 387,744 | u101442050 | 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,745 | 387,744 | u101442050 | python |
p02663 | h1,m1,h2,m2,k=map(int,input().split())
ans=(h2-h1-1)*60+(60-m1)-(m2-0)-k
print(ans) | h1,m1,h2,m2,k=map(int,input().split())
ans=(h2-h1-1)*60+(60-m1)+m2-k
print(ans) | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 387,758 | 387,759 | u362031378 | python |
p02663 | h1,m1,h2,m2,k = map(int,input().split())
time = (h2 - h1) * 60 - (m2 - m1)
print(time - k) | h1,m1,h2,m2,k = map(int,input().split())
time = (h2 - h1) * 60 + (m2 - m1)
print(time - k) | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 387,760 | 387,761 | u818283165 | python |
p02663 | def resolve():
h1, m1, h2, m2, k = map(int, input().split())
print((h2-h1)*60 + (m2-m1) - k*10)
resolve() | def resolve():
h1, m1, h2, m2, k = map(int, input().split())
print((h2-h1)*60 + (m2-m1) - k)
resolve() | [
"expression.operation.binary.remove"
] | 387,762 | 387,763 | u631872601 | python |
p02663 | h1, m1, h2, m2, k = map(int, input().split())
time1 = h1*60+m1
time2 = h2*60+m1
print(time2-time1-k)
| h1, m1, h2, m2, k = map(int, input().split())
time1 = h1*60+m1
time2 = h2*60+m2
print(time2-time1-k)
| [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 387,768 | 387,769 | u661439250 | python |
p02663 | a,b,c,d,e=map(int,input().split())
x=((c*60-d)-(a*60+b))-e
if x<0:
x=x+1440
print(x)
| a,b,c,d,e=map(int,input().split())
x=((c*60+d)-(a*60+b))-e
if x<0:
x=x+1440
print(x) | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 387,779 | 387,780 | u596847957 | python |
p02663 | H1, M1, H2, M2, K = map(int,input().split())
T1 = H1*60 + M1
T2 = H2*60 - M2
T = T2 - T1
print(T - K) | H1, M1, H2, M2, K = map(int, input().split())
T1 = H1 * 60 + M1
T2 = H2 * 60 + M2
T = T2 - T1
print(T - K)
| [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 387,781 | 387,782 | u329706129 | python |
p02663 | h1, m1, h2, m2, k = map(int, input().split())
h_time = h2 - h1
if m1 < m2:
h_time -= 1
m_time = 60 - m2 + m1
else:
m_time = m2 - m1
study_time = (h_time * 60 + m_time) - k
if study_time <= 0:
print(0)
else:
print(study_time)
| h1, m1, h2, m2, k = map(int, input().split())
h_time = h2 - h1
if m1 > m2:
h_time -= 1
m_time = 60 - m1 + m2
else:
m_time = m2 - m1
study_time = (h_time * 60 + m_time) - k
if study_time <= 0:
print(0)
else:
print(study_time)
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 387,783 | 387,784 | u584850530 | python |
p02664 | T = input()
print(T.replase("?","D")) | print(input().replace("?","D")) | [
"call.remove",
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 387,804 | 387,805 | u503111914 | python |
p02664 | print(input().replase('?', 'D')) | print(input().replace('?', 'D')) | [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 387,828 | 387,829 | u773077120 | python |
p02664 | import itertools
import decimal
import math
import collections
import sys
input = sys.stdin.readline
T=input()
T.replace("?","D")
print(T) | import itertools
import decimal
import math
import collections
import sys
input = sys.stdin.readline
T=input()
T=T.replace('?','D')
print(T) | [
"literal.string.change",
"assignment.value.change",
"call.arguments.change"
] | 387,838 | 387,839 | u457460736 | python |
p02664 | t = list(input())
for i in range(1, len(t)):
if t[i] == '?':
t[i] = 'D'
print(''.join(t))
| t = list(input())
for i in range(len(t)):
if t[i] == '?':
t[i] = 'D'
print(''.join(t))
| [
"call.arguments.change"
] | 387,848 | 387,849 | u464032595 | python |
p02664 | PD = input()
print(PD.replase("?", "D")) | PD = input()
print(PD.replace("?", "D"))
| [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 387,866 | 387,867 | u417707749 | python |
p02664 | a= input()
c=""
for i in range(1, len(a)):
if a[i-1]=="?":
c=c+"D"
else:
c=c+a[i-1]
print(c) | a= input()
c=""
for i in range(0, len(a)):
if a[i]=="?":
c=c+"D"
else:
c=c+a[i]
print(c) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.lower.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 387,878 | 387,879 | u301584411 | python |
p02664 | print(input.replace("?", "D")) | print(input().replace("?", "D")) | [
"call.add"
] | 387,882 | 387,883 | u597455618 | python |
p02663 | def main():
H1, M1, H2, M2, K = (int(i) for i in input().split())
h = H2 - H1
m = max(M2 - M1, 0)
ans = h*60 + m - K
if ans > 0:
print(ans)
else:
print(0)
if __name__ == '__main__':
main()
| def main():
H1, M1, H2, M2, K = (int(i) for i in input().split())
h = H2 - H1
m = M2 - M1
ans = h*60 + m - K
if ans > 0:
print(ans)
else:
print(0)
if __name__ == '__main__':
main()
| [
"call.remove",
"call.arguments.change"
] | 387,908 | 387,909 | u312025627 | 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,919 | 387,920 | u641446860 | python |
p02663 | h1,m1,h2,m2,k = map(int,input().split())
if m2 < m1:
m2 += 60
h1 -= 1
time = (h2 - h1) * 60 + (m2 - m1)
print(time - k)
| h1,m1,h2,m2,k = map(int,input().split())
if m2 < m1:
m2 += 60
h2 -= 1
time = (h2 - h1) * 60 + (m2 - m1)
print(time - k)
| [
"identifier.change"
] | 387,921 | 387,922 | u788703383 | python |
p02663 | H1,M1,H2,M2,K = map(int,input().split())
print(60 * (H1 - H2) + M2 - M1 - K) | H1,M1,H2,M2,K = map(int,input().split())
print(60 * (H2 - H1) + M2 - M1 - K) | [
"expression.operation.binary.remove"
] | 387,925 | 387,926 | u886286585 | python |
p02663 | H1, H2, H3, H4, K = map(int, input().split())
up = H1*60 + H2
down = H3*60 - H4
print(down - up - K) | H1, H2, H3, H4, K = map(int, input().split())
up = H1*60 + H2
down = H3*60 + H4
print(down - up - K) | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 387,927 | 387,928 | u600261652 | python |
p02663 | H1, H2, H3, H4, K = map(int, input().split())
up = H1*60+H2
down = H3*60-H4
print(down-up-K) | H1, H2, H3, H4, K = map(int, input().split())
up = H1*60 + H2
down = H3*60 + H4
print(down - up - K) | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 387,929 | 387,928 | u600261652 | python |
p02663 | H1, M1, H2, M2, K = map(int, input().split())
print((H2 - H1) * 60 + abs(M1 - M2) - K) | H1, M1, H2, M2, K = map(int, input().split())
print((H2 - H1) * 60 + (M2 -M1) - K) | [
"call.arguments.change",
"expression.operation.binary.remove"
] | 387,932 | 387,933 | u766566560 | python |
p02663 | h1, m1, h2, m2, k = map(int, input().split())
hour = h2 - h1
minute = m2 - m1
time = (hour * 60) - minute
print(time - k) | h1, m1, h2, m2, k = map(int, input().split())
hour = h2 - h1
minute = m2 - m1
time = (hour * 60) + minute
print(time - k)
| [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 387,934 | 387,935 | u435593586 | python |
p02663 | h1,m1,h2,m2,k=map(int,input().split())
ans2=h2*60+m2
ans1=h1*60+m1
print(ans2-ans1)
| h1,m1,h2,m2,k=map(int,input().split())
ans2=h2*60+m2
ans1=h1*60+m1
print(ans2-ans1-k)
| [
"expression.operation.binary.add"
] | 387,946 | 387,947 | u366886346 | python |
p02663 | #デフォルト
import itertools
from collections import defaultdict
import collections
import math
import sys
sys.setrecursionlimit(200000)
mod = 1000000007
h1, m1, h2, m2, k = map(int, input().split())
minute = ((h2 * 60) + m2) - (h1 * 60) + m1
print(minute - k) | #デフォルト
import itertools
from collections import defaultdict
import collections
import math
import sys
sys.setrecursionlimit(200000)
mod = 1000000007
h1, m1, h2, m2, k = map(int, input().split())
minute = ((h2 * 60) + m2) - ((h1 * 60) + m1)
print(minute - k) | [] | 387,948 | 387,949 | u202826462 | python |
p02663 | h1, m1, h2, m2, k = [int(i) for i in input().split()]
awake = 60*h2+m2 - (60*h1+m1) - k
print(k) | h1, m1, h2, m2, k = [int(i) for i in input().split()]
awake = 60*h2+m2 - (60*h1+m1) - k
print(awake) | [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 387,954 | 387,955 | u886362575 | python |
p02663 | h1, m1, h2, m2, k = [int(i) for i in input().split()]
time = 60*h2+m2 - 60*h1+m1 - k
print(time) | h1, m1, h2, m2, k = [int(i) for i in input().split()]
awake = 60*h2+m2 - (60*h1+m1) - k
print(awake) | [
"assignment.variable.change",
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 387,956 | 387,955 | u886362575 | python |
p02663 | H1,M1,H2,M2,K=map(int,input().split())
if M1>M2:
print(max((H2-H1-1)*60+(M1-M2)-K,0))
else:
print(max((H2-H1)*60+(M2-M1)-K,0)) | H1,M1,H2,M2,K=map(int,input().split())
if M1>M2:
print(max((H2-H1-1)*60+(60-(M1-M2))-K,0))
else:
print(max((H2-H1)*60+(M2-M1)-K,0)) | [
"call.arguments.change"
] | 387,957 | 387,958 | u597374218 | python |
p02663 | # -*- coding: utf-8 -*-
a, b, c, d, e = map(int, input().split())
print((c-a)*60-(d-b)-e) | # -*- coding: utf-8 -*-
a, b, c, d, e = map(int, input().split())
print((c-a)*60+(d-b)-e) | [
"misc.opposites",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 387,963 | 387,964 | u258625617 | python |
p02663 | h1, m1, h2, m2, k = map(int, input().split())
wake_time = h2*60 + m2 - h1 *60 + m1;
if wake_time > k:
print(wake_time - k);
else:
print(0);
| h1, m1, h2, m2, k = map(int, input().split())
wake_time = h2*60 + m2 - (h1 *60 + m1);
if wake_time > k:
print(wake_time - k);
else:
print(0);
| [] | 387,965 | 387,966 | u781458283 | python |
p02663 | import numpy as np
h1, m1, h2, m2, k = np.array(list(map(int, input().split())))
h = h2 - h1
m = m2-m1
t = h*60 + m
print(t) | import numpy as np
h1, m1, h2, m2, k = np.array(list(map(int, input().split())))
h = h2 - h1
m = m2-m1
t = h*60 + m
print(t-k) | [
"expression.operation.binary.add"
] | 387,967 | 387,968 | u977650778 | python |
p02663 | H = input().split()
sdy =0
if int(H[2]) >= int(H[0]):
sdy = int(H[2])*60 +int(H[3])-int(H[0])*60 +int(H[1]) - int(H[4])
else:
H[2] = (int(H[2])+24)
sdy = int(H[2])*60 +int(H[3])-int(H[0])*60 +int(H[1]) - int(H[4])
if int(sdy) < 0:
sdy = 0
print(sdy)
| H = input().split()
sdy =0
if int(H[2]) >= int(H[0]):
sdy = int(H[2])*60 +int(H[3])-int(H[0])*60 -int(H[1]) - int(H[4])
else:
H[2] = (int(H[2])+24)
sdy = int(H[2])*60 +int(H[3])-int(H[0])*60 -int(H[1]) - int(H[4])
if int(sdy) < 0:
sdy = 0
print(sdy) | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 387,980 | 387,981 | u626228246 | python |
p02663 | h1,m1,h2,m2,k=input().split()
h1 = int(h1)
m1 = int(m1)
h2 = int(h2)
m2 = int(m2)
k = int(k)
if h1 > h2:
h2 += 24
h = h2 - h1
hm = h * 60
print(hm + m1 - m2 - k) | h1,m1,h2,m2,k=input().split()
h1 = int(h1)
m1 = int(m1)
h2 = int(h2)
m2 = int(m2)
k = int(k)
if h1 > h2:
h2 += 24
h = h2 - h1
hm = h * 60
print(hm - m1 + m2 - k) | [
"expression.operation.binary.remove"
] | 387,988 | 387,989 | u701638736 | python |
p02663 | h1, m1, h2, m2, k = map(int, input().split())
start_mins = h1 * 60 + m1
end_min = h2 * 60 + m1
is_up = end_min - start_mins
can_start = is_up - k
print(max(0, can_start)) | h1, m1, h2, m2, k = map(int, input().split())
start_mins = h1 * 60 + m1
end_min = h2 * 60 + m2
is_up = end_min - start_mins
can_start = is_up - k
print(can_start) | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"call.remove",
"call.arguments.change"
] | 387,991 | 387,992 | u706186040 | python |
p02663 | h1, m1, h2, m2, k = map(int, input().split())
start_mins = h1 * 60 + m1
end_min = h2 * 60 + m1
is_up = end_min - start_mins
can_start = is_up - k
print(can_start) | h1, m1, h2, m2, k = map(int, input().split())
start_mins = h1 * 60 + m1
end_min = h2 * 60 + m2
is_up = end_min - start_mins
can_start = is_up - k
print(can_start) | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 387,993 | 387,992 | u706186040 | python |
p02663 | import sys
import math
import itertools
import collections
import heapq
import numpy as np
rl = sys.stdin.readline
h1, m1, h2, m2, k = map(int, rl().split())
m = h260 + m2 - h160 - m1
print(m-k) | import sys
import math
import itertools
import collections
import heapq
import numpy as np
rl = sys.stdin.readline
h1, m1, h2, m2, k = map(int, rl().split())
m = h2*60 + m2 - h1*60 - m1
print(m-k) | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 388,005 | 388,006 | u215100858 | python |
p02663 | h1,m1,h2,m2,k =(int(x) for x in input().split())
hrtom= (h2-h1)
if (m2-m1 < 0) and (h2-h1 >=0) :
min = (h2-h1)*60 - (m2-m1) - k
print(min)
elif (m2-m1 >= 0) and (h2-h1 >=0 ):
min = (h2-h1)*60 + (m2-m1) - k
print(min)
else:
print('0') | h1,m1,h2,m2,k =(int(x) for x in input().split())
hrtom= (h2-h1)
if (m2-m1 < 0) and (h2-h1 >=0) :
min = (h2-h1)*60 + (m2-m1) - k
print(min)
elif (m2-m1 >= 0) and (h2-h1 >=0 ):
min = (h2-h1)*60 + (m2-m1) - k
print(min)
else:
print('0') | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 388,008 | 388,009 | u448526632 | 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 - k - h1*60-m1) | [
"expression.operation.binary.remove",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 388,018 | 388,019 | u198073053 | python |
p02663 | H = list(map(int,input().split()))
h = H[2]-H[0]
m = H[3]-H[1]
if h < 0:
h = h + 24
if m < 0:
h -= 1
m *= -1
mini = h*60 + m - H[4]
if mini < 0:
mini = 24*60 + mini
print(mini) | H = list(map(int,input().split()))
h = H[2]-H[0]
m = H[3]-H[1]
if h < 0:
h = h + 24
if m < 0:
h -= 1
m = 60 + m
mini = h*60 + m - H[4]
if mini < 0:
mini = 24*60 + mini
print(mini) | [
"assignment.add"
] | 388,023 | 388,024 | u801701525 | python |
p02663 | H = list(map(int,input().split()))
h = H[2]-H[0]
m = H[3]-H[1]
if h < 0:
h = h + 24
if m < 0:
h -= 1
m *= -1
mini = h*60 + m - H[4]
if mini < 0:
mini = 24*60 -mini
print(mini) | H = list(map(int,input().split()))
h = H[2]-H[0]
m = H[3]-H[1]
if h < 0:
h = h + 24
if m < 0:
h -= 1
m = 60 + m
mini = h*60 + m - H[4]
if mini < 0:
mini = 24*60 + mini
print(mini) | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 388,025 | 388,024 | u801701525 | python |
p02663 | H_1, M_1, H_2, M_2, K = map(int, input().split())
H_ = H_2 * 60 + M_2 - K
H = H_ - (H_1*60+M_2)
print(H) | H_1, M_1, H_2, M_2, K = map(int, input().split())
H_ = H_2 * 60 + M_2 - K
H = H_ - (H_1*60+M_1)
print(H) | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 388,037 | 388,038 | u311448602 | python |
p02664 | t=list(input())
for i in range(len(t)):
if t[i]=="?":
t[i]=D
print(t[i],end="") | t=list(input())
for i in range(len(t)):
if t[i]=="?":
t[i]="D"
print(t[i],end='') | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 388,051 | 388,052 | u048915776 | python |
p02664 | t=list(input())
for i in range(len(t)):
if t[i]=='?':
t[i]=D
print(t[i],end="") | t=list(input())
for i in range(len(t)):
if t[i]=="?":
t[i]="D"
print(t[i],end='') | [
"literal.string.change",
"control_flow.branch.if.condition.change",
"call.arguments.change",
"io.output.change"
] | 388,053 | 388,052 | u048915776 | python |
p02664 | t = input()
ans = replace("?", "D")
print | t = input()
ans = t.replace("?", "D")
print(ans) | [
"call.arguments.add"
] | 388,070 | 388,069 | u723345499 | python |
p02664 | T = input()
count = 0
for c in T:
count += 1
if c == '?' and T[count-2] == 'D':
c = 'P'
print(c, end="")
elif c == '?':
c = 'D'
print(c, end="")
else:
print(c, end="") | T = input()
count = 0
for c in T:
count += 1
if c == '?' and T[count-1] == 'D':
c = 'P'
print(c, end="")
elif c == '?':
c = 'D'
print(c, end="")
else:
print(c, end="") | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 388,102 | 388,103 | u039934639 | python |
p02664 | ret = ""
for i in range(len(T)):
if T[i]=="?":
ret += "D"
else:
ret += T[i]
print(ret) | T = input()
ret = ""
for i in range(len(T)):
if T[i]=="?":
ret += "D"
else:
ret += T[i]
print(ret) | [
"assignment.add"
] | 388,130 | 388,131 | u886218733 | python |
p02664 | s = input()
s.replace('?', 'D')
print(s) | s = input()
s = s.replace('?', 'D')
print(s) | [
"assignment.add"
] | 388,154 | 388,155 | u882616665 | python |
p02664 | s = input()
r1 = s.replace('?','D').count('D') + s.replace('?','D').count('PD')
r2 = s.replace('?','P').count('P') + s.replace('?','P').count('PD')
if r1 >= r2:
print(s.replace('?','D'))
else:
print(s.replace('?','P')) | s = input()
r1 = s.replace('?','D').count('D') + s.replace('?','D').count('PD')
r2 = s.replace('?','P').count('D') + s.replace('?','P').count('PD')
if r1 >= r2:
print(s.replace('?','D'))
else:
print(s.replace('?','P')) | [
"literal.string.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 388,166 | 388,167 | u275030199 | python |
p02664 | T = input()
T.replace("?","D") | T = input()
print(T.replace("?","D")) | [
"call.add",
"call.arguments.change"
] | 388,170 | 388,171 | u221766194 | python |
p02664 | t = input()
ans = [0]*(len(t))
for i,c in enumerate(t):
if i !=0 and c =="?":
ans[i] = "D"
else:
ans[i] = t[i]
print(*ans,sep="") | t = input()
ans = [0]*(len(t))
for i,c in enumerate(t):
if c=="?":
ans[i] = "D"
else:
ans[i] = t[i]
print(*ans,sep="") | [
"control_flow.loop.for.condition.change"
] | 388,182 | 388,183 | u952669998 | python |
p02664 | s = list(input())
if len(s) < 2:
print("D")
exit()
for i in range(len(s)):
if s[i] =="?":
if i == 0:
if s[1]=="D" or s[1]=="?":
s[i] ="P"
else:
s[i] ="D"
else:
if s[i-1] =="P":
s[i]= "D"
else:
... | s = list(input())
if len(s) < 2:
print("D")
exit()
for i in range(len(s)):
if s[i] =="?":
if i == 0:
if s[1]=="D" or s[1]=="?":
s[i] ="D"
else:
s[i] ="D"
else:
if s[i-1] =="P":
s[i]= "D"
else:
... | [
"literal.string.change",
"assignment.value.change"
] | 388,193 | 388,194 | u207397871 | python |
p02664 | S=input()
S=S.replace("?","D")
S | S=input()
S=S.replace("?","D")
print(S) | [
"call.add",
"call.arguments.change"
] | 388,249 | 388,250 | u494295478 | python |
p02664 | s = input()
n = len(s)
news = []
for l in s:
news.append(l)
s = news
for i in range(1,n):
if s[i] == '?':
s[i] = 'D'
print(''.join(s)) | s = input()
n = len(s)
news = []
for l in s:
news.append(l)
s = news
for i in range(n):
if s[i] == '?':
s[i] = 'D'
print(''.join(s)) | [
"call.arguments.change"
] | 388,278 | 388,279 | u556326496 | python |
p02664 | T=input()
T=list(T)
for i in range(len(T)):
j=int(i)
if T[j]=='?':
T[j]='D'
"".join(T)
print(T)
| T=input()
T=list(T)
for i in range(len(T)):
j=int(i)
if T[j]=='?':
T[j]='D'
T="".join(T)
print(T)
| [
"assignment.add"
] | 388,282 | 388,283 | u125348436 | python |
p02664 | t = input()
t.replace("?","D")
print(t) | t = input()
t = t.replace("?","D")
print(t) | [
"assignment.add"
] | 388,292 | 388,293 | u427231601 | python |
p02664 | import sys
import math
import itertools
s = input()
ans=''
for i in range(len(s)):
if(s[i]==''):
ans+='D'
else:
ans += s[i]
print(ans) | import sys
import math
import itertools
s = input()
ans=''
for i in range(len(s)):
if(s[i]=='?'):
ans+='D'
else:
ans += s[i]
print(ans) | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 388,311 | 388,312 | u469281291 | python |
p02664 | t = input()
t_replace = [t.replace('?', 'D')]
print(t_replace) | t = input()
t_replace = t.replace('?', 'D')
print(t_replace) | [] | 388,313 | 388,314 | u670819023 | python |
p02664 | T = str(input())
ans = ''
for i,t in eumerate(T):
if t != '?':
ans += t
else:
ans += 'D'
print(ans) | T = str(input())
ans = ''
for t in T:
if t != '?':
ans += t
else:
ans += 'D'
print(ans) | [
"call.remove",
"call.arguments.change"
] | 388,324 | 388,325 | u618696829 | python |
p02664 | T=list(input())
T2=(T.replace('?', 'd'))
print(T2) | T=input()
T2=(T.replace('?', 'D'))
print(T2) | [
"call.remove",
"call.arguments.change",
"literal.string.change",
"literal.string.case.change",
"assignment.value.change"
] | 388,326 | 388,327 | u846385882 | python |
p02664 | t=list(input())
for i in range(1,len(t)):
if t[i]=="?":
t[i]="D"
print("".join(t)) | t=list(input())
for i in range(len(t)):
if t[i]=="?":
t[i]="D"
print("".join(t))
| [
"call.arguments.change"
] | 388,328 | 388,329 | u840958781 | python |
p02664 | t = input()
max = 0
tmp = 0
t = t.replace('?', 'D')
#print(t)
# how many D
tmp = t.count('D')
# how many PD
tmp += t.count('PD')
max = tmp
print(max) | t = input()
#t = 'PD?D??P'
max = 0
tmp = 0
t = t.replace('?', 'D')
#print(t)
# how many D
tmp = t.count('D')
# how many PD
tmp += t.count('PD')
max = tmp
print(t) | [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 388,335 | 388,336 | u977221222 | python |
p02664 | import re
def solve(stri):
point = 0
# Dの数
for a in stri:
if a == "D":
point += 1
# PDの数
searched_pd = re.findall("PD",stri)
point += len(searched_pd)
return point
T = input()
T2 = re.sub('\?','D',T)
print(solve(T2))
| import re
def solve(stri):
point = 0
# Dの数
for a in stri:
if a == "D":
point += 1
# PDの数
searched_pd = re.findall("PD",stri)
point += len(searched_pd)
return point
T = input()
T2 = re.sub('\?','D',T)
print(T2)
| [
"call.arguments.change"
] | 388,337 | 388,338 | u499998503 | python |
p02664 | T = input()
ans_T = T.replace('?','D') | T = input()
ans_T = T.replace('?','D')
print(ans_T) | [
"call.add"
] | 388,339 | 388,340 | u214858341 | python |
p02664 | t = list(input())
for i in range(len(t)-1):
if t[i] == "?":
# t[i] = "D"x
print("D",end = "")
else:
print(t[i],end = "")
| t = list(input())
for i in range(len(t)):
if t[i] == "?":
# t[i] = "D"x
print("D",end = "")
else:
print(t[i],end = "")
| [
"expression.operation.binary.remove"
] | 388,343 | 388,344 | u864069774 | python |
p02664 | T = list(input())
N = len(T)
for i in range(1,N):
if T[i] == '?':
T[i] = 'D'
T="".join(T)
print(T)
| T = list(input())
N = len(T)
for i in range(N):
if T[i] == '?':
T[i] = 'D'
T="".join(T)
print(T)
| [
"call.arguments.change"
] | 388,349 | 388,350 | u630511239 | python |
p02664 | T=input()
T=[str(t) for t in T]
for a in range(len(T)):
if T[a]=='?':
if a-1>=0 and T[a-1]=='P':
T[a]='D'
elif a+1>len(T)-1:
T[a]='D'
else:
T[a]='P'
print(''.join(T))
| T=input()
T=[str(t) for t in T]
for a in range(len(T)):
if T[a]=='?':
if a-1>=0 and T[a-1]=='P':
T[a]='D'
elif a+1>len(T)-1:
T[a]='D'
else:
T[a]='D'
print(''.join(T))
| [
"literal.string.change",
"assignment.value.change"
] | 388,354 | 388,355 | u263824932 | python |
p02664 | t = list(input())
for i in range(len(t)):
if t[i]=='?':
if i==0:
t[i]='?'
if t[i-1]=='D':
t[i]='P'
else:
t[i]='D'
print(''.join(t)) | t = list(input())
for i in range(len(t)):
if t[i]=='?':
if i==0:
t[i]='?'
if t[i-1]=='P':
t[i]='D'
else:
t[i]='D'
print(''.join(t)) | [
"literal.string.change",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 388,358 | 388,359 | u966891144 | python |
p02664 | t = input()
l = [_ for i in range(len(t))]
for i in range(0, len(t)):
if t[i] =="?":
l[i] = "D"
else:
l[i] = t[i]
print("".join(l)) | t = input()
l = ["" for i in range(len(t))]
for i in range(0, len(t)):
if t[i] =="?":
l[i] = "D"
else:
l[i] = t[i]
print("".join(l)) | [
"assignment.value.change"
] | 388,366 | 388,367 | u057993957 | python |
p02664 | S = list(input())
ans = [0]*len(S)
for i in range(len(S)):
if S[i] == "?":
ans[i] = "D"
else:
ans[i] = "P"
S1 = "".join(ans)
print(S1)
| S = list(input())
ans = [0]*len(S)
for i in range(len(S)):
if S[i] == "?":
ans[i] = "D"
else:
ans[i] = S[i]
S1 = "".join(ans)
print(S1)
| [] | 388,372 | 388,373 | u991134049 | python |
p02664 | import sys
input = sys.stdin.readline
# sys.setrecursionlimit(100000)
def main():
S = int(input().strip())
return S.replace("?","D")
if __name__ == "__main__":
print(main()) | import sys
input = sys.stdin.readline
# sys.setrecursionlimit(100000)
def main():
S = input().strip()
return S.replace("?","D")
if __name__ == "__main__":
print(main()) | [
"call.remove",
"call.arguments.change"
] | 388,404 | 388,405 | u397496203 | python |
p02664 | T = int(input())
print(T.replace('?', 'D')) | T = input()
print(T.replace('?', 'D')) | [
"call.remove",
"call.arguments.change"
] | 388,406 | 388,407 | u660466744 | python |
p02664 | S = list(input())
for i in range(1,len(S)-1):
if S[i] == "?":
S[i] = "D"
print("".join(S)) | S = list(input())
for i in range(len(S)):
if S[i] == "?":
S[i] = "D"
print("".join(S)) | [
"call.arguments.change",
"expression.operation.binary.remove"
] | 388,423 | 388,424 | u851035514 | python |
p02664 | def main():
S = input()
S = S.replace("?", "P")
print(S)
if __name__ == "__main__":
main() | def main():
S = input()
S = S.replace("?", "D")
print(S)
if __name__ == "__main__":
main() | [
"literal.string.change",
"assignment.value.change",
"call.arguments.change"
] | 388,434 | 388,435 | u707498674 | python |
p02664 | def solve():
t = list(input())
for i in range(len(t)-1):
if t[i] == "?":
t[i] = "D"
print("".join(t))
return 0
if __name__ == "__main__":
solve() | def solve():
t = list(input())
for i in range(len(t)):
if t[i] == "?":
t[i] = "D"
print("".join(t))
return 0
if __name__ == "__main__":
solve() | [
"expression.operation.binary.remove"
] | 388,448 | 388,449 | u075304271 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.