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 |
|---|---|---|---|---|---|---|---|
p02391 | while str = $stdin.gets
a, b = str.strip.split(' ')
a = a.to_i
b = b.to_i
if a > b
p 'a > b'
elsif a < b
p 'a < b'
else
p 'a = b'
end
end | while str = $stdin.gets
a, b = str.strip.split(' ')
a = a.to_i
b = b.to_i
if a > b
puts 'a > b'
elsif a < b
puts 'a < b'
else
puts 'a == b'
end
end | [
"call.function.change",
"io.output.change",
"literal.string.change",
"call.arguments.change"
] | 159,218 | 159,219 | u364115699 | ruby |
p02391 | while str = $stdin.gets
a, b = str.strip.split(' ')
a = a.to_i
b = b.to_i
if a > b
p 'a > b'
elsif a < b
p 'a < b'
else
p 'a == b'
end
end | while str = $stdin.gets
a, b = str.strip.split(' ')
a = a.to_i
b = b.to_i
if a > b
puts 'a > b'
elsif a < b
puts 'a < b'
else
puts 'a == b'
end
end | [
"call.function.change",
"io.output.change"
] | 159,220 | 159,219 | u364115699 | ruby |
p02391 | a,b=gets.map(&:to_i)
puts"a #{(a<b)?'<':(a>b)?'>':'=='} b" | a,b=gets.split.map(&:to_i)
puts"a #{(a<b)?'<':(a>b)?'>':'=='} b" | [
"call.add"
] | 159,231 | 159,230 | u279605379 | ruby |
p02391 | a,b=gets.map(&:to_i)
puts "a #{(a<b)?'<':(a>b)?'>':'=='} b" | a,b=gets.split.map(&:to_i)
puts"a #{(a<b)?'<':(a>b)?'>':'=='} b" | [
"call.add"
] | 159,232 | 159,230 | u279605379 | ruby |
p02391 | a,b=gets.map(&:to_i)
puts"a #{(a<b)?'<':(a>b)?'>':'=='} b" | a,b=gets.split.map &:to_i
puts"a #{(a<b)?'<':(a>b)?'>':'=='} b" | [
"call.add",
"call.arguments.change"
] | 159,231 | 159,233 | u279605379 | ruby |
p02391 | a,b=gets.map(&:to_i)
puts "a #{(a<b)?'<':(a>b)?'>':'=='} b" | a,b=gets.split.map &:to_i
puts"a #{(a<b)?'<':(a>b)?'>':'=='} b" | [
"call.add",
"call.arguments.change"
] | 159,232 | 159,233 | u279605379 | ruby |
p02391 | a,b = gets.split.map(&:to_i)
puts (a-b == 0) ? "a==b" : ((a-b < 0) ? "a<b" : "a>b") | a,b = gets.split.map(&:to_i)
puts (a-b == 0) ? "a == b" : ((a-b < 0) ? "a < b" : "a > b") | [
"literal.string.change",
"call.arguments.change"
] | 159,237 | 159,238 | u213421924 | ruby |
p02391 | a,b = gets.split.map(&:to_i)
if a < b
puts "a < b"
end
if a > b
puts "a > b"
end
if a = b
puts "a = b"
end | a,b = gets.split.map(&:to_i)
if a < b
puts "a < b"
end
if a > b
puts "a > b"
end
if a == b
puts "a == b"
end | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo",
"literal.string.change",
"call.arguments.change"
] | 159,250 | 159,251 | u506470828 | 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,260 | 159,261 | u087014397 | ruby |
p02391 | a,b = 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 = 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,262 | 159,263 | u423082019 | ruby |
p02391 | a, b = $stdin.split(' ').map(&:to_i)
puts "a > b" if a > b
puts "a < b" if a < b
puts "a == b" if a == b
| a ,b = STDIN.gets.split(' ').map(&:to_i)
puts "a > b" if a > b
puts "a < b" if a < b
puts "a == b" if a == b
| [
"call.add"
] | 159,264 | 159,265 | u731832436 | ruby |
p02391 | a,b = gets.split(' ')
a = a.to_i
b = b.t_i
if a > b then
puts "a > b"
elsif a == b then
puts "a == b"
else
puts "a < b"
end
| a,b = gets.split(' ')
a = a.to_i
b = b.to_i
if a > b then
puts "a > b"
elsif a == b then
puts "a == b"
else
puts "a < b"
end
| [
"assignment.value.change",
"identifier.change"
] | 159,266 | 159,267 | u930055226 | ruby |
p02391 | a,b = gets.chomp.split(' ').map{|x|x.to_i}
x = nil
if a > b
x = '>'
elsif a < b
x = '<'
else
x = '=='
end
puts "#{a} #{x} #{b}" | a,b = gets.chomp.split(' ').map{|x|x.to_i}
x = nil
if a > b
x = '>'
elsif a < b
x = '<'
else
x = '=='
end
puts "a #{x} b" | [
"literal.string.change",
"call.arguments.change"
] | 159,268 | 159,269 | u913452775 | ruby |
p02392 | a, b, c = gets.split(" ").map(&:to_i)
if b.between?(a, c) and !(a == b) and !(b == c)
puts "YES"
else
puts "NO"
end | a, b, c = gets.split(" ").map(&:to_i)
if b.between?(a, c) and !(a == b) and !(b == c)
puts "Yes"
else
puts "No"
end | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 163,874 | 163,875 | u514597327 | ruby |
p02392 | a,b,c=gets.split.map &:to_i;puts a<b&&b<c ?"YES":"NO" | a,b,c=gets.split.map &:to_i;puts a<b&&b<c ?"Yes":"No" | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 163,880 | 163,879 | u828455902 | ruby |
p02392 | numbers = gets.split.map!{|item| item.to_i}
if numbers[0] < numbers[1] && numbers[1] < numbers[2] then
print "YES\n"
else
print "NO\n"
end | numbers = gets.split.map!{|item| item.to_i}
if numbers[0] < numbers[1] && numbers[1] < numbers[2] then
print "Yes\n"
else
print "No\n"
end | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 163,881 | 163,882 | u004641776 | ruby |
p02392 | val1, val2, val3 = gets.split(" ").map(&:to_i)
if val1 < val2 < val3
puts "Yes"
else
puts "No"
end | val1, val2, val3 = gets.split(" ").map(&:to_i)
if val1 < val2 && val2 < val3
puts "Yes"
else
puts "No"
end | [
"control_flow.branch.if.condition.change"
] | 163,887 | 163,888 | u046695668 | ruby |
p02392 | a,b,c = gets.chomp.split.map(&:to_i)
if a<b then
if b<c then
puts "Yes"
else
puts "No"
end
end | a,b,c = gets.chomp.split.map(&:to_i)
if a<b then
if b<c then
puts "Yes"
exit
end
end
puts "No" | [] | 163,891 | 163,892 | u741415050 | ruby |
p02392 | a = gets.split.map(&:to_i)
if (a[0]<=>a[1]) < 0 && (a[1]<=>a[2]) < 0 then
puts "Yes"
else
puts "NO"
end | a = gets.split.map(&:to_i)
if (a[0]<=>a[1]) < 0 && (a[1]<=>a[2]) < 0 then
puts "Yes"
else
puts "No"
end | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 163,893 | 163,894 | u746531266 | ruby |
p02392 | a, b, c = gets.split.map { |i| i.to_i }
if a < b < c
puts "Yes"
else
puts "No"
end | a, b, c = gets.split.map { |i| i.to_i }
if a < b && b < c
puts "Yes"
else
puts "No"
end | [
"control_flow.branch.if.condition.change"
] | 163,896 | 163,897 | u569541270 | ruby |
p02392 | a, b, c = gets.split(" ").map(&:to_i)
puts a < b and b < c ? "Yes" : "No" | a, b, c = gets.split(" ").map(&:to_i)
puts (a < b and b < c) ? "Yes" : "No" | [
"control_flow.branch.if.condition.change"
] | 163,903 | 163,904 | u709642619 | ruby |
p02392 | a,b,c = STDIN.gets.split.map(&:to_i)
if a < b < c
puts "Yes"
else
puts "No"
end | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c
puts 'Yes'
else
puts 'No'
end | [
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change"
] | 163,905 | 163,906 | u872091640 | ruby |
p02392 | # -*- coding: utf-8 -*-
a,b,c = STDIN.gets.split.map(&:to_i)
if a < b < c
puts "Yes"
else
puts "No"
end | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c
puts 'Yes'
else
puts 'No'
end | [
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change"
] | 163,907 | 163,906 | u872091640 | ruby |
p02392 | a,b,c = STDIN.gets.split.map(&:to_i)
if a < b < c
puts "Yes"
else
puts "No"
end | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c
puts 'Yes'
else
puts 'No'
end | [
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change"
] | 163,905 | 163,910 | u872091640 | ruby |
p02392 | # -*- coding: utf-8 -*-
a,b,c = STDIN.gets.split.map(&:to_i)
if a < b < c
puts "Yes"
else
puts "No"
end | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c
puts 'Yes'
else
puts 'No'
end | [
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change"
] | 163,907 | 163,910 | u872091640 | ruby |
p02392 | # -*- coding: utf-8 -*-
a, b, c = STDIN.gets.split.map(&:to_i)
if a < b < c then
puts 'Yes'
else
puts 'No'
end | # -*- coding: utf-8 -*-
a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c then
puts 'Yes'
else
puts 'No'
end | [
"control_flow.branch.if.condition.change"
] | 163,911 | 163,912 | u389172382 | ruby |
p02392 | # -*- coding: utf-8 -*-
a, b, c = STDIN.gets.split.map(&:to_i)
if a < b < c then
puts 'Yes'
else
puts 'No'
end | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c then
puts 'Yes'
else
puts 'No'
end | [
"control_flow.branch.if.condition.change"
] | 163,911 | 163,913 | u389172382 | ruby |
p02392 | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c then
puts 'YES'
else
puts 'NO'
end | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c then
puts 'Yes'
else
puts 'No'
end | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 163,914 | 163,913 | u389172382 | ruby |
p02392 | a, b, c = gets.split(" ").map(&:to_i)
puts a <= b && b <= c ? "YES" : "NO" | a, b, c = gets.split(" ").map(&:to_i)
puts a < b && b < c ? "Yes" : "No" | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 163,915 | 163,916 | u389172382 | ruby |
p02392 | a, b, c = gets.split(" ").map(&:to_i)
print a < b && b < c ? "YES" : "NO" | a, b, c = gets.split(" ").map(&:to_i)
puts a < b && b < c ? "Yes" : "No" | [
"identifier.change",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 163,918 | 163,916 | u389172382 | ruby |
p02392 | a, b, c = gets.split(" ").map(&:to_i)
put a < b && b < c ? "Yes" : "No" | a, b, c = gets.split(" ").map(&:to_i)
puts a < b && b < c ? "Yes" : "No" | [
"misc.typo",
"identifier.change"
] | 163,919 | 163,916 | u389172382 | ruby |
p02392 | # -*- coding: utf-8 -*-
a, b, c = STDIN.gets.split.map(&:to_i)
if a < b < c
puts 'Yes'
else
puts 'No'
end | # -*- coding: utf-8 -*-
a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c
puts 'Yes'
else
puts 'No'
end | [
"control_flow.branch.if.condition.change"
] | 163,922 | 163,923 | u832816623 | ruby |
p02392 | a, b, c = STDIN.gets.chomp.split(' ').map(&:to_i)
if a < b && b < c
puts "YES"
else
puts "NO"
end | a, b, c = STDIN.gets.chomp.split(' ').map(&:to_i)
if a < b && b < c
puts "Yes"
else
puts "No"
end | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 163,926 | 163,927 | u854587684 | ruby |
p02392 | a, b, c = gets.split(" ").map(&:to_i)
puts a < b < c ? "Yes" : "No" | a, b, c = gets.split(" ").map(&:to_i)
puts (a < b && b < c) ? "Yes" : "No" | [
"control_flow.branch.if.condition.change"
] | 163,928 | 163,929 | u362869314 | ruby |
p02392 | while str = STDIN.gets
n = str.split(" ")
a = n[0].to_i
b = n[1].to_i
c = n[2].to_i
if a < b && b < c
puts "??????"
else
puts "?????????"
end
end | while str = STDIN.gets
n = str.split(" ")
a = n[0].to_i
b = n[1].to_i
c = n[2].to_i
if a < b && b < c
puts "Yes"
else
puts "No"
end
end | [
"literal.string.change",
"call.arguments.change"
] | 163,949 | 163,950 | u236620240 | ruby |
p02392 | a = gets.split(" ").map{|s| s.to_i};
if a[0] > a[1] && a[1] > a[2] then
puts "Yes";
else
puts "No";
end | a = gets.split(" ").map{|s| s.to_i};
if a[0] < a[1] && a[1] < a[2] then
puts "Yes";
else
puts "No";
end | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 163,953 | 163,954 | u328069918 | ruby |
p02392 | a, b, c = STDIN.gets.split.map(&:to_i)
if a> b then
if b> c then
puts "Yes"
else
puts "No"
end
else
puts "No"
end | a, b, c = STDIN.gets.split.map(&:to_i)
if a< b then
if b< c then
puts "Yes"
else
puts "No"
end
else
puts "No"
end | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 163,957 | 163,958 | u801535964 | ruby |
p02392 | a, b, c = STDIN.gets.split.map(&:to_i)
if (a < b) & (b < c) then
puts 'yes'
else
puts 'no'
end | a, b, c = STDIN.gets.split.map(&:to_i)
if (a < b) & (b < c) then
puts 'Yes'
else
puts 'No'
end | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 163,962 | 163,963 | u283560097 | ruby |
p02392 | ar = gets.chomp.split.map(&:to_i)
if ar[0] < ar[1] && ar[1] < ar[2]
puts "YES"
else
puts "NO"
end | ar = gets.chomp.split.map(&:to_i)
if ar[0] < ar[1] && ar[1] < ar[2]
puts "Yes"
else
puts "No"
end | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 163,964 | 163,965 | u842023186 | ruby |
p02392 | a, b, c = STDIN.gets.split.map(&:to_i)
if a>b>c then
puts 'Yes'
eles
puts 'No'
end | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c then
puts 'Yes'
else
puts 'No'
end | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 163,966 | 163,967 | u908917838 | ruby |
p02392 | a, b, c = STDIN.gets.split.map(&:to_i)
if a > b > c then
puts 'Yes'
eles
puts 'No'
end | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c then
puts 'Yes'
else
puts 'No'
end | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 163,968 | 163,967 | u908917838 | ruby |
p02392 | a, b, c = STDIN.gets.split.map(&:to_i)
if a > b&& b > c then
puts 'Yes'
eles
puts 'No'
end | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c then
puts 'Yes'
else
puts 'No'
end | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 163,969 | 163,967 | u908917838 | ruby |
p02392 | a, b, c = STDIN.gets.split.map(&:to_i)
if a > b > c then
puts 'Yes'
eles
puts 'No'
end | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c then
puts 'Yes'
else
puts 'No'
end | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 163,971 | 163,967 | u908917838 | ruby |
p02392 | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b < c then
puts 'Yes'
eles
puts 'No'
end | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c then
puts 'Yes'
else
puts 'No'
end | [
"control_flow.branch.if.condition.change"
] | 163,972 | 163,967 | u908917838 | ruby |
p02392 | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c then
puts 'Yes'
eles
puts 'No'
end | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c then
puts 'Yes'
else
puts 'No'
end | [] | 163,974 | 163,967 | u908917838 | ruby |
p02392 | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b < c then
puts 'Yes'
else
puts 'No'
end | a, b, c = STDIN.gets.split.map(&:to_i)
if a < b && b < c then
puts 'Yes'
else
puts 'No'
end | [
"control_flow.branch.if.condition.change"
] | 163,975 | 163,967 | u908917838 | ruby |
p02392 | a,b = STDIN.gets.split.map(&:to_i)
if a < b && b < c then
puts 'Yes'
else
puts 'No'
end | a,b,c = STDIN.gets.split.map(&:to_i)
if a < b && b < c then
puts 'Yes'
else
puts 'No'
end | [] | 163,976 | 163,977 | u836543832 | ruby |
p02392 | a,b,c = gets.split(" ").map(&:to_i)
if a < b | b < c
puts "Yes"
else
puts "No"
end | a,b,c = gets.split(" ").map(&:to_i)
if a<b&&b<c
puts "Yes"
else
puts "No"
end | [
"control_flow.branch.if.condition.change"
] | 163,980 | 163,982 | u393619373 | ruby |
p02392 | #!/usr/bin/env ruby
# -*- coding: utf-8 -*-
if __FILE__ == $0
while line = STDIN.gets
tokens = line.chomp!.split.map!(&:to_i)
a, b, c = tokens[0], tokens[1], token[2]
if a > b && b > c
puts "Yes"
else
puts "No"
end
end
end | #!/usr/bin/env ruby
# -*- coding: utf-8 -*-
if __FILE__ == $0
while line = STDIN.gets
tokens = line.chomp!.split.map!(&:to_i)
a, b, c = tokens[0], tokens[1], tokens[2]
if a < b && b < c
puts "Yes"
else
puts "No"
end
end
end | [
"assignment.value.change",
"identifier.change",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 163,986 | 163,987 | u946672517 | ruby |
p02392 | #!/usr/bin/env ruby
# -*- coding: utf-8 -*-
if __FILE__ == $0
while line = STDIN.gets
tokens = line.chomp!.split.map!(&:to_i)
a, b, c = tokens[0], tokens[1], tokens[2]
if a > b && b > c
puts "Yes"
else
puts "No"
end
end
end | #!/usr/bin/env ruby
# -*- coding: utf-8 -*-
if __FILE__ == $0
while line = STDIN.gets
tokens = line.chomp!.split.map!(&:to_i)
a, b, c = tokens[0], tokens[1], tokens[2]
if a < b && b < c
puts "Yes"
else
puts "No"
end
end
end | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 163,988 | 163,987 | u946672517 | ruby |
p02392 | n = gets.split(" ")
a=n[0].to_i
b=n[1].to_i
c=n[2].to_i
if a < b && b < c
puts "yes"
else
puts "No"
end | n = gets.split(" ")
a=n[0].to_i
b=n[1].to_i
c=n[2].to_i
if a < b && b < c
puts "Yes"
else
puts "No"
end | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 163,989 | 163,990 | u412829970 | ruby |
p02392 | n = gets.split(" ")
a=n[0].to_i
b=n[1].to_i
c=n[2].to_i
if a < b && b < c
puts "yes\n"
else
puts "No\n"
end | n = gets.split(" ")
a=n[0].to_i
b=n[1].to_i
c=n[2].to_i
if a < b && b < c
puts "Yes"
else
puts "No"
end | [
"literal.string.change",
"call.arguments.change"
] | 163,991 | 163,990 | u412829970 | ruby |
p02392 | a,b,c = gets.split(" ")
a = a.to_i
b = b.to_i
c = c.to_i
if a < b <c
puts "Yes"
else puts "No"
end | a,b,c = gets.split(" ")
a = a.to_i
b = b.to_i
c = c.to_i
if a < b && b <c
puts "Yes"
else puts "No"
end | [
"control_flow.branch.if.condition.change"
] | 163,992 | 163,993 | u232170203 | ruby |
p02392 | a,b,c = gets.chomp.split.map(&:to_i)
if a < b < c then
puts "Yes"
else
puts "No"
end | a,b,c = gets.split.map(&:to_i)
if a < b && b < c then
puts "Yes"
else
puts "No"
end | [
"call.remove",
"control_flow.branch.if.condition.change"
] | 163,994 | 164,000 | u407138207 | ruby |
p02392 | a,b,c = gets.split.map(&:to_i)
if a < b < c
puts "Yes"
else
puts "No"
end | a,b,c = gets.split.map(&:to_i)
if a < b && b < c then
puts "Yes"
else
puts "No"
end | [
"control_flow.branch.if.condition.change"
] | 163,996 | 164,000 | u407138207 | ruby |
p02392 | a,b,c=gets.split.map &:to_i
puts"${(a<b&&b<c)?'Yes':'No'}" | a,b,c=gets.split.map &:to_i
puts"#{(a<b&&b<c)?'Yes':'No'}" | [
"literal.string.change",
"call.arguments.change"
] | 164,012 | 164,013 | u279605379 | ruby |
p02392 | data = gets.split.map{|x| x.to_i}
if data[0] < data[1] and data[1] < data[2]
puts 'yes'
else
puts 'no'
end | data = gets.split.map{|x| x.to_i}
if data[0] < data[1] and data[1] < data[2]
puts 'Yes'
else
puts 'No'
end | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 164,017 | 164,018 | u256874901 | ruby |
p02392 | a, b, c = gets.split.map(&:to_i)
if a < b && b < c
puts = "Yes"
else
puts ="No"
end | a, b, c = gets.chomp.split.map(&:to_i)
if a < b && b < c
puts "Yes"
else
puts "No"
end | [
"call.add"
] | 164,019 | 164,020 | u802537549 | ruby |
p02392 | a, b, c = gets.split.map(&:to_i)
if a < b and b < c
puts = "Yes"
else
puts ="No"
end | a, b, c = gets.chomp.split.map(&:to_i)
if a < b && b < c
puts "Yes"
else
puts "No"
end | [
"call.add",
"control_flow.branch.if.condition.change"
] | 164,021 | 164,020 | u802537549 | ruby |
p02392 | a, b, c = gets.split(" ").map(&:to_i)
if a < b < c then
puts "Yes"
else
puts "No"
end | a, b, c = gets.split(" ").map(&:to_i)
if a < b and b < c then
puts "Yes"
else
puts "No"
end | [
"control_flow.branch.if.condition.change"
] | 164,025 | 164,026 | u216813029 | ruby |
p02392 | a, b, c = gets.split(" ").map(&:to_i)
if a < b < c then
puts "Yes"
else
puts "No"
end | a, b, c = gets.split(" ").map(&:to_i)
if a < b and b < c
puts "Yes"
else
puts "No"
end | [
"control_flow.branch.if.condition.change"
] | 164,025 | 164,027 | u216813029 | ruby |
p02392 | a, b, c = gets.chomp.split.(&:to_i)
if a < b
puts "Yes"
else
puts "No"
end | a, b, c = gets.chomp.split.map(&:to_i)
if a < b && b < c
puts "Yes"
else
puts "No"
end | [
"call.add",
"control_flow.branch.if.condition.change"
] | 164,028 | 164,029 | u216813029 | ruby |
p02392 | a, b, c = gets.chomp.split.map(&:to_i)
if a < b
puts "Yes"
else
puts "No"
end | a, b, c = gets.chomp.split.map(&:to_i)
if a < b && b < c
puts "Yes"
else
puts "No"
end | [
"control_flow.branch.if.condition.change"
] | 164,030 | 164,029 | u216813029 | ruby |
p02392 | inputs = gets.split(' ').map(&:to_i)
a = inputs[0]
b = inputs[1]
c = inputs[2]
if b > a && b < c
puts 'Yes'
else
puts 'Not'
end | inputs = gets.split(' ').map(&:to_i)
a = inputs[0]
b = inputs[1]
c = inputs[2]
if b > a && b < c
puts 'Yes'
else
puts 'No'
end | [
"literal.string.change",
"call.arguments.change"
] | 164,033 | 164,034 | u827318431 | ruby |
p02392 | #!/usr/bin/env ruby
nums = gets.chomp!.split(" ").map(&:to_i)
puts (nums.sort == nums) ? 'Yes' : 'No' | #!/usr/bin/env ruby
nums = gets.chomp!.split(" ").map(&:to_i)
puts (nums.uniq.sort == nums) ? 'Yes' : 'No' | [
"control_flow.branch.if.condition.change",
"call.add"
] | 164,041 | 164,042 | u717782380 | ruby |
p02392 |
a,b,c = *STDIN.gets.split(" ").map(&:to_i)
if a < b && b < c
puts "YES"
else
puts "NO"
end
|
a,b,c = *STDIN.gets.split(" ").map(&:to_i)
if a < b && b < c
puts "Yes"
else
puts "No"
end
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 164,048 | 164,049 | u117001632 | ruby |
p02392 | input = gets.strip.split(' ')
a = input[0].to_i
b = input[1].to_i
c = input[2].to_i
if (a < b) && (b < c)
puts "yes"
else
puts "No"
end
| input = gets.strip.split(' ')
a = input[0].to_i
b = input[1].to_i
c = input[2].to_i
if (a < b) && (b < c)
puts "Yes"
else
puts "No"
end
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 164,051 | 164,052 | u839879644 | ruby |
p02392 | a, b, c = gets.chomp.split(" ")
a, b, c = a.to_i, b.to_i, c.to_i
if a < b < c
puts "Yes"
else
puts "No"
end
| a, b, c = gets.chomp.split(" ")
a, b, c = a.to_i, b.to_i, c.to_i
if a < b && b < c
puts "Yes"
else
puts "No"
end
| [
"control_flow.branch.if.condition.change"
] | 164,057 | 164,058 | u061908535 | ruby |
p02392 | a, b, c = gets.chomp.split(" ")
a, b, c = a.to_i, b.to_i, c.to_i
if a < b < c
puts "Yes"
else
puts "No"
end
| a, b, c = gets.chomp.split(" ")
a, b, c = a.to_i, b.to_i, c.to_i
if a < b && b < c
puts "Yes"
else
puts "No"
end
| [
"control_flow.branch.if.condition.change"
] | 164,059 | 164,058 | u061908535 | ruby |
p02392 | a, b, c = STDIN.gets.split(' ').map(&:to_i)
if a < b && b < c then
puts "YES"
else
puts "NO"
end
| a, b, c = STDIN.gets.split(' ').map(&:to_i)
if a < b && b < c then
puts "Yes"
else
puts "No"
end
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 164,062 | 164,063 | u731832436 | ruby |
p02392 | a = gets.split " "
b = true
b = false if a[0].to_i > a[1].to_i
b = false if a[1].to_i > a[2].to_i
puts "Yes" if b
puts "No" if !b | a = gets.split " "
b = true
b = false if a[0].to_i >= a[1].to_i
b = false if a[1].to_i >= a[2].to_i
puts "Yes" if b
puts "No" if !b | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 164,064 | 164,065 | u874758426 | ruby |
p02392 | a = gets.split(" ").map! {|i| i.to_i}
if a[0] < a[1] && a[1] < a[2] then
puts "YES"
else
puts "NO"
end | a = gets.split(" ").map! {|i| i.to_i}
if a[0] < a[1] && a[1] < a[2] then
puts "Yes"
else
puts "No"
end | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 164,066 | 164,067 | u348879714 | ruby |
p02392 | a, b, c = gets.split(" ")
a, b, c = a.to_i, b.to_i, c.to_i
if a < b && b<c
puts "YES"
else
puts "NO"
end | a, b, c = gets.chomp.split(" ")
a, b, c = a.to_i, b.to_i, c.to_i
if a < b && b < c
puts "Yes"
else
puts "No"
end | [
"call.add",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 164,068 | 164,069 | u633068244 | ruby |
p02392 | a, b, c = gets.chomp.split(" ")
a, b, c = a.to_i, b.to_i, c.to_i
if a < b && b < c
puts "YES"
else
puts "NO"
end | a, b, c = gets.chomp.split(" ")
a, b, c = a.to_i, b.to_i, c.to_i
if a < b && b < c
puts "Yes"
else
puts "No"
end | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 164,070 | 164,069 | u633068244 | ruby |
p02392 | a, b, c = gets.split.map(&:to_i)
puts (a < b && b < c) ? 'YES' : 'NO' | a, b, c = gets.split.map(&:to_i)
puts (a < b && b < c) ? 'Yes' : 'No' | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 164,071 | 164,072 | u238839772 | ruby |
p02392 | a, b, c = gets.split.map(&:to_i)
if a < b && b < c
print 'YES'
else
print 'NO'
end
puts | a, b, c = gets.split.map(&:to_i)
if a < b && b < c
print 'Yes'
else
print 'No'
end
puts | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 164,073 | 164,074 | u252204578 | ruby |
p02393 | x = ARGF.gets.split.map(&:to_i).sort
puts "x.join(" ")" | x = ARGF.gets.split.map(&:to_i).sort
puts x.join(" ") | [
"call.add",
"call.arguments.change"
] | 166,635 | 166,636 | u330842660 | ruby |
p02393 | a = gets.split.map(&to_i)
s = ""
a.sort.each_with_index do |item, i|
if i === a.size - 1
s << item.to_s
else
s << item.to_s << " "
end
end
puts s | a = gets.split.map(&:to_i)
s = ""
a.sort.each_with_index do |item, i|
if i === a.size - 1
s << item.to_s
else
s << item.to_s << " "
end
end
puts s | [
"assignment.value.change",
"call.arguments.change"
] | 166,647 | 166,648 | u613519776 | ruby |
p02393 | num = gets.split(" ")
p = []
num.each do |i|
p.push(i.to_i)
end
puts("#{p[0]} #{p[1]} #{p[2]}") | num = gets.split(" ")
p = []
num.each do |i|
p.push(i.to_i)
end
p.sort!
puts("#{p[0]} #{p[1]} #{p[2]}") | [
"call.add"
] | 166,664 | 166,665 | u404374904 | ruby |
p02393 | umbers=STDIN.gets.split.map(&:to_i)
numbers.sort!
p numbers.join(" ") | puts STDIN.gets.split.map(&:to_i).sort.join(" ") | [
"identifier.change",
"call.remove"
] | 166,666 | 166,667 | u872091640 | ruby |
p02393 | umbers=STDIN.gets.split.map(&:to_i)
numbers.sort!
puts numbers.join(" ") | puts STDIN.gets.split.map(&:to_i).sort.join(" ") | [
"identifier.change",
"call.remove"
] | 166,668 | 166,667 | u872091640 | ruby |
p02393 | arr[3]=STDIN.gets.split.map(&:to_i)
puts arr.sort!.join(" ") | arr=STDIN.gets.split.map(&:to_i)
puts arr.sort!.join(" ") | [] | 166,669 | 166,670 | u229094612 | ruby |
p02393 | puts[gets.split.map(&:to_i)].sort*" " | puts [gets.split.map(&:to_i).sort]*" " | [
"call.arguments.change"
] | 166,675 | 166,676 | u852311840 | ruby |
p02393 | arr = gets.chomp.split(" ").map(&:to_i).sort
puts array.join(" ") | arr = gets.chomp.split(" ").map(&:to_i).sort
puts arr.join(" ") | [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 166,682 | 166,683 | u734427071 | ruby |
p02393 | a = Array.new(3)
a[0],a[1],a[2] = gets.chomp.split(' ').map(&:to_i)
a.sort
puts a.join(' ') | a = Array.new(3)
a[0],a[1],a[2] = gets.chomp.split(' ').map(&:to_i)
a.sort!
puts a.join(' ') | [
"call.suffix.change"
] | 166,684 | 166,685 | u983910557 | ruby |
p02393 | arr = STDIN.gets.split.map(&:to_i)
arr.sort
puts arr.join(" ") | arr = STDIN.gets.split.map(&:to_i)
arr.sort!
puts arr.join(" ") | [
"call.suffix.change"
] | 166,686 | 166,687 | u908917838 | ruby |
p02393 |
n = STDIN.gets
arr = STDIN.gets.split.map(&:to_i)
puts arr.reverse.join(" ") | arr = STDIN.gets.split.map(&:to_i)
puts arr.sort.join(" ") | [
"identifier.change",
"call.arguments.change"
] | 166,688 | 166,689 | u257152073 | ruby |
p02393 | n = STDIN.gets
arr = STDIN.gets.split.map(&:to_i)
puts arr.reverse.join(" ") | arr = STDIN.gets.split.map(&:to_i)
puts arr.sort.join(" ") | [
"identifier.change",
"call.arguments.change"
] | 166,692 | 166,689 | u257152073 | ruby |
p02393 | arr = STDIN.gets.split.map(&:to_i)
puts arr.reverse.join(" ") | arr = STDIN.gets.split.map(&:to_i)
puts arr.sort.join(" ") | [
"identifier.change",
"call.arguments.change"
] | 166,693 | 166,689 | u257152073 | ruby |
p02394 | w,h,x,y,r = gets.split.map &:to_i
puts (r < x && x < (w-r) && r < y && y < (h-r) ? "Yes" : "No")
| w,h,x,y,r = gets.split.map &:to_i
puts (r <= x && x <= (w-r) && r <= y && y <= (h-r) ? "Yes" : "No")
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,572 | 170,573 | u550290469 | ruby |
p02394 | W,H,x,y,r = gets.split.map &:to_i
puts (r<=x && r<=y && x<=w-r && y<=h-r) ? "Yes" : "No"
| W,H,x,y,r = gets.split.map(&:to_i)
puts (r<=x && r<=y && x<=W-r && y<=H-r) ? "Yes" : "No"
| [
"call.arguments.change",
"control_flow.branch.if.condition.change"
] | 170,577 | 170,578 | u075360907 | ruby |
p02394 | w,h,x,y,r=gets.split.map(&:to_i)
puts (r<=x && r<=y && x<=w-r && y<=h-r)? "yes" : "no"
| w,h,x,y,r = gets.split.map(&:to_i)
puts (r<=x && r<=y && x<=w-r && y<=h-r) ? "Yes" : "No"
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 170,579 | 170,580 | u809985413 | ruby |
p02394 | w,h,x,y,r = gets.split.map(&:to_i)
puts (r<=x && r<=y && x<=w-r && y<=h-r) ? "yes" : "no"
| w,h,x,y,r = gets.split.map(&:to_i)
puts (r<=x && r<=y && x<=w-r && y<=h-r) ? "Yes" : "No"
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 170,581 | 170,580 | u809985413 | ruby |
p02394 | w, h, x, y, r = gets.split.map(&:to_i)
if x - r > 0 && y - r > 0 && x + r < w && y + r < h
puts "Yes"
else
puts "No"
end | w, h, x, y, r = gets.split.map(&:to_i)
if x - r >= 0 && y - r >= 0 && x + r <= w && y + r <= h
puts "Yes"
else
puts "No"
end | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,582 | 170,583 | u205938947 | ruby |
p02394 | w, h, x, y, r = gets.chomp.split(" ").map(&:to_i)
if x - r > 0 && y + r < h && x + r < w && y - r > 0
print "Yes\n"
else
print "No\n"
end | w, h, x, y, r = gets.chomp.split(" ").map(&:to_i)
if x - r >= 0 && y + r <= h && x + r <= w && y - r >= 0
print "Yes\n"
else
print "No\n"
end | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,584 | 170,585 | u247976584 | ruby |
p02394 | w,h,x,y,r = gets.chomp.split.map(&:to_i).map(&:abs)
if (x >= r && x <= w-r ) && (y >= r && y <= h-r) then
puts "Yes"
else
puts "No"
end | w,h,x,y,r = gets.chomp.split.map(&:to_i)
if (x >= r && x <= w-r ) && (y >= r && y <= h-r) then
puts "Yes"
else
puts "No"
end | [
"call.remove"
] | 170,586 | 170,587 | u742797815 | ruby |
p02394 | w,h,x,y,r = gets.split.map(&:to_i)
xmax = w - r
ymax = h - r
puts r<x&&x<xmax&&r<y&&y<ymax ? :Yes : :No # x軸方向[r<x&&x<(w-r)] y軸方向[r<y&&y<(h-r)] | w,h,x,y,r = gets.split.map(&:to_i)
xmax = w - r
ymax = h - r
puts r<=x&&x<=xmax&&r<=y&&y<=ymax ? :Yes : :No # x軸方向[r<x&&x<(w-r)] y軸方向[r<y&&y<(h-r)] | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,588 | 170,589 | u729486845 | ruby |
p02394 | w, h, x, y, r = ARGF.gets.split.map(&:to_i)
if (r < x) && (x < (w - r)) && r < y && (y < (h - r))
puts "Yes"
else
puts "No"
end | w, h, x, y, r = ARGF.gets.split.map(&:to_i)
if (r <= x) && (x <= (w - r)) && r <= y && (y <= (h - r))
puts "Yes"
else
puts "No"
end | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,590 | 170,591 | u024069892 | ruby |
p02394 | w, h, x, y, r = gets.split.map(&:to_i)
if x < r || w < x + r && y < r || h < y + r
puts "Yes"
else
puts "No"
end | w, h, x, y, r = gets.split.map(&:to_i)
if x < r || w < x + r || y < r || h < y + r
puts "No"
else
puts "Yes"
end | [
"misc.opposites",
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change"
] | 170,592 | 170,593 | u209022771 | ruby |
p02394 | w, h, x, y, r = gets.split.map(&:to_i)
if x < r || w < x + r || y < r || h < y + r
puts "Yes"
else
puts "No"
end | w, h, x, y, r = gets.split.map(&:to_i)
if x < r || w < x + r || y < r || h < y + r
puts "No"
else
puts "Yes"
end | [
"call.remove",
"call.add"
] | 170,594 | 170,593 | u209022771 | ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.