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 9
values |
|---|---|---|---|---|---|---|---|
p02389 | a = gets.chomp
b = a.split(" ")
c = b[0].to_i*b[1].to_i
d = (b[0].to_i*b[1].to_i)*2
print c,(" "),d,("\n") |
a = gets.chomp
b = a.split(" ")
c = b[0].to_i*b[1].to_i
d = (b[0].to_i+b[1].to_i)*2
print c,(" "),d,("\n") | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 147,912 | 147,916 | u741415050 | ruby |
p02389 | a = gets.to_s
b = a.split(" ")
c = b[0].to_i*b[1].to_i
d = (b[0].to_i+b[1].to_i)*2
puts c,(" "),d,("\n") |
a = gets.chomp
b = a.split(" ")
c = b[0].to_i*b[1].to_i
d = (b[0].to_i+b[1].to_i)*2
print c,(" "),d,("\n") | [
"assignment.value.change",
"identifier.change"
] | 147,917 | 147,916 | u741415050 | ruby |
p02389 | a = gets.chomp
b = a.split(" ")
c = b[0].to_i*b[1].to_i
d = (b[0].to_i*b[1].to_i)*2
print c,(" "),d,("\n") |
a = gets
b = a.split(" ")
c = b[0].to_i*b[1].to_i
d = (b[0].to_i+b[1].to_i)*2
print c,(" "),d,("\n") | [
"call.remove",
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 147,912 | 147,918 | u741415050 | ruby |
p02389 | a = gets.to_s
b = a.split(" ")
c = b[0].to_i*b[1].to_i
d = (b[0].to_i+b[1].to_i)*2
puts c,(" "),d,("\n") |
a = gets
b = a.split(" ")
c = b[0].to_i*b[1].to_i
d = (b[0].to_i+b[1].to_i)*2
print c,(" "),d,("\n") | [
"call.remove",
"identifier.change"
] | 147,917 | 147,918 | u741415050 | ruby |
p02389 | x, y = STDIN.gets.chomp.split(" ").map(&:to_i)
puts x * y
puts x * 2 + y * 2 | x, y = STDIN.gets.chomp.split(" ").map(&:to_i)
print x * y, " "
puts x * 2 + y * 2 | [
"identifier.change",
"call.arguments.add"
] | 147,923 | 147,924 | u217758765 | ruby |
p02389 | ab = Array.new
ab = gets.split.map(&:to_i)
men = ab[0]*ab[1]
hen = 2*2*(ab[0]+ab[1])
puts "#{men} #{hen}" | ab = Array.new
ab = gets.split.map(&:to_i)
men = ab[0]*ab[1]
hen = 2*(ab[0]+ab[1])
puts "#{men} #{hen}" | [
"expression.operation.binary.remove"
] | 147,930 | 147,931 | u648595404 | ruby |
p02389 | a, b = gets.split(" ")
print a.to_i*b.to_i," ",2 * (a.to_i + b.to_i), "?\n" | a, b = gets.split(" ")
print a.to_i*b.to_i," ",2 * (a.to_i + b.to_i)
puts | [
"call.arguments.change",
"io.output.change"
] | 147,934 | 147,935 | u087773362 | ruby |
p02389 | x, y = gets.split.map(&:to_i)
printf("%d : %d\n", x* y, x * 2 + y *2) | x, y = gets.split.map(&:to_i)
printf("%d %d\n", x* y, x * 2 + y *2) | [
"literal.string.change",
"call.arguments.change"
] | 147,938 | 147,939 | u810204701 | ruby |
p02389 | x,y = gets.split.map(&:to_i)
printf("%d %d?\n", a*b, 2*a+2*b) | a,b = gets.split.map(&:to_i)
printf("%d %d\n", a*b, 2*a+2*b) | [
"assignment.variable.change",
"identifier.change",
"literal.string.change",
"call.arguments.change"
] | 147,942 | 147,941 | u275934044 | ruby |
p02389 | a,b = gets.split.map(&:to_i)
printf("%d %d?\n", a*b, 2*a+2*b) | a,b = gets.split.map(&:to_i)
printf("%d %d\n", a*b, 2*a+2*b) | [
"literal.string.change",
"call.arguments.change"
] | 147,943 | 147,941 | u275934044 | ruby |
p02389 | x,y = gets.chomp.split.map(&:to_i)
puts "#{a*b} #{(a+b)*2}" | x,y = gets.chomp.split.map(&:to_i)
puts "#{x*y} #{(x+y)*2}" | [
"literal.string.change",
"call.arguments.change"
] | 147,958 | 147,959 | u734427071 | ruby |
p02389 | i = gets.split
puts "#{i[0].to_i+i[1].to_i} #{2*(i[0].to_i+i[1].to_i)}" | i = gets.split
puts "#{i[0].to_i*i[1].to_i} #{2*(i[0].to_i+i[1].to_i)}" | [
"literal.string.change",
"call.arguments.change"
] | 147,962 | 147,963 | u501790039 | ruby |
p02389 | s=1
r=0
a=gets.split(" ").each do |n|
s*=n.to_i
r+=n.to_i
end
p s.to_s + " " + (2*r).to_s | s=1
r=0
a=gets.split(" ").each do |n|
s*=n.to_i
r+=n.to_i
end
puts s.to_s + " " + (2*r).to_s | [
"call.function.change",
"io.output.change"
] | 147,974 | 147,975 | u656368260 | ruby |
p02389 | i,j = gets.split.map(&:to_i)
puts "{i*j} #{i*2+j*2} " | i,j = gets.split.map(&:to_i)
puts "#{i*j} #{i*2+j*2}" | [
"literal.string.change",
"call.arguments.change"
] | 148,930 | 148,928 | u407138207 | ruby |
p02389 | a,b = gets.split.map(&:to_i)
x = a * b
y = 2*(a + b)
puts "#{x} #{b}" | a,b = gets.split.map(&:to_i)
x = a * b
y = 2 * (a + b)
puts "#{x} #{y}" | [
"literal.string.change",
"call.arguments.change"
] | 148,935 | 148,934 | u407138207 | ruby |
p02389 | a,b=gets.split.map(&:to_i)
puts "#{a*b}" "#{2*(a+b)}" | a,b=gets.split.map(&:to_i)
puts "#{a*b}" + " " + "#{2*(a+b)}" | [
"expression.operation.binary.add"
] | 148,940 | 148,941 | u407138207 | ruby |
p02389 | a, b = gets.split.map(&:to_i)
puts a * b, (a + b) * 2 | a, b = gets.split.map(&:to_i)
print a * b
print ' '
puts (a + b) * 2 | [
"identifier.change",
"call.arguments.change",
"io.output.change",
"call.add"
] | 148,942 | 148,943 | u444784544 | ruby |
p02389 | l
while str = $stdin.gets
tate, yoko = str.strip.split(' ')
puts "#{tate.to_i * yoko.to_i} #{tate.to_i * 2 + yoko.to_i * 2}"
break
end | while str = $stdin.gets
tate, yoko = str.strip.split(' ')
puts "#{tate.to_i * yoko.to_i} #{tate.to_i * 2 + yoko.to_i * 2}"
break
end | [] | 148,944 | 148,945 | u364115699 | ruby |
p02389 | a,b=gets.split.map(&:to_i)
puts "#{a*b} #{a+b}" | a,b =gets.split.map(&:to_i)
puts "#{a *b} #{a+a+b+b}" | [
"literal.string.change",
"call.arguments.change"
] | 148,968 | 148,969 | u065242300 | ruby |
p02389 | a, b = gets.split(' ').map(&:to_i)
area = a * b
perimeter = (a + b) * 2
p "#{area} #{perimeter}" | a, b = gets.split(' ').map(&:to_i)
area = a * b
perimeter = (a + b) * 2
puts "#{area} #{perimeter}" | [
"call.function.change",
"io.output.change"
] | 148,970 | 148,971 | u285272839 | ruby |
p02389 | a, b = gets.split(' ').map(&:to_i)
area = a * b
perimeter = (a + b) * 3
p "#{area} #{perimeter}" | a, b = gets.split(' ').map(&:to_i)
area = a * b
perimeter = (a + b) * 2
puts "#{area} #{perimeter}" | [] | 148,972 | 148,971 | u285272839 | ruby |
p02389 | a, b = gets.chomp.split(' ').map(&:to_i)
area = a * b
perimeter = (a + b) * 2
p "#{area} #{perimeter}" | a, b = gets.split(' ').map(&:to_i)
area = a * b
perimeter = (a + b) * 2
puts "#{area} #{perimeter}" | [
"call.remove",
"call.function.change",
"io.output.change"
] | 148,974 | 148,971 | u285272839 | ruby |
p02389 | x, y = gets.split.map(&:to_i)
area = x * y
perimeter = (x + y) * 2
puts '#{area} #{perimeter}' | x, y = gets.split.map(&:to_i)
area = x * y
perimeter = (x + y) * 2
puts "#{area} #{perimeter}" | [
"literal.string.change",
"call.arguments.change"
] | 148,977 | 148,978 | u340500592 | ruby |
p02389 | input = gets
array = input.split(" ")
area = array[0].to_i * array[1].to_i
circum = 2 * (array[0].to_i + array[1].to_i)
puts "#{array} #{circum}"
| input = gets
array = input.split(" ")
area = array[0].to_i * array[1].to_i
circum = 2 * (array[0].to_i + array[1].to_i)
puts "#{area} #{circum}"
| [
"literal.string.change",
"call.arguments.change"
] | 148,995 | 148,994 | u732447686 | ruby |
p02389 | input = gets
array = input.split(" ")
area = array[0].to_i * array[1].to_i
circum = 2 * (array[0].to_i + array[1].to_i)
puts "#{array}\b#{circum}"
| input = gets
array = input.split(" ")
area = array[0].to_i * array[1].to_i
circum = 2 * (array[0].to_i + array[1].to_i)
puts "#{area} #{circum}"
| [
"literal.string.change",
"call.arguments.change"
] | 148,996 | 148,994 | u732447686 | ruby |
p02389 | input = gets.chomp.split(' ')
square = input[0].to_i * input[1].to_i
length = input[0].to_i * 2 + input[1].to_i * 2
p "#{square} #{length}" | input = gets.chomp.split(' ')
square = input[0].to_i * input[1].to_i
length = input[0].to_i * 2 + input[1].to_i * 2
puts "#{square} #{length}" | [
"call.function.change",
"io.output.change"
] | 149,009 | 149,010 | u946742826 | ruby |
p02390 | x = gets
x = x.to_i
puts "#{x/3600} #{x/60%60} #{x%60}" | x = gets
x = x.to_i
puts "#{x/3600}:#{x/60%60}:#{x%60}" | [
"literal.string.change",
"call.arguments.change"
] | 152,443 | 152,444 | u615353970 | ruby |
p02390 | time = ARGV[0].to_i
sec = time % 60
min = (time % 3600) / 60
hour = time / 3600
print "#{hour}:#{min}:#{sec}" | time = gets.to_i
sec = time % 60
min = (time % 3600) / 60
hour = time / 3600
puts "#{hour}:#{min}:#{sec}" | [
"assignment.value.change",
"identifier.change"
] | 152,448 | 152,449 | u024069892 | ruby |
p02390 | time = ARGV[0].to_i
sec = time % 60
min = (time % 3600) / 60
hour = time / 3600
puts "#{hour}:#{min}:#{sec}" | time = gets.to_i
sec = time % 60
min = (time % 3600) / 60
hour = time / 3600
puts "#{hour}:#{min}:#{sec}" | [
"assignment.value.change"
] | 152,450 | 152,449 | u024069892 | ruby |
p02390 | time = 46979
sec = time % 60
min = (time % 3600) / 60
hour = time / 3600
puts "#{hour}:#{min}:#{sec}" | time = gets.to_i
sec = time % 60
min = (time % 3600) / 60
hour = time / 3600
puts "#{hour}:#{min}:#{sec}" | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"call.add"
] | 152,451 | 152,449 | u024069892 | ruby |
p02390 | time = 46979
sec = time % 60
min = (time % 3600) / 60
hour = time / 3600
puts "#{hour}:#{min}:#{sec}" | time = gets.to_i
sec = time % 60
min = (time % 3600) / 60
hour = time / 3600
puts "#{hour}:#{min}:#{sec}" | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"call.add"
] | 152,452 | 152,449 | u024069892 | ruby |
p02390 | x = ARGF.gets.to_i
h = ((x / 60) / 60).floor
m = x / 60.fllor
s = x % 60
puts "#{h}:#{m}:#{s}" | x = ARGF.gets.to_i
h = ((x / 60) / 60).floor
m = (x / 60) % 60.floor
s = x % 60
puts "#{h}:#{m}:#{s}" | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 152,454 | 152,455 | u330842660 | ruby |
p02390 | x = ARGF.gets.to_i
h = ((x / 60) / 60).floor
m = (x / 60).floor
s = x % 60
puts "#{h}:#{m}:#{s}" | x = ARGF.gets.to_i
h = ((x / 60) / 60).floor
m = (x / 60) % 60.floor
s = x % 60
puts "#{h}:#{m}:#{s}" | [
"assignment.change"
] | 152,456 | 152,455 | u330842660 | ruby |
p02390 | x = ARGF.gets.to_i
h = ((x / 60) / 60).floor
m = (x / 60).floor
s = x % 60
puts "#{h}:#{m}:#{s}" | x = ARGF.gets.to_i
h = ((x / 60) / 60).floor
m = (x / 60) % 60.floor
s = x % 60.floor
puts "#{h}:#{m}:#{s}" | [
"call.add"
] | 152,456 | 152,457 | u330842660 | ruby |
p02390 | i = gets
h = i / 3600
m = (i - h * 3600) / 60
s = i - h * 3600 - m * 60
puts "#{h}:#{m}:#{s}" | i = gets.to_i
h = i / 3600
m = (i - h * 3600) / 60
s = i - h * 3600 - m * 60
puts "#{h}:#{m}:#{s}" | [
"call.add"
] | 152,458 | 152,459 | u209022771 | ruby |
p02390 | t = gets.to_i
h = (t/3600).floor
s = t%3600
m = (t/60).floor
s = t%60
print "#{h}:#{m}:#{s}" | t = gets.to_i
h = (t/3600).floor
s = t%3600
m = (s/60).floor
s = t%60
puts "#{h}:#{m}:#{s}" | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 152,460 | 152,461 | u102042957 | ruby |
p02390 | S = gets.to_i
h = S / 60 * 60
m = S / 60
s = S % 60
puts "#{h}:#{m}:#{s}" | S = gets.to_i
h = S / 3600
m = S % 3600 / 60
s = S % 60
puts "#{h}:#{m}:#{s}" | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 152,463 | 152,464 | u338661979 | ruby |
p02390 | S = gets.to_i
h = S / 3600
m = S % 60 / 60
s = S % 60
puts "#{h}:#{m}:#{s}" | S = gets.to_i
h = S / 3600
m = S % 3600 / 60
s = S % 60
puts "#{h}:#{m}:#{s}" | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 152,465 | 152,464 | u338661979 | ruby |
p02390 | S = gets.to_i
h = S / 3600
s = S % 3600
m = (S - 3600 * h) / 60
puts "#{h}:#{m}:#{s}" | S = gets.to_i
h = S / 3600
s = S % 60
m = (S - 3600 * h) / 60
puts "#{h}:#{m}:#{s}" | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 152,466 | 152,467 | u338661979 | ruby |
p02390 | s = gets.to_i
puts "#{s / 3600}:#{s / 60 % 60}:{s % 60}" | s = gets.to_i
puts "#{s / 3600}:#{s / 60 % 60}:#{s % 60}" | [
"literal.string.change",
"call.arguments.change"
] | 152,468 | 152,469 | u477150712 | ruby |
p02390 | s = gets.to_i
puts "#{s / 3600}:#{(s / 60) % 60}:{s % 60}" | s = gets.to_i
puts "#{s / 3600}:#{s / 60 % 60}:#{s % 60}" | [
"literal.string.change",
"call.arguments.change"
] | 152,470 | 152,469 | u477150712 | ruby |
p02390 |
time = gets.to_i
ans = ""
hour = 0; min = 0; sec = 0
while 3600 < time
time -= 3600
hour += 1
end
while 60 < time
time -= 60
min += 1
end
sec = time
p "#{hour}:#{min}:#{sec}" |
time = gets.to_i
ans = ""
hour = 0; min = 0; sec = 0
while 3600 <= time
time -= 3600
hour += 1
end
while 60 <= time
time -= 60
min += 1
end
sec = time
puts "#{hour}:#{min}:#{sec}" | [
"expression.operator.compare.change",
"expression.operation.binary.change",
"call.function.change",
"io.output.change"
] | 152,473 | 152,474 | u046695668 | ruby |
p02390 | a=gets.to_i
b=a/3600
c=a%3600
d=c/60
e=c%60
puts "{#b}:{#d}:{#e}" | a=gets.to_i
b=a/3600
c=a%3600
d=c/60
e=c%60
puts "#{b}:#{d}:#{e}" | [
"literal.string.change",
"call.arguments.change"
] | 152,492 | 152,493 | u180931985 | ruby |
p02390 | S=gets.to_i
s=S%60
h=S/3600
m=(S-3600*h)/60
printf("%d:%d:%d?\n",h,m,s) | S=gets.to_i
s=S%60
h=S/3600
m=(S-3600*h)/60
printf("%d:%d:%d\n",h,m,s) | [
"literal.string.change",
"call.arguments.change"
] | 152,512 | 152,513 | u181428884 | ruby |
p02390 | S = gets.chomp
if 0 <= S && S < 86400
s = S % 60
m = (S / 60) % 60
h = S / (60 * 60)
puts "#{h}:#{m}:#{s}"
end | S = gets.chomp.to_i
if 0 <= S && S < 86400
s = S % 60
m = (S / 60) % 60
h = S / (60 * 60)
puts "#{h}:#{m}:#{s}"
end | [
"call.add"
] | 152,517 | 152,518 | u092148725 | ruby |
p02390 | s = gets.to_i
hour = s / 3600
min = (s - h * 3600) / 60
sec = s - (hour * 3600 + min * 60)
puts "#{hour}:#{min}:#{sec}" | s = gets.to_i
hour = s / 3600
min = (s - hour * 3600) / 60
sec = s - hour * 3600 - min * 60
puts "#{hour}:#{min}:#{sec}" | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"misc.opposites",
"expression.operator.arithmetic.change"
] | 152,524 | 152,525 | u305326050 | ruby |
p02390 | s = gets.to_i
hour = s / 3600
min = s - hour * 3600 / 60
sec = s - hour * 3600 - min * 60
puts "#{hour}:#{min}:#{sec}" | s = gets.to_i
hour = s / 3600
min = (s - hour * 3600) / 60
sec = s - hour * 3600 - min * 60
puts "#{hour}:#{min}:#{sec}" | [] | 152,526 | 152,525 | u305326050 | ruby |
p02390 | a = gets.to_i
b1 = a/3600
b2 = a%3600
c1 = b2/60
c2 = b2%60
print b1,";",c1,";",c2,"\n" | a = gets.to_i
b1 = a/3600
b2 = a%3600
c1 = b2/60
c2 = b2%60
print b1,":",c1,":",c2,"\n" | [
"literal.string.change",
"call.arguments.change"
] | 152,527 | 152,528 | u565781955 | ruby |
p02390 | a = gets().to_i
puts a/3600,':',(a/60)%60,':',a%60 | a = gets().to_i
print a/3600,':',(a/60)%60,':',a%60,"\n" | [
"identifier.change",
"call.arguments.add"
] | 152,529 | 152,530 | u914140574 | ruby |
p02390 | S = gets.to_i
#S = (h * 3600) + (m * 60) + s
h = floor(S / 3600)
m = floor((S - (h * 3600)) / 60)
s = S - ((h * 3600) + (m * 60))
puts "#{h}:#{m}:#{s}" | S = gets.to_i
#S = (h * 3600) + (m * 60) + s
h = (S / 3600).floor
m = ((S - (h * 3600)) / 60).floor
s = S - ((h * 3600) + (m * 60))
puts "#{h}:#{m}:#{s}" | [
"call.add"
] | 152,536 | 152,537 | u854258289 | ruby |
p02390 | S = gets.to_i;
h = S/3600
m = S%3600/60
s = S%60
puts h.to_i,":",m.to_i,":",s.to_i | S = gets.to_i;
h = S/3600
m = S%3600/60
s = S%60
print h.to_i,":",m.to_i,":",s.to_i,"\n" | [
"identifier.change",
"call.arguments.add"
] | 152,538 | 152,539 | u232170203 | ruby |
p02390 | S = gets.to_i;
h = S/3600
m = S%3600/60
s = S%60
p h.to_i,":",m.to_i,":",s.to_i | S = gets.to_i;
h = S/3600
m = S%3600/60
s = S%60
print h.to_i,":",m.to_i,":",s.to_i,"\n" | [
"call.function.change",
"io.output.change",
"call.arguments.add"
] | 152,540 | 152,539 | u232170203 | ruby |
p02390 | seconds=STDIN.gets.chomp.to_i
h=seconds/60**2
m=(seconds%60**2)/60
s=(seconds%60**2)%60
print "#{h}/#{m}/#{s}\n" | seconds=STDIN.gets.chomp.to_i
h=seconds/60**2
m=(seconds%60**2)/60
s=(seconds%60**2)%60
print "#{h}:#{m}:#{s}\n" | [
"literal.string.change",
"call.arguments.change"
] | 152,544 | 152,545 | u208203110 | ruby |
p02390 | S = gets.to_i
h = S / 3600
m = (S - h) / 60
s = (S % 3600) % 60
puts "#{h}:#{m}:#{s}" | S = gets.to_i
h = S / 3600
m = (S % 3600) / 60
s = (S % 3600) % 60
puts "#{h}:#{m}:#{s}" | [] | 152,549 | 152,550 | u407138207 | ruby |
p02390 | l
while str = $stdin.gets
sec = str.strip.to_i
h = (sec / 3600).floor
# puts "h = #{h}"
sec -= h * 3600
m = (sec / 60).floor
# puts "m = #{m}"
sec -= m * 60
# puts "sec = #{sec}"
puts "#{h}:#{m}:#{sec}"
end | while str = $stdin.gets
sec = str.strip.to_i
h = (sec / 3600).floor
# puts "h = #{h}"
sec -= h * 3600
m = (sec / 60).floor
# puts "m = #{m}"
sec -= m * 60
# puts "sec = #{sec}"
puts "#{h}:#{m}:#{sec}"
end | [] | 152,551 | 152,552 | u364115699 | ruby |
p02390 | t=gets.to_i
h=t/3600
m=t%3600/60
puts "#{h}+#{m}+#{t%60}" | t=gets.to_i
h=t/3600
m=t%3600/60
puts "#{h}:#{m}:#{t%60}" | [
"literal.string.change",
"call.arguments.change"
] | 152,553 | 152,554 | u071759777 | ruby |
p02390 | s = gets.to_i
puts "#{s/3600}:#{s/60}:#{s/1}" | s = gets.to_i
puts "#{s/3600}:#{s/60%60}:#{s%60}" | [
"literal.string.change",
"call.arguments.change"
] | 152,566 | 152,567 | u506470828 | ruby |
p02390 | s = gets.to_i
puts "#{s/3600}:#{s/60%60}:#{s-60}" | s = gets.to_i
puts "#{s/3600}:#{s/60%60}:#{s%60}" | [
"literal.string.change",
"call.arguments.change"
] | 152,568 | 152,567 | u506470828 | ruby |
p02390 |
s = STDIN.gets.to_i
# s = 46979
#p s
# "13:2:59"
H = 60*60
M = 60
p h = s/H
p m = (s - H*h) / M
p s = (s - H*h - m*M)
puts "#{h}:#{m}:#{s}"
|
s = STDIN.gets.to_i
H = 60*60
M = 60
h = s/H
m = (s - H*h) / M
s = (s - H*h - m*M)
puts "#{h}:#{m}:#{s}"
| [
"io.output.change",
"call.remove"
] | 152,572 | 152,573 | u117001632 | ruby |
p02390 | S = gets
h = S/60**2
m = (S-h*60**2)/60
s = S-(h*60**2+m*60)
puts "#{h}:#{m}:#{s}"
| S = gets.to_i
h = S/60**2
m = (S-h*60**2)/60
s = S-(h*60**2+m*60)
puts "#{h}:#{m}:#{s}"
| [
"call.add"
] | 153,014 | 153,015 | u732447686 | ruby |
p02390 | n = gets.to_i
h = n / 3600
m = n % 3600 / 60
s = n % 3600 / 60 / 60
puts "#{h}:#{m}:#{s}"
| n = gets.to_i
h = n / 3600
m = n % 3600 / 60
s = n % 3600 % 60
puts "#{h}:#{m}:#{s}"
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 153,018 | 153,019 | u930055226 | ruby |
p02390 | n = gets.to_i
h = n / 3600
m = n % 3600 / 60
s = n % 3600 % 60 / 60
puts "#{h}:#{m}:#{s}"
| n = gets.to_i
h = n / 3600
m = n % 3600 / 60
s = n % 3600 % 60
puts "#{h}:#{m}:#{s}"
| [
"expression.operation.binary.remove"
] | 153,020 | 153,019 | u930055226 | ruby |
p02391 | a,b = gets.split.map(&:to_i)
if a < b
puts "a < b"
elsif a > b
puts "a > b"
elsif a == b
puts "a==b"
end
| a,b = gets.split.map(&:to_i)
if a < b
puts "a < b"
elsif a > b
puts "a > b"
elsif a == b
puts "a == b"
end
| [
"literal.string.change",
"call.arguments.change"
] | 159,075 | 159,076 | u142551424 | ruby |
p02391 | a, b = gets.split(" ").map!{|x| x.to_i}
e = a < b ? "<" : a > b ? ">" : "=="
puts "#{a} #{e} #{b}" | a, b = gets.split(" ").map!{|x| x.to_i}
e = a < b ? "<" : a > b ? ">" : "=="
puts "a #{e} b" | [
"literal.string.change",
"call.arguments.change"
] | 159,088 | 159,089 | u364560197 | ruby |
p02391 | a, b = "1 2".split.map(&:to_i)
if a < b
puts 'a < b'
elsif a > b
puts 'a > b'
else
puts 'a == b'
end | a, b = gets.split.map(&:to_i)
if a < b
puts 'a < b'
elsif a > b
puts 'a > b'
else
puts 'a == b'
end | [
"assignment.value.change"
] | 159,095 | 159,096 | u765748067 | ruby |
p02391 | a, b = gets.split.map(&:to_i)
case
when a < b
puts "a < b"
when a > b
puts "a > b"
when a = b
puts "a = b"
end | a, b = gets.split.map(&:to_i)
case
when a < b
puts "a < b"
when a > b
puts "a > b"
when a == b
puts "a == b"
end | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo",
"literal.string.change",
"call.arguments.change"
] | 159,099 | 159,100 | u073321165 | ruby |
p02391 | a, b = gets.split.map(&:to_i)
case
when a < b
puts "a < b"
when a > b
puts "a > b"
when a == b
puts "a = b"
end | a, b = gets.split.map(&:to_i)
case
when a < b
puts "a < b"
when a > b
puts "a > b"
when a == b
puts "a == b"
end | [
"literal.string.change",
"call.arguments.change"
] | 159,102 | 159,100 | u073321165 | ruby |
p02391 | a, b = gets.chomp.split(&:to_i)
if a < b
puts "a < b"
elsif a == b
puts "a == b"
else
puts "a > b"
end | a, b = gets.chomp.split.map(&:to_i)
if a < b then
puts "a < b"
elsif a == b then
puts "a == b"
else
puts "a > b"
end | [
"call.add"
] | 159,104 | 159,105 | u338661979 | ruby |
p02391 | a,b = gets.split.map(&:to_i)
if(a>b)
puts "a < b"
elsif(a<b)
puts "a > b"
else
puts "a == b"
end | a,b = gets.split.map(&:to_i)
if(a<b)
puts "a < b"
elsif(a>b)
puts "a > b"
else
puts "a == b"
end | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 159,106 | 159,107 | u307525591 | ruby |
p02391 | input = STDIN.readline
a = input.split(nil)[0].to_i
b = input.split(nil)[1].to_i
case a <=> b
when 1
puts 'a > b'
when -1
puts 'a < b'
when 0
puts 'a = b'
end | input = STDIN.readline
a = input.split(nil)[0].to_i
b = input.split(nil)[1].to_i
case a <=> b
when 1
puts 'a > b'
when -1
puts 'a < b'
when 0
puts 'a == b'
end | [
"literal.string.change",
"call.arguments.change"
] | 159,109 | 159,110 | u964561278 | ruby |
p02391 | a,b = gets.chomp.split.map(&:to_i)
if a<b
puts "a < b"
elsif a > b
puts "a < b"
else
puts "a == b"
end | a,b = gets.chomp.split.map(&:to_i)
if a < b
puts "a < b"
elsif a > b
puts "a > b"
else
puts "a == b"
end | [
"literal.string.change",
"call.arguments.change"
] | 159,111 | 159,112 | u458804662 | ruby |
p02391 | i=gets.split(" ")
i[0]=i[0].to_i
i[1]=i[1].to_i
print "a"
print "<" if i[0]<i[1]
print "==" if i[0]==i[1]
print ">" if i[0]>i[1]
print "b\n" | i=gets.split(" ")
i[0]=i[0].to_i
i[1]=i[1].to_i
print "a "
print "<" if i[0]<i[1]
print "==" if i[0]==i[1]
print ">" if i[0]>i[1]
print " b\n" | [
"literal.string.change",
"call.arguments.change"
] | 159,113 | 159,114 | u304186356 | ruby |
p02391 | i=gets.split(/ /)
i[0]=i[0].to_i
i[1]=i[1].to_i
print "a"
print "<" if i[0]<i[1]
print "==" if i[0]==i[1]
print ">" if i[0]>i[1]
print "b\n" | i=gets.split(" ")
i[0]=i[0].to_i
i[1]=i[1].to_i
print "a "
print "<" if i[0]<i[1]
print "==" if i[0]==i[1]
print ">" if i[0]>i[1]
print " b\n" | [
"call.arguments.change",
"literal.string.change"
] | 159,115 | 159,114 | u304186356 | ruby |
p02391 | input = gets.split(" ")
a = input[0].to_i
b = input[1].to_i
if a < b
puts "a<b"
elsif a > b
puts "a>b"
else
puts "a==b"
end | input = gets.split(" ")
a = input[0].to_i
b = input[1].to_i
if a < b
puts "a < b"
elsif a > b
puts "a > b"
else
puts "a == b"
end | [
"literal.string.change",
"call.arguments.change"
] | 159,116 | 159,117 | u153184787 | ruby |
p02391 | #!/usr/local/bin/ruby
# coding: euc-jp
i=gets.split
a=i[0].to_i
b=i[1].to_i
if a>b
printf("a>b\n")
elsif a<b
printf("a<b\n")
elsif a==b
printf("a==b\n")
end | #!/usr/local/bin/ruby
# coding: euc-jp
i=gets.split
a=i[0].to_i
b=i[1].to_i
if a>b
printf("a > b\n")
elsif a<b
printf("a < b\n")
elsif a==b
printf("a == b\n")
end | [
"literal.string.change",
"call.arguments.change"
] | 159,118 | 159,119 | u248712727 | ruby |
p02391 | op1,op2=gets.chomp.split.map{|v|v.to_i}
if op1<op2 then puts "a<b"
elsif op1>op2 then puts "a>b"
else puts "a==b"
end | op1,op2=gets.chomp.split.map{|v|v.to_i}
if op1<op2 then puts "a < b"
elsif op1>op2 then puts "a > b"
else puts "a == b"
end | [
"literal.string.change",
"call.arguments.change"
] | 159,133 | 159,134 | u665389142 | ruby |
p02391 | a,b=STDIN.gets.split.map(&:to_i)
puts(if a<b then
'a < b'
elsif a>b then
'a > b'
else
a == b
end) | a,b=STDIN.gets.split.map(&:to_i)
puts(if a<b then
'a < b'
elsif a>b then
'a > b'
else
'a == b'
end) | [] | 159,145 | 159,146 | u278501900 | ruby |
p02391 | # -*- coding: utf-8 -*-
a,b = STDIN.gets.split.map(&:to_1)
puts(if a > b then
'a < b'
elsif a == b then
'a == b'
else
'a > b'
end) | # -*- coding: utf-8 -*-
a,b = STDIN.gets.split.map(&:to_i)
puts(if a < b then
'a < b'
elsif a == b then
'a == b'
else
'a > b'
end) | [
"assignment.value.change",
"call.arguments.change",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 159,149 | 159,148 | u832816623 | ruby |
p02391 | # -*- coding: utf-8 -*-
a,b = STDIN.gets.split.map(&:to_1)
puts(if a < b then
'a < b'
elsif a == b then
'a == b'
else
'a > b'
end) | # -*- coding: utf-8 -*-
a,b = STDIN.gets.split.map(&:to_i)
puts(if a < b then
'a < b'
elsif a == b then
'a == b'
else
'a > b'
end) | [
"assignment.value.change",
"call.arguments.change"
] | 159,150 | 159,148 | u832816623 | ruby |
p02391 | array = gets.split(" ")
if array[0].to_i > array[1].to_i then
puts "a > b"
elsif array[0].to_i < array[1].to_i then
puts "a < b"
else
puts "a = b"
end | array = gets.split(" ")
if array[0].to_i > array[1].to_i then
puts "a > b"
elsif array[0].to_i < array[1].to_i then
puts "a < b"
else
puts "a == b"
end | [
"literal.string.change",
"call.arguments.change"
] | 159,158 | 159,159 | u305326050 | ruby |
p02391 | s=gets.split(" ")
a,b = s[0].to_i,s[1].to_i
puts("a<b") if a<b
puts("a>b") if a>b
puts("a==b") if a==b | s=gets.split(" ")
a,b = s[0].to_i,s[1].to_i
puts("a < b") if a<b
puts("a > b") if a>b
puts("a == b") if a==b | [
"literal.string.change",
"call.arguments.change"
] | 159,160 | 159,161 | u217294278 | ruby |
p02391 | input = gets.split(" ")
result = input[0].to_i - input[1].to_i
puts result
if (result > 0)
puts "a < b"
elsif (result < 0)
puts "a > b"
elsif (result == 0)
puts "a == b"
else
puts "hi"
end | input = gets.split(" ")
result = input[0].to_i - input[1].to_i
if (result > 0)
puts "a > b"
elsif (result < 0)
puts "a < b"
elsif (result == 0)
puts "a == b"
else
puts "hi"
end | [
"call.remove",
"literal.string.change",
"call.arguments.change"
] | 159,164 | 159,165 | u359764315 | ruby |
p02391 | input = gets.split(" ")
result = input[0].to_i - input[1].to_i
puts result
if (result > 0)
puts "a > b"
elsif (result < 0)
puts "a < b"
elsif (result == 0)
puts "a == b"
else
puts "hi"
end | input = gets.split(" ")
result = input[0].to_i - input[1].to_i
if (result > 0)
puts "a > b"
elsif (result < 0)
puts "a < b"
elsif (result == 0)
puts "a == b"
else
puts "hi"
end | [
"call.remove"
] | 159,166 | 159,165 | u359764315 | ruby |
p02391 | a, b = STDIN.gets.split.map(&:to_i)
if a < b then
puts 'a<b'
elsif a > b then
puts 'a>b'
else
puts 'a==b'
end | a, b = STDIN.gets.split.map(&:to_i)
if a < b then
puts 'a < b'
elsif a > b then
puts 'a > b'
else
puts 'a == b'
end | [
"literal.string.change",
"call.arguments.change"
] | 159,170 | 159,171 | u908917838 | ruby |
p02391 | a, b = STDIN.gets.split.map(&:to_i)
if a < b then
puts "a < b"
elsif a > b then
puts "a > b"
else
puts "a ==b"
end | a, b = STDIN.gets.split.map(&:to_i)
if a < b then
puts "a < b"
elsif a > b then
puts "a > b"
else
puts "a == b"
end | [
"literal.string.change",
"call.arguments.change"
] | 159,172 | 159,173 | u108560424 | ruby |
p02391 | a, b = STDIN.gets.split.map(&:to_i)
if a<b then
puts 'a<b'
elsif a>b then
puts 'a>b'
else
puts 'a==b'
end | a, b = STDIN.gets.split.map(&:to_i)
if a<b then
puts 'a < b'
elsif a>b then
puts 'a > b'
else
puts 'a == b'
end | [
"literal.string.change",
"call.arguments.change"
] | 159,175 | 159,176 | u283560097 | ruby |
p02391 | a, b = STDIN.gets.split.map(&:to_i)
if a < b then
puts "a < b"
end
if a > b then
puts "a > b"
end
if a == b then
puts "a ==b"
end | a, b = STDIN.gets.split.map(&:to_i)
if a < b then
puts "a < b"
end
if a > b then
puts "a > b"
end
if a == b then
puts "a == b"
end | [
"literal.string.change",
"call.arguments.change"
] | 159,178 | 159,179 | u333589327 | ruby |
p02391 | ar = gets.chomp.split.map(&:to_i)
if ar[0] > ar[1]
puts "a > b"
elseif ar[0] == ar[1]
puts "a == b"
else
puts "a < b"
end | ar = gets.chomp.split.map(&:to_i)
if ar[0] > ar[1]
puts "a > b"
elsif ar[0] == ar[1]
puts "a == b"
else
puts "a < b"
end | [] | 159,182 | 159,183 | u842023186 | ruby |
p02391 | a, b = gets.split
if -1000 <= a.to_i && a.to_i <= 1000 && -1000 <= b.to_i && b.to_i <= 1000 then
if a.to_i > b.to_i then
puts "a > b"
elsif a.to_i < b.to_i then
puts "a < b"
else
puts "a = b"
end
end | a, b = gets.split
if -1000 <= a.to_i && a.to_i <= 1000 && -1000 <= b.to_i && b.to_i <= 1000 then
if a.to_i > b.to_i then
puts "a > b"
elsif a.to_i < b.to_i then
puts "a < b"
else
puts "a == b"
end
end | [
"literal.string.change",
"call.arguments.change"
] | 159,187 | 159,188 | u530663965 | ruby |
p02391 | Integer1,Integer2 = gets.split(" ").map(&:to_i)
if Integer2 > Integer1 then
puts "b < a"
end
if Integer1 > Integer2 then
puts "a > b"
end
if Integer1 == Integer2 then
puts "a == b"
end | Integer1,Integer2 = gets.split(" ").map(&:to_i)
if Integer2 > Integer1 then
puts "a < b"
end
if Integer1 > Integer2 then
puts "a > b"
end
if Integer1 == Integer2 then
puts "a == b"
end | [
"literal.string.change",
"call.arguments.change"
] | 159,189 | 159,190 | u245763402 | ruby |
p02391 | aryMondai = gets.split();
intComparison1 = aryMondai[0].to_i;
intComparison2 = aryMondai[1].to_i;
if intComparison1 > intComparison2 then
puts "a > b";
elsif intComparison1 < intComparison2 then
puts "a < b";
elsif intComparison1 = intComparison2 then
puts "a = b";
end | aryMondai = gets.split();
intComparison1 = aryMondai[0].to_i;
intComparison2 = aryMondai[1].to_i;
if intComparison1 > intComparison2 then
puts "a > b";
elsif intComparison1 < intComparison2 then
puts "a < b";
elsif intComparison1 = intComparison2 then
puts "a == b";
end | [
"literal.string.change",
"call.arguments.change"
] | 159,201 | 159,202 | u606593727 | ruby |
p02391 | num=STDIN.gets.chomp.split(/ /)
a=num[0].to_i
b=num[1].to_i
if a>b
print "a < b\n"
elsif a<b
print "a > b\n"
else
print "a == b\n"
end | num=STDIN.gets.chomp.split(/ /)
a=num[0].to_i
b=num[1].to_i
if a>b
print "a > b\n"
elsif a<b
print "a < b\n"
else
print "a == b\n"
end | [
"literal.string.change",
"call.arguments.change"
] | 159,203 | 159,204 | u208203110 | ruby |
p02391 | a,b = gets.split.map(&:to_i)
if a < b
puts "a < b"
elsif a < b
puts "a > b"
else
puts "a == b"
end
| a,b = gets.split.map(&:to_i)
if a < b
puts "a < b"
elsif a > b
puts "a > b"
else
puts "a == b"
end
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 159,205 | 159,206 | u407138207 | ruby |
p02391 | a,b = gets.split.map(&:to_i)
if a < b
puts "a < b"
elsif a < b
puts "a > b"
else
puts "a == b"
end | a,b = gets.split.map(&:to_i)
if a < b
puts "a < b"
elsif a > b
puts "a > b"
else
puts "a == b"
end
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 159,207 | 159,206 | u407138207 | ruby |
p02391 | a,b = gets.split.map(&:to_i)
if a < b
puts "a < b"
elsif a < b
puts "a > b"
else
puts "a == b"
end
| a,b = gets.split.map(&:to_i)
if a < b
puts "a < b"
elsif a > b
puts "a > b"
else
puts "a == b"
end | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 159,205 | 159,208 | u407138207 | ruby |
p02391 | a,b = gets.split.map(&:to_i)
if a < b
puts "a < b"
elsif a < b
puts "a > b"
else
puts "a == b"
end | a,b = gets.split.map(&:to_i)
if a < b
puts "a < b"
elsif a > b
puts "a > b"
else
puts "a == b"
end | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 159,207 | 159,208 | u407138207 | ruby |
p02391 | a,b = gets.split.map(&:to_i)
if(a < b)
puts "a < b"
elsif (a >b)
puts "a < b"
else
puts "a == b"
end | a,b = gets.split.map(&:to_i)
if a < b
puts "a < b"
elsif a > b
puts "a > b"
else
puts "a == b"
end | [
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change"
] | 159,209 | 159,208 | u407138207 | ruby |
p02391 | a,b = gets.split.map(&:to_i)
if a < b
puts "a < b"
elsif a > b
puts "a < b"
else
puts "a == b"
end | a,b = gets.split.map(&:to_i)
if a < b
puts "a < b"
elsif a > b
puts "a > b"
else
puts "a == b"
end | [
"literal.string.change",
"call.arguments.change"
] | 159,210 | 159,208 | u407138207 | ruby |
p02391 | array = gets.split(" ")
array.map!(:to_i)
result =
case
when array[0] > array[1] then ">"
when array[0] < array[1] then "<"
when array[0] == array[1] then "== "
end
puts("a #{result} b") | array = gets.split(" ").map!(&:to_i)
operator =
case
when array[0] > array[1] then ">"
when array[0] < array[1] then "<"
when array[0] == array[1] then "=="
end
puts("a #{operator} b") | [
"call.arguments.change",
"assignment.variable.change",
"identifier.change",
"literal.string.change",
"assignment.value.change"
] | 159,213 | 159,214 | u166301467 | ruby |
p02391 | array = gets.split(" ").map!(:to_i)
operator =
case
when array[0] > array[1] then ">"
when array[0] < array[1] then "<"
when array[0] == array[1] then "=="
end
puts("a #{operator}b") | array = gets.split(" ").map!(&:to_i)
operator =
case
when array[0] > array[1] then ">"
when array[0] < array[1] then "<"
when array[0] == array[1] then "=="
end
puts("a #{operator} b") | [
"call.arguments.change",
"literal.string.change"
] | 159,217 | 159,214 | u166301467 | ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.