buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
i = input() a = i.split() totalLength = 0 for length in a: totalLength += int(length) * 2 menseki = int(a[0])* int(a[1]) print(str(totalLength)+" "+str(menseki))
i = input() a = i.split() totalLength = 0 for length in a: totalLength += int(length) * 2 menseki = int(a[0])* int(a[1]) print(str(menseki)+" "+str(totalLength))
[["-", 0, 657, 31, 657, 31, 652, 3, 4, 0, 22], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 22], ["-", 3, 4, 0, 657, 12, 652, 3, 4, 0, 22], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 22]]
5
61
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}"
[["-", 0, 652, 3, 4, 0, 557, 0, 284, 0, 22], ["+", 0, 652, 3, 4, 0, 557, 0, 284, 0, 22]]
4
37
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)}"
[["+", 0, 652, 3, 4, 0, 738, 31, 738, 17, 72], ["+", 3, 4, 0, 738, 31, 738, 12, 557, 0, 6], ["+", 3, 4, 0, 738, 31, 738, 12, 557, 0, 62], ["+", 0, 493, 0, 652, 3, 4, 0, 738, 17, 72], ["+", 0, 652, 3, 4, 0, 738, 12, 557, 0, 62]]
4
32
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
[["-", 36, 36, 36, 36, 36, 36, 0, 493, 0, 22]]
4
49
a,b=gets.chomp.map(&:to_i) print "#{a*b} #{a*2+b*2}\n"
a,b=gets.chomp.split.map(&:to_i) print "#{a*b} #{a*2+b*2}\n"
[["+", 0, 493, 0, 662, 12, 652, 486, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131]]
4
32
a,b=gets.map(&:to_i) print "#{a*b} #{a*2+b*2}\n"
a,b=gets.split.map(&:to_i) print "#{a*b} #{a*2+b*2}\n"
[["+", 0, 493, 0, 662, 12, 652, 486, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131]]
4
30
a,b=gets.split.map(&:to_i) p "#{a*b} #{a*2+b*2}"
a,b=gets.split.map(&:to_i) puts "#{a*b} #{a*2+b*2}"
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
31
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}"
[["+", 0, 284, 0, 738, 31, 738, 31, 738, 12, 22], ["+", 0, 557, 0, 284, 0, 738, 31, 738, 17, 72], ["+", 0, 557, 0, 284, 0, 738, 31, 738, 12, 22], ["+", 3, 4, 0, 557, 0, 284, 0, 738, 17, 72]]
4
27
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}"
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
42
x, y = gets.chomp.map(&:to_i) puts (x*y).to_s + " " + (2*(x+y)).to_s
x, y = gets.chomp.split(" ").map(&:to_i) puts (x*y).to_s + " " + (2*(x+y)).to_s
[["+", 0, 493, 0, 662, 12, 652, 486, 652, 735, 22], ["+", 0, 662, 12, 652, 486, 652, 3, 4, 0, 24], ["+", 12, 652, 486, 652, 3, 4, 0, 557, 0, 62], ["+", 12, 652, 486, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 662, 12, 652, 486, 652, 3, 4, 0, 25], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131]]
4
37
x, y = gets.split area = x.to_i * y.to_i length = 2 * (x.to_i + y.to_i) p "#{area} #{length}"
x, y = gets.split area = x.to_i * y.to_i length = 2 * (x.to_i + y.to_i) print "#{area} #{length}\n"
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 44]]
4
39
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}"
[["-", 0, 652, 3, 4, 0, 557, 0, 284, 0, 22], ["+", 0, 652, 3, 4, 0, 557, 0, 284, 0, 22]]
4
57
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}"
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
56
a, b = list(map(int, input().split())) print((a * b, 2 * (a + b)))
a, b = list(map(int, input().split())) print(a * b, 2 * (a + b))
[["-", 0, 1, 0, 652, 3, 4, 0, 660, 0, 24], ["-", 3, 4, 0, 660, 0, 657, 12, 23, 0, 25]]
5
35
length0 = eval(input()) #print(length0) length = length0.split() a = int(length[0]) b = int(length[1]) #print(str(a)+" "+str(b)) area = a*b per = 2*a+2*b print((str(area)+" "+str(per)))
length0 = input() #print(length0) length = length0.split() a = int(length[0]) b = int(length[1]) #print(str(a)+" "+str(b)) area = a*b per = 2*a+2*b print(str(area)+" "+str(per))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 0, 1, 0, 652, 3, 4, 0, 23, 0, 24], ["-", 0, 23, 0, 657, 12, 652, 3, 4, 0, 25]]
5
67
a, b = map(int, input().splot()) print(str(a * b) + str(2 * a + 2 * b))
a, b = map(int, input().split()) print(str(a * b) + " " + str(2 * a + 2 * b))
[["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 72], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 654], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 655]]
5
36
A, B = list(map(int, input().split())) print((str(w*h) + ' ' + str((w+h)*2)))
w,h = list(map(int, input().split())) print((str(w*h) + ' ' + str((w+h)*2)))
[["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22]]
5
45
a, b = (int(x) for x in input().split()) area = float(a*b)/2 perimeter = (a+b)*2 print(area, perimeter)
a, b = (int(x) for x in input().split()) area = a*b perimeter = (a+b)*2 print(area, perimeter)
[["-", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22], ["-", 0, 662, 12, 657, 31, 652, 3, 4, 0, 24], ["-", 0, 662, 12, 657, 31, 652, 3, 4, 0, 25], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
45
line = input().split() a = int(line[0]) b = int(line[1]) print(srt(a*b) + " " + str((a+b)*2))
line = input().split() a = int(line[0]) b = int(line[1]) print(str(a*b) + " " + str((a+b)*2))
[["-", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["+", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22]]
5
51
a, b = (int(x) for x in input().split()) print(a*b) print(2*a + 2*b)
a, b = (int(x) for x in input().split()) print(a*b, 2*a + 2*b)
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]]
5
36
a,b = (int,input().split()) print(a*b, (a+b)*2)
a,b = map(int,input().split()) print(a*b, (a+b)*2)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
29
a,b = int(input().split()) print(a*b, (a+b)*2)
a,b = map(int,input().split()) print(a*b,(a+b)*2)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]]
5
28
l = input().split() ''' a = int(l[0]) b = int(l[1]) ''' #存在していないインデックスは出せない l = list(map(int,l)) a = l[0]*l[1] b = 2*(l[0]*l[1]) print(a,b)
l = input().split() ''' a = int(l[0]) b = int(l[1]) ''' #存在していないインデックスは出せない l = list(map(int,l)) a = l[0]*l[1] b = 2*(l[0]+l[1]) print(a,b)
[["-", 0, 662, 12, 657, 12, 23, 0, 657, 17, 48], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 17, 72]]
5
56
a, b = map(int, input().split()) s = a * b l = a * 2 + b * 2 print(s + " " + l)
a, b = map(int, input().split()) s = a * b l = a * 2 + b * 2 print(str(s) + " " + str(l))
[["+", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 24], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 25], ["+", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]]
5
40
a = input().split(' ') print(int(a[0])*int(a[1]), int(a[0]*2)+int(a[1])*2)
a = input().split(' ') print(int(a[0])*int(a[1]), int(a[0])*2+int(a[1])*2)
[["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 25], ["-", 3, 4, 0, 657, 31, 652, 3, 4, 0, 25]]
5
50
a,b = map(int, input().split()) c=a*b d=2*(a+b)
a,b = map(int, input().split()) c=a*b d=2*(a+b) print(c,d)
[["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
30
a, b= list(map(int, input().split())) c = (a*b) d = (a+b)*2 print(( c, d))
a, b= map(int, input().split()) c = (a*b) d = (a+b)*2 print( c, d)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 0, 1, 0, 652, 3, 4, 0, 660, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 660, 0, 25]]
5
43
a,b=map(int, input().split()) length=2*a+2*b menseki=a*b print(length,menseki)
a,b=map(int, input().split()) length=2*a+2*b menseki=a*b print(menseki,length)
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]]
5
36
a, b = map(int,input().split()) print(a,b) x = a*b y = 2 * (a + b) print(x,y)
a, b = map(int,input().split()) x = a*b y = 2 * (a + b) print(x,y)
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
42
a, b = map(int, input(). split()) print(a, b) print(a*b, a+a+b+b)
a, b = map(int, input(). split()) print(a*b, a+a+b+b)
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22]]
5
36
#cording; UTF-8 a,b=[int(x) for x in input().split()] S = a*b L = 2*(a+b) print(s, l)
#cording; UTF-8 a,b=[int(x) for x in input().split()] S = a*b L = 2*(a+b) print(S,L)
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]]
5
41
def rect (a,b): return a*2,b*4 s=input() x=s.split() a= int(x[0]) b=int (x[1]) area,perimeter=rect(a,b) print(area,perimeter)
def rect (a,b): return a*b,b*2+a*2 s=input() x=s.split() a= int(x[0]) b=int (x[1]) area,perimeter=rect(a,b) print(area,perimeter)
[["-", 8, 196, 0, 37, 0, 432, 0, 657, 12, 612], ["+", 8, 196, 0, 37, 0, 432, 0, 657, 12, 22], ["+", 0, 37, 0, 432, 0, 657, 31, 657, 12, 612], ["+", 8, 196, 0, 37, 0, 432, 0, 657, 17, 72], ["+", 0, 37, 0, 432, 0, 657, 12, 657, 31, 22], ["+", 0, 37, 0, 432, 0, 657, 12, 657, 17, 48], ["+", 0, 37, 0, 432, 0, 657, 12, 657, ...
5
62
a, b = map(int, input().split()) "{} {}".format(a*b, (a+b)*2)
a, b = map(int, input().split()) print("{} {}".format(a*b, (a+b)*2))
[["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
34
a,b = map(int, input().split()) hirosa = a*b nagasa = 2*(a+b) hirosa,nagasa
a,b = map(int, input().split()) hirosa = a*b nagasa = 2*(a+b) print(hirosa,nagasa)
[["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
33
a, b = map(int, input.split()) print(a * b, a * 2 + b * 2)
a, b = map(int, input().split()) print(a * b, a * 2 + b * 2)
[["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25]]
5
28
a, b = map(int,input().split()) area = a * b perimeter = (a + b) * 2 ptint(str(area) + ' ' + str(perimeter))
a, b = map(int,input().split()) area = a * b perimeter = (a + b) * 2 print(str(area) + ' ' + str(perimeter))
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22]]
5
46
num = list(map(int,input().split())) print("%d %d" % (num[0]*num[1],num[0]+num[1]))
num = list(map(int,input().split())) print("%d %d" % (num[0]*num[1],(num[0]+num[1])*2))
[["+", 0, 657, 12, 660, 0, 657, 31, 23, 0, 24], ["+", 0, 657, 12, 660, 0, 657, 31, 23, 0, 25], ["+", 3, 4, 0, 657, 12, 660, 0, 657, 17, 48], ["+", 3, 4, 0, 657, 12, 660, 0, 657, 12, 612]]
5
45
a, b = map(int, raw_input().split()) print((a * b), 2 * (a + b))
a, b = map(int, input().split()) print((a * b), 2 * (a + b))
[["-", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22]]
5
32
a = list(map(int, input().split())) print(a[0]*a[1]) print(2*a[0]+2*a[1])
a = list(map(int, input().split())) print(a[0]*a[1],2*a[0]+2*a[1])
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]]
5
45
a, b = [int(x) for x in input.split()] print(a * b, 2 * (a + b))
a, b = [int(x) for x in input().split()] print(a * b, 2 * (a + b))
[["+", 12, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 12, 652, 63, 319, 500, 652, 3, 4, 0, 25]]
5
32
import sys input_line = list(map(int, sys.stdin.readline().split())) perimeter = (input_line[0] + input_line[1]) * 2 area = input_line[0] * input_line[1] print("%d %d" % (perimeter, area))
import sys input_line = list(map(int, sys.stdin.readline().split())) perimeter = (input_line[0] + input_line[1]) * 2 area = input_line[0] * input_line[1] print("%d %d" % (area, perimeter))
[["-", 0, 652, 3, 4, 0, 657, 12, 660, 0, 22], ["-", 0, 652, 3, 4, 0, 657, 12, 660, 0, 21], ["+", 0, 652, 3, 4, 0, 657, 12, 660, 0, 21], ["+", 0, 652, 3, 4, 0, 657, 12, 660, 0, 22]]
5
61
a, b = map(int, input().split()) print(a * b, end=' ') print(2 * a * b)
a, b = map(int, input().split()) print(a * b, end=' ') print(2 * (a + b))
[["+", 0, 652, 3, 4, 0, 657, 12, 23, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 3, 4, 0, 657, 12, 23, 0, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 657, 12, 23, 0, 25]]
5
36
#coding utf-8 x,y = list(map(int, input().split())) print((x*y, 2*(x+y)))
#coding utf-8 x,y = map(int, input().split()) print(x*y, 2*(x+y))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 0, 1, 0, 652, 3, 4, 0, 660, 0, 24], ["-", 3, 4, 0, 660, 0, 657, 12, 23, 0, 25]]
5
36
params = input().rstrip().split('') square = int(params[0]) * int(params[1]) length = (int(params[0]) + int(params[1])) * 2 print(square, length)
params = input().rstrip().split(' ') square = int(params[0]) * int(params[1]) length = (int(params[0]) + int(params[1])) * 2 print(square, length)
[["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6]]
5
59
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int S = Integer.parseInt(sc.next()); int h = S / (60 * 60); int m = (S - h * 3600) / 60; int s = (S - 3600 * h - 60 * m); System.out.println(h + " " + m + " " + s); ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int S = Integer.parseInt(sc.next()); int h = S / (60 * 60); int m = (S - h * 3600) / 60; int s = (S - 3600 * h - 60 * m); System.out.println(h + ":" + m + ":" + s); ...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
109
import java.util.*; class Main { public static void main(String[] args) { int s; int m; int h; Scanner sc = new Scanner(System.in); s = sc.nextInt(); m = s / 60; h = m / 60; s = s % 60; m = m % 60; h = h % 60; System.out.println(h + ";" + m + ";" + s); } }
import java.util.*; class Main { public static void main(String[] args) { int s; int m; int h; Scanner sc = new Scanner(System.in); s = sc.nextInt(); m = s / 60; h = m / 60; s = s % 60; m = m % 60; h = h % 60; System.out.println(h + ":" + m + ":" + s); } }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
102
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int second = Integer.parseInt(br.readLine()); int h = second / (60 * 60); int m = se...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int second = Integer.parseInt(br.readLine()); int h = second / (60 * 60); int m = se...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
120
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String line = reader.readLine(); int S = Integer.parseInt(line); if (S > 0 && S < 86400) { int hour = S / 3600; ...
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String line = reader.readLine(); int S = Integer.parseInt(line); if (S >= 0 && S < 86400) { int hour = S / 3600; ...
[["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 20]]
3
117
import java.util.Scanner; class Main { public static void main(String[] agrs) { Scanner scan = new Scanner(System.in); String str = scan.next(); int times = Integer.parseInt(str); int a = times / 3600; times = times % 3600; int b = times / 60; times = times % 60; int c = times; Sys...
import java.util.Scanner; class Main { public static void main(String[] agrs) { Scanner scan = new Scanner(System.in); String str = scan.next(); int times = Integer.parseInt(str); int a = times / 3600; times = times % 3600; int b = times / 60; times = times % 60; int c = times; Sys...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
105
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { String scond = br.readLine(); int intscond = Integer.parseInt(scond...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { String scond = br.readLine(); int intscond = Integer.parseInt(scond...
[["-", 49, 200, 51, 16, 31, 23, 0, 16, 12, 499], ["+", 49, 200, 51, 16, 31, 23, 0, 16, 12, 499]]
3
134
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int s = scanner.nextInt(); if (0 < s && s < 86400) { int m = s / 60; int h = m / 60; int mm = m % 60; int ss = s % 60; System.out.println(h + "...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int s = scanner.nextInt(); if (0 <= s && s < 86400) { int m = s / 60; int h = m / 60; int mm = m % 60; int ss = s % 60; System.out.println(h + ...
[["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 19]]
3
105
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int S = scan.nextInt(); int h = S / 3600; int m = (S % 3600) / 60; int s = S % 60; System.out.println("" + h + ";" + m + ";" + s); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int S = scan.nextInt(); int h = S / 3600; int m = (S % 3600) / 60; int s = S % 60; System.out.println("" + h + ":" + m + ":" + s); } }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
93
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner kbScanner = new Scanner(System.in); int sec = kbScanner.nextInt(); int hour = 0, minute = 0, second = 0; hour = sec / 3600; sec -= hour; minute = sec / 60; sec -= minute; second = sec; ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner kbScanner = new Scanner(System.in); int sec = kbScanner.nextInt(); int hour = 0, minute = 0, second = 0; hour = sec / 3600; sec -= hour * 3600; minute = sec / 60; sec -= minute * 60; seco...
[["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 499]]
3
102
public class Main { public static void main(String[] args) { int S = new java.util.Scanner(System.in).nextInt(); int h = S / 3600 / 24; int m = (S % 3600) / 60; int s = S % 60; System.out.println(s + ":" + m + ":" + s); } }
public class Main { public static void main(String[] args) { int S = new java.util.Scanner(System.in).nextInt(); int h = S / 3600; int m = (S % 3600) / 60; int s = S % 60; System.out.println(h + ":" + m + ":" + s); } }
[["-", 8, 196, 0, 503, 49, 200, 51, 16, 17, 85], ["-", 8, 196, 0, 503, 49, 200, 51, 16, 12, 499], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 31, 22]]
3
84
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int b = 0; int c = 0; int su = Integer.parseInt(br.r...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int b = 0; int c = 0; int su = Integer.parseInt(br....
[["-", 15, 15, 0, 16, 31, 23, 0, 16, 17, 18], ["+", 15, 15, 0, 16, 31, 23, 0, 16, 17, 47], ["-", 15, 15, 0, 16, 12, 23, 0, 16, 17, 19], ["+", 15, 15, 0, 16, 12, 23, 0, 16, 17, 47]]
3
154
import java.io.*; public class Main { public static void main(String[] arg) throws IOException { InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is); String str = br.readLine(); int num = Integer.parseInt(str); System.out.println(num / 60 / 60 + "," ...
import java.io.*; public class Main { public static void main(String[] arg) throws IOException { InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is); String str = br.readLine(); int num = Integer.parseInt(str); System.out.println(num / 60 / 60 + ":" ...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
96
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int s = scan.nextInt(); int h = s / 360; int m = (s - h * 360) / 60; s = s - h * 360 - m * 60; System.out.println(h + ":" + m + ":" + s); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int s = scan.nextInt(); int h = s / 3600; int m = (s - h * 3600) / 60; s = s - h * 3600 - m * 60; System.out.println(h + ":" + m + ":" + s); } }
[["-", 8, 196, 0, 503, 49, 200, 51, 16, 12, 499], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 12, 499], ["-", 51, 16, 31, 23, 0, 16, 12, 16, 12, 499], ["+", 51, 16, 31, 23, 0, 16, 12, 16, 12, 499], ["-", 0, 11, 12, 16, 31, 16, 12, 16, 12, 499], ["+", 0, 11, 12, 16, 31, 16, 12, 16, 12, 499]]
3
97
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int s = sc.nextInt(); if (s >= 0 && s < 86400) { int second = s % 60; s = s / 60; int minute = s % 60; int hour = s / 60; System....
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int s = sc.nextInt(); if (s >= 0 && s < 86400) { int second = s % 60; s = s / 60; int minute = s % 60; int hour = s / 60; System....
[["-", 3, 4, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 3, 4, 0, 492, 3, 4, 0, 5, 0, 491]]
3
109
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int secAll = scan.nextInt(); int hour = secAll / 3600; int min = secAll / 60; int sec = secAll - ((hour * 3600) + (min * 60)); System.out.println(hour + ":" + min + ":" ...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int secAll = scan.nextInt(); int hour = secAll / 3600; int min = secAll / 60 - hour * 60; int sec = secAll - ((hour * 3600) + (min * 60)); System.out.println(hour + ":" ...
[["+", 8, 196, 0, 503, 49, 200, 51, 16, 17, 33], ["+", 0, 503, 49, 200, 51, 16, 12, 16, 31, 22], ["+", 0, 503, 49, 200, 51, 16, 12, 16, 17, 48], ["+", 0, 503, 49, 200, 51, 16, 12, 16, 12, 499]]
3
97
import java.util.*; public class Main { public static void main(String[] args) { int S = new Scanner(System.in).nextInt(); int h = S / 60 * 60; int m = S % (60 * 60) / 60; int s = (S % (60 * 60)) % 60; System.out.println(h + ":" + m + ":" + s); } }
import java.util.*; public class Main { public static void main(String[] args) { int S = new Scanner(System.in).nextInt(); int h = S / (60 * 60); int m = S % (60 * 60) / 60; int s = (S % (60 * 60)) % 60; System.out.println(h + ":" + m + ":" + s); } }
[["+", 0, 503, 49, 200, 51, 16, 12, 23, 0, 24], ["+", 0, 503, 49, 200, 51, 16, 12, 23, 0, 25]]
3
97
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String x = ""; try { x = in.readLine(); } catch (NumberFormatExcep...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String x = ""; try { x = in.readLine(); } catch (NumberFormatExcep...
[["-", 8, 196, 0, 503, 49, 200, 51, 16, 12, 499], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 12, 499]]
3
156
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int S = sc.nextInt(); int h = S / 3600; int m = S % 3600 / 60; int s = S % 3600 % 60 / 60; System.out.println(h + ":" + m + ":" + s); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int S = sc.nextInt(); int h = S / 3600; int m = S % 3600 / 60; int s = S % 3600 % 60; System.out.println(h + ":" + m + ":" + s); } }
[["-", 8, 196, 0, 503, 49, 200, 51, 16, 17, 85], ["-", 8, 196, 0, 503, 49, 200, 51, 16, 12, 499]]
3
92
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); String ln; ln = buf.readLine(); // String[] st...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); String ln; ln = buf.readLine(); // String[] st...
[["-", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72], ["-", 0, 492, 3, 4, 0, 16, 12, 5, 0, 62], ["-", 0, 492, 3, 4, 0, 16, 12, 5, 0, 491]]
3
154
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); // int t = stdin.nextInt(); int t = Integer.parseInt(args[0]); int h = t / 3600; int m = (t - h * 3600) / 60; int s = (t - h * 3600) % 60; System.out.println(h + ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); int t = stdin.nextInt(); int h = t / 3600; int m = (t - h * 3600) / 60; int s = (t - h * 3600) % 60; System.out.println(h + ":" + m + ":" + s); } }
[["-", 8, 196, 0, 503, 49, 200, 51, 492, 500, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 500, 22], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["-", 49, 200, 51, 492, 3, 4, 0, 504, 516, 22], ["-", 49, 200, 51, 492, 3, 4, 0, 504, 0, 70], ["-", 49, 200, 51, 492, 3...
3
103
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int x = n / 3600, y = x % 3600 / 60, z = n % 60; System.out.println(x + ":" + y + ":" + z); } }
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int x = n / 3600, y = n % 3600 / 60, z = n % 60; System.out.println(x + ":" + y + ":" + z); } }
[["-", 0, 503, 49, 200, 51, 16, 31, 16, 31, 22], ["+", 0, 503, 49, 200, 51, 16, 31, 16, 31, 22]]
3
85
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int h = a / 3600; int m = a % 3600 / 60; int s = a % 3600 % 60 / 60; System.out.println(h + ":" + m + ":" + s); } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int h = a / 3600; int m = a % 3600 / 60; int s = a % 3600 % 60; System.out.println(h + ":" + m + ":" + s); } }
[["-", 8, 196, 0, 503, 49, 200, 51, 16, 17, 85], ["-", 8, 196, 0, 503, 49, 200, 51, 16, 12, 499]]
3
91
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String[] strAry = str.split(" "); int S = Integer.parseInt(strAry[0]); int h, m, s; h = S / 3600; ...
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String[] strAry = str.split(" "); int S = Integer.parseInt(strAry[0]); int h, m, s; h = S / 3600; ...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
130
import java.io.*; class Main { public static void main(String args[]) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String str = reader.readLine(); int time = Integer.parseInt(str); int h = time / 3600; int m = (time % h) / 60; ...
import java.io.*; class Main { public static void main(String args[]) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String str = reader.readLine(); int time = Integer.parseInt(str); int h = time / 3600; int m = (time % 3600) / 60; ...
[["-", 49, 200, 51, 16, 31, 23, 0, 16, 12, 22], ["+", 49, 200, 51, 16, 31, 23, 0, 16, 12, 499]]
3
122
/** * Created by kaki on 2017/04/17. */ import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int S = Integer.parseInt(scan.next()); int m = 0; int h = 0; while (S > 0) { S -= 60; m += 1; } while (m > 0...
/** * Created by kaki on 2017/04/17. */ import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int S = Integer.parseInt(scan.next()); int m = 0; int h = 0; while (S > 59) { S -= 60; m += 1; } while (m > ...
[["-", 8, 196, 0, 52, 15, 15, 0, 16, 12, 499], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 12, 499]]
3
113
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String x = sc.nextLine(); int a = Integer.parseInt(x); System.out.println((a / 3600) + ":" + (a % 360 / 60) + ":" + (a % 360 % 60)); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String x = sc.nextLine(); int a = Integer.parseInt(x); System.out.println((a / 3600) + ":" + (a % 3600 / 60) + ":" + (a % 3600 % 60)); } }
[["-", 31, 16, 12, 23, 0, 16, 31, 16, 12, 499], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 12, 499], ["-", 0, 16, 12, 23, 0, 16, 31, 16, 12, 499], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 12, 499]]
3
91
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int S = sc.nextInt(); int s = S % 60; int m = S / 60; int h = m / 60; System.out.println(h + ":" + m + ":" + s); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int S = sc.nextInt(); int s = S % 60; int m = S / 60 % 60; int h = S / 3600; System.out.println(h + ":" + m + ":" + s); } }
[["+", 8, 196, 0, 503, 49, 200, 51, 16, 17, 109], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 12, 499], ["-", 8, 196, 0, 503, 49, 200, 51, 16, 31, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 31, 22], ["-", 8, 196, 0, 503, 49, 200, 51, 16, 12, 499]]
3
86
import java.util.Scanner; public class Main { public static void main(String args[]) { int S, h, m, s; Scanner scan = new Scanner(System.in); S = Integer.parseInt(scan.next()); if ((S >= 1) && (S <= 86400)) { h = S / (60 * 60); m = (S % (60 * 60)) / 60; s = (S % (60 * 60)) % 60...
import java.util.Scanner; public class Main { public static void main(String[] args) { int S, h, m, s; Scanner scan = new Scanner(System.in); S = Integer.parseInt(scan.next()); if ((S >= 0) && (S < 86400)) { h = S / (60 * 60); m = (S % (60 * 60)) / 60; s = (S % (60 * 60)) % 60;...
[["-", 8, 498, 0, 195, 54, 495, 0, 496, 141, 22], ["+", 8, 498, 0, 195, 54, 495, 0, 496, 141, 22], ["-", 15, 15, 0, 16, 31, 23, 0, 16, 12, 499], ["+", 15, 15, 0, 16, 31, 23, 0, 16, 12, 499], ["-", 15, 15, 0, 16, 12, 23, 0, 16, 17, 19], ["+", 15, 15, 0, 16, 12, 23, 0, 16, 17, 18]]
3
132
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); long S = stdIn.nextLong(); long h = S / 3600; long m = S % 3600 / 60; long sec = S % 60; System.out.println(h + "h" + m + "m" + sec + "s"); } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); long S = stdIn.nextLong(); long h = S / 3600; long m = S % 3600 / 60; long sec = S % 60; System.out.println(h + ":" + m + ":" + sec); } }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72], ["-", 0, 492, 3, 4, 0, 16, 12, 5, 0, 62], ["-", 0, 492, 3, 4, 0, 16, 12, 5, 0, 491]]
3
91
import java.util.*; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int h, m, s; // for(int i=1; i < 2000; i++) { // s = n - 60; // if(s < 60) break; // } // int s_left = ...
import java.util.*; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int h, m, s; h = n / 3600; m = (n - h * 3600) / 60; s = n - (h * 3600 + m * 60); System.out.println(h + ":" + m + ":" + s); } }
[["-", 12, 16, 31, 23, 0, 16, 12, 16, 12, 499], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 499]]
3
114
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int sec = Integer.parseInt(br.readLine()); int hh = sec / 3600; int mm = sec / 60; int ss = sec % 60; System.out.println(hh + ":...
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int sec = Integer.parseInt(br.readLine()); int hh = sec / 3600; int mm = (sec % 3600) / 60; int ss = sec % 60; System.out.println...
[["+", 0, 503, 49, 200, 51, 16, 31, 23, 0, 24], ["+", 49, 200, 51, 16, 31, 23, 0, 16, 17, 109], ["+", 49, 200, 51, 16, 31, 23, 0, 16, 12, 499], ["+", 0, 503, 49, 200, 51, 16, 31, 23, 0, 25]]
3
96
import java.util.Scanner; public class Main { public static void main(String[] args) { int a = 0; try (Scanner scanner = new Scanner(System.in)) { a = scanner.nextInt(); // b=scanner.nextInt(); } // Date date =new Date(); int b = a / 3600; int c = (a % 3600) / 60; int d = ...
import java.util.Scanner; public class Main { public static void main(String[] args) { int a = 0; try (Scanner scanner = new Scanner(System.in)) { a = scanner.nextInt(); // b=scanner.nextInt(); } // Date date =new Date(); int b = a / 3600; int c = (a % 3600) / 60; int d = ...
[["-", 51, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+", 49, 200, 51, 23, 0, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 503, 49, 200, 51, 16, 17, 109], ["-", 8, 196, 0, 503, 49, 200, 51, 16, 12, 499]]
3
146
import java.io.*; class Main { public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String buf = br.readLine(); int x = Integer.parseInt(buf); int y = x / 3600; int z = (x % 3600) / 60; int w = (x % 3600) % 60; ...
import java.io.*; class Main { public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String buf = br.readLine(); int x = Integer.parseInt(buf); int y = x / 3600; int z = (x % 3600) / 60; int w = (x % 3600) % 60; ...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
109
'use strict'; (function(stdin) { var lines = stdin.toString().split('\n'); var result = (function(a, b) { return [ ~~(sec / (60 * 60)), ~~((sec % (60 * 60)) / 60), (sec % 60) ].join( ':'); }(parseInt(lines[0]))); console.log(result); }(require('fs').readFileSync('/dev/stdin', 'utf8')));
'use strict'; (function(stdin) { var lines = stdin.toString().split('\n'); var result = (function(sec) { return [ ~~(sec / (60 * 60)), ~~((sec % (60 * 60)) / 60), (sec % 60) ].join( ':'); }(parseInt(lines[0]))); console.log(result); }(require('fs').readFileSync('/dev/stdin', 'utf8')));
[["-", 51, 23, 0, 2, 63, 63, 54, 495, 0, 22], ["-", 51, 23, 0, 2, 63, 63, 54, 495, 0, 21], ["+", 51, 23, 0, 2, 63, 63, 54, 495, 0, 22]]
2
122
process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('data', function(chunk) { var lines = chunk.toString().split('\n'); var x = lines; var ji = Math.floor(x / 3600); x -= ji * 3600; var hun = Math.floor(x / 60); x -= hun * 60; var byo = x; console.log(ji + ":" + hun + ":" + byo)...
process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('data', function(chunk) { var lines = chunk.toString().split('\n'); var x = lines[0]; var ji = Math.floor(x / 3600); x -= ji * 3600; var hun = Math.floor(x / 60); x -= hun * 60; var byo = x; console.log(ji + ":" + hun + ":" + b...
[["+", 8, 556, 0, 198, 0, 200, 51, 69, 0, 70], ["+", 8, 556, 0, 198, 0, 200, 51, 69, 71, 555], ["+", 8, 556, 0, 198, 0, 200, 51, 69, 0, 73]]
2
118
'use strict'; process.stdin.on('data', function(chunk) { var inputs = chunk.toString().trim(); var S = Number(inputs); var h = Math.floor(S / 3600); var m = ((S - (h * 3600)) / 60); var s = S % 60; console.log([ h, m, s ].join(':')); }); process.stdin.resume(); process.stdin.setEncoding('utf8');
'use strict'; process.stdin.on('data', function(chunk) { var inputs = chunk.toString().trim(); var S = Number(inputs); var h = Math.floor(S / 3600); var m = Math.floor((S - (h * 3600)) / 60); var s = S % 60; console.log([ h, m, s ].join(':')); }); process.stdin.resume(); process.stdin.setEncoding('utf8');
[["+", 0, 198, 0, 200, 51, 2, 63, 558, 500, 22], ["+", 0, 198, 0, 200, 51, 2, 63, 558, 0, 131], ["+", 0, 198, 0, 200, 51, 2, 63, 558, 559, 560]]
2
118
'use strict'; process.stdin.on('data', function(chunk) { var inputs = chunk.toString().trim(); var S = Number(inputs); var h = Math.floor(S / 3600); var m = Math.floor(179 / 60); var s = S % 60; console.log([ h, m, s ].join(':')); }); process.stdin.resume(); process.stdin.setEncoding('utf8');
'use strict'; process.stdin.on('data', function(chunk) { var inputs = chunk.toString().trim(); var S = Number(inputs); var h = Math.floor(S / 3600); var m = Math.floor(S % 3600 / 60); var s = S % 60; console.log([ h, m, s ].join(':')); }); process.stdin.resume(); process.stdin.setEncoding('utf8');
[["-", 0, 200, 51, 2, 3, 3, 0, 16, 31, 555], ["+", 51, 2, 3, 3, 0, 16, 31, 16, 31, 22], ["+", 51, 2, 3, 3, 0, 16, 31, 16, 17, 109], ["+", 51, 2, 3, 3, 0, 16, 31, 16, 12, 555]]
2
113
'use strict'; process.stdin.on('data', function(chunk) { var inputs = chunk.toString().trim().split(''); var S = Number(inputs); var h = Math.floor(S / 3600); var m = Math.floor((S - (h * 3600)) / 60); var m = Math.floor(S % 3600 / 60); var s = S % 60; console.log([ h, m, s ].join(':')); }); process.stdin...
'use strict'; process.stdin.on('data', function(chunk) { var inputs = chunk.toString().trim(); var S = Number(inputs); var h = Math.floor(S / 3600); var m = Math.floor((S - (h * 3600)) / 60); var m = Math.floor(S % 3600 / 60); var s = S % 60; console.log([ h, m, s ].join(':')); }); process.stdin.resume();...
[["-", 0, 198, 0, 200, 51, 2, 63, 558, 0, 131], ["-", 0, 198, 0, 200, 51, 2, 63, 558, 559, 560], ["-", 0, 198, 0, 200, 51, 2, 3, 3, 0, 24], ["-", 0, 200, 51, 2, 3, 3, 0, 557, 0, 104], ["-", 0, 198, 0, 200, 51, 2, 3, 3, 0, 25]]
2
141
process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('data', function(chunk) { var line = chunk.toString().split('\n'); var seconds = Number(line[0]); var hour_sec = 60 * 60; var minute_sec = 60; var hour = Math.floor(seconds / hour_sec); var minute = Math.floor(seconds % minute_sec...
process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('data', function(chunk) { var line = chunk.toString().split('\n'); var seconds = Number(line[0]); var hour_sec = 60 * 60; var minute_sec = 60; var hour = Math.floor(seconds / hour_sec); var minute = Math.floor((seconds % hour_sec)...
[["+", 51, 2, 3, 3, 0, 16, 31, 23, 0, 24], ["-", 51, 16, 31, 2, 3, 3, 0, 16, 12, 22], ["+", 3, 3, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 198, 0, 200, 51, 2, 3, 3, 0, 25], ["-", 8, 556, 0, 198, 0, 200, 51, 23, 0, 24], ["-", 8, 556, 0, 198, 0, 200, 51, 23, 0, 25]]
2
132
process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('data', function(chunk) { var line = chunk.toString().split('\n'); var sec = Number(line[0]); var hour_sec = 60 * 60 var minitue_sec = 60; var h = Math.floor(seconds / hour_sec); var m = Math.floor((seconds % hour_sec) / minute_sec...
process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('data', function(chunk) { var line = chunk.toString().split('\n'); var sec = Number(line[0]); var hour_sec = 60 * 60; var minitue_sec = 60; var h = Math.floor(sec / hour_sec); var m = Math.floor((sec % hour_sec) / minitue_sec); v...
[["+", 3, 3, 0, 63, 8, 556, 0, 198, 0, 35], ["-", 0, 200, 51, 2, 3, 3, 0, 16, 31, 22], ["+", 0, 200, 51, 2, 3, 3, 0, 16, 31, 22], ["-", 3, 3, 0, 16, 31, 23, 0, 16, 31, 22], ["+", 3, 3, 0, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 200, 51, 2, 3, 3, 0, 16, 12, 22], ["+", 0, 200, 51, 2, 3, 3, 0, 16, 12, 22], ["-", 0, 198, 0, 2...
2
131
var S = parseInt(require('fs').readFileSync('dev/stdin').toString()); var res = separate(S); while (res.split(':').length < 3) res = '0:' + res; console.log(res); function separate(num) { if (num < 60) return String(num); return separate(Math.floor(num / 60)) + ":" + String(num % 60); }
var S = parseInt(require('fs').readFileSync('/dev/stdin').toString()); var res = separate(S); while (res.split(':').length < 3) res = '0:' + res; console.log(res); function separate(num) { if (num < 60) return String(num); return separate(Math.floor(num / 60)) + ":" + String(num % 60); }
[["-", 63, 558, 500, 2, 3, 3, 0, 557, 0, 491], ["+", 63, 558, 500, 2, 3, 3, 0, 557, 0, 491]]
2
105
var stdin = require('fs').readFileSync('/dev/stdin', 'utf8'); var inputs = Number(stdin.toString().trim()); var hour = parseInt(inputs / 3600); var minute = parseInt((inputs % 3600) / 60); var seconds = inputs % 60; console.log(hour + ' ' + minute + ' ' + seconds);
var stdin = require('fs').readFileSync('/dev/stdin', 'utf8'); var inputs = Number(stdin.toString().trim()); var hour = parseInt(inputs / 3600); var minute = parseInt((inputs % 3600) / 60); var seconds = inputs % 60; console.log(hour + ':' + minute + ':' + seconds);
[["-", 31, 16, 31, 16, 31, 16, 12, 557, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 12, 557, 0, 491], ["-", 3, 3, 0, 16, 31, 16, 12, 557, 0, 491], ["+", 3, 3, 0, 16, 31, 16, 12, 557, 0, 491]]
2
87
var fs = require('fs') var contents = fs.readFileSync('/dev/stdin', 'utf-8'); var watch = function(str) { var n = parseInt(str); var h = math.floor(n / 3600); var m = math.floor((n - 3600 * h) / 60); var s = n % 60; return h + ":" + m + ":" + s; } console.log(watch(content));
var fs = require('fs') var contents = fs.readFileSync('/dev/stdin', 'utf-8'); var watch = function(str) { var n = parseInt(str); var h = Math.floor(n / 3600); var m = Math.floor((n - 3600 * h) / 60); var s = n % 60; return h + ":" + m + ":" + s; } console.log(watch(contents));
[["-", 0, 198, 0, 200, 51, 2, 63, 558, 500, 22], ["+", 0, 198, 0, 200, 51, 2, 63, 558, 500, 22], ["-", 0, 2, 3, 3, 0, 2, 3, 3, 0, 22], ["+", 0, 2, 3, 3, 0, 2, 3, 3, 0, 22]]
2
104
process.stdin.setEncoding('utf-8'); process.stdin.on('data', input => { const sec = parseInt(input); const hour = parseInt(sec / 3600); const minute = parseInt(sec / 60 % 60); const secont = parseInt(sec / 60) outPut = hour + ':' + minute + ':' + secont; console.log(outPut) })
process.stdin.setEncoding('utf-8'); process.stdin.on('data', input => { const sec = parseInt(input); const hour = parseInt(sec / 3600); const minute = parseInt(sec / 60 % 60); const second = parseInt(sec % 60) output = hour + ':' + minute + ':' + second; console.log(output) })
[["-", 0, 568, 8, 556, 0, 570, 0, 200, 141, 22], ["+", 0, 568, 8, 556, 0, 570, 0, 200, 141, 22], ["-", 0, 200, 51, 2, 3, 3, 0, 16, 17, 85], ["+", 0, 200, 51, 2, 3, 3, 0, 16, 17, 109], ["-", 0, 568, 8, 556, 0, 1, 0, 11, 31, 22], ["+", 0, 568, 8, 556, 0, 1, 0, 11, 31, 22], ["-", 8, 556, 0, 1, 0, 11, 12, 16, 12, 22], ["+"...
2
87
function Main() { var S = parseInt(input); var h = parseInt(S / 3600); //秒を時間へ 1時間=60分 60分=3600秒 var x = S % 3600; var m = x / 60; var z = x % 60; var s = z; var answer = h + ":" + m + ":" + s; console.log(input); } // "実行する"ボタンを押した時に実行される関数 (デバッグ用) function debug() { var input = document.getElementB...
function Main(input) { var S = parseInt(input); var h = parseInt(S / 3600); //秒を時間へ 1時間=60分 60分=3600秒 var x = S % 3600; var m = parseInt(x / 60); var z = x % 60; var s = z; var answer = h + ":" + m + ":" + s; console.log(answer); } // "実行する"ボタンを押した時に実行される関数 (デバッグ用) function debug() { var input = docu...
[["+", 36, 36, 0, 493, 0, 435, 54, 495, 0, 22], ["+", 8, 556, 0, 198, 0, 200, 51, 2, 63, 22], ["+", 0, 198, 0, 200, 51, 2, 3, 3, 0, 24], ["+", 0, 198, 0, 200, 51, 2, 3, 3, 0, 25], ["-", 8, 556, 0, 1, 0, 2, 3, 3, 0, 22], ["+", 8, 556, 0, 1, 0, 2, 3, 3, 0, 22]]
2
123
<?php fscanf("%d", $S); printf("%s%s", convertStoHMS($S), PHP_EOL); function convertStoHMS($seconds) { $hour = floor($seconds / 3600); $minute = floor($seconds / 60) % 60; $second = $seconds % 60; return sprintf("%d:%d:%d", $hour, $minute, $second); }
<?php fscanf(STDIN, "%d", $S); printf("%s%s", convertStoHMS($S), PHP_EOL); function convertStoHMS($seconds) { $hour = floor($seconds / 3600); $minute = floor($seconds / 60) % 60; $second = $seconds % 60; return sprintf("%d:%d:%d", $hour, $minute, $second); }
[["+", 0, 1, 0, 613, 3, 3, 0, 28, 0, 141], ["+", 0, 493, 0, 1, 0, 613, 3, 3, 0, 21]]
6
83
<?php $line = fgets(STDIN); $t = intval($line); $h = floor($t / (24 * 60)); $t = $t % (24 * 60); $m = floor($t / 60); $s = $t % 60; echo $h.':'.$m.':'.$s."\n";
<?php $line = fgets(STDIN); $t = intval(trim($line)); $h = floor($t / (60 * 60)); $t = $t % (60 * 60); $m = floor($t / 60); $s = $t % 60; echo $h.':'.$m.':'.$s."\n";
[["+", 12, 613, 3, 3, 0, 28, 0, 613, 63, 141], ["+", 3, 3, 0, 28, 0, 613, 3, 3, 0, 24], ["+", 0, 1, 0, 11, 12, 613, 3, 3, 0, 25], ["-", 0, 28, 0, 16, 12, 23, 0, 16, 31, 612], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 31, 612], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 31, 612], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 31, 612]]
6
86
<?php $input = trim(fgets(STDIN)); $hour = floor($input / 3600); $minutes = floor(($input % 60) / 60); $seconds = $input % 60; $time = $hour.":".$minutes.":".$seconds."\n"; echo $time; ?>
<?php $input = trim(fgets(STDIN)); $hour = floor($input / 3600); $minutes = floor(($input % 3600) / 60); $seconds = $input % 60; $time = $hour.":".$minutes.":".$seconds."\n"; echo $time;
[["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 612], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 612], ["-", 36, 36, 36, 36, 36, 36, 0, 493, 0, 611]]
6
75
<?php $inputSeconds = trim(fgets(STDIN)); $hours = floor($inputSeconds / 3600); $minutes = floor(($inputSeconds % 3600) / 60); $seconds = $inputSecounds % 60; echo $hours.':'.$minutes.':'.$seconds, PHP_EOL;
<?php $inputSeconds = trim(fgets(STDIN)); $hours = floor($inputSeconds / 3600); $minutes = floor(($inputSeconds % 3600) / 60); $seconds = $inputSeconds % 60; echo $hours.':'.$minutes.':'.$seconds, PHP_EOL;
[["-", 0, 1, 0, 11, 12, 16, 31, 606, 0, 141], ["+", 0, 1, 0, 11, 12, 16, 31, 606, 0, 141]]
6
66
<?php $hms = new HMSConverter(fgets(STDIN)); echo sprintf('%d:%d:%d', $hms->h(), $hms->m(), $hms->s), PHP_EOL; class HMSConverter { protected $second; public function __construct($second) { $this->second = (int) $second; } public function h() { return floor($this->second / 60 ...
<?php $hms = new HMSConverter(fgets(STDIN)); echo sprintf('%d:%d:%d', $hms->h(), $hms->m(), $hms->s()), PHP_EOL; class HMSConverter { protected $second; public function __construct($second) { $this->second = (int) $second; } public function h() { return floor($this->second / 6...
[["+", 3, 3, 0, 28, 0, 623, 3, 3, 0, 24], ["+", 3, 3, 0, 28, 0, 623, 3, 3, 0, 25]]
6
125
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner S = new Scanner(System.in); int time = S.nextInt(); int h = time / 3600; int m = (time - h * 3600) / 60; int s = time % 60; System.out.printf("%d %d %d\n", h, m, s); } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner S = new Scanner(System.in); int time = S.nextInt(); int h = time / 3600; int m = (time - h * 3600) / 60; int s = time % 60; System.out.printf("%d:%d:%d\n", h, m, s); } }
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
88
package lesson; import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int S = sc.nextInt(); int h = S / 3600; int m = S % 3600 / 60; int s = (S % 3600 / 60) % 60; System.out.print(h + ":" + m + ":" + s); } }
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int S = sc.nextInt(); int h = S / 3600; int m = S % 3600 / 60; int s = (S % 3600) % 60; System.out.println(h + ":" + m + ":" + s); } }
[["-", 36, 36, 36, 36, 0, 493, 0, 501, 0, 483], ["-", 36, 36, 36, 36, 0, 493, 0, 501, 0, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 501, 0, 35], ["-", 49, 200, 51, 16, 31, 23, 0, 16, 17, 85], ["-", 49, 200, 51, 16, 31, 23, 0, 16, 12, 499], ["-", 0, 195, 8, 196, 0, 1, 0, 492, 141, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 492, 141...
3
97
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int S = sc.nextInt(); int h = S / 3600; int m = S % 3600 / 60; int s = S % 3600 / 60 % 60; System.out.print(h + ":" + m + ":" + s); } }
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int S = sc.nextInt(); int h = S / 3600; int m = S % 3600 / 60; int s = S % 3600 % 60; System.out.println(h + ":" + m + ":" + s); } }
[["-", 0, 503, 49, 200, 51, 16, 31, 16, 17, 85], ["-", 0, 503, 49, 200, 51, 16, 31, 16, 12, 499], ["-", 0, 195, 8, 196, 0, 1, 0, 492, 141, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 492, 141, 22]]
3
92
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String str = reader.readLine(); double S = Dou...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String str = reader.readLine(); double S = Dou...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
162
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner inp = new Scanner(System.in); int x = inp.nextInt(); System.out.println(x / 3600 + ":" + x / 60 % 60 + ":" + x / 60); } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner inp = new Scanner(System.in); int x = inp.nextInt(); System.out.println(x / 3600 + ":" + x / 60 % 60 + ":" + x % 60); } }
[["-", 0, 492, 3, 4, 0, 16, 12, 16, 17, 85], ["+", 0, 492, 3, 4, 0, 16, 12, 16, 17, 109]]
3
72
import java.util.Scanner; class Main { int S, h, m, s; public void suzuki() { Scanner sc = new Scanner(System.in); S = sc.nextInt(); h = S % 3600; m = (S - (h * 3600)) % 60; s = S - (h * 3600) - (m * 60); System.out.print(h + ":" + m + ":" + s); } public static void main(String[] arg...
import java.util.Scanner; class Main { int S, h, m, s; public void suzuki() { Scanner sc = new Scanner(System.in); S = sc.nextInt(); h = S / 3600; m = (S - (h * 3600)) / 60; s = S - (h * 3600) - (m * 60); System.out.println(h + ":" + m + ":" + s); } public static void main(String[] a...
[["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 85], ["-", 0, 195, 8, 196, 0, 1, 0, 492, 141, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 492, 141, 22]]
3
124