結果

問題 No.651 E869120 and Driving
ユーザー kazukikazuki
提出日時 2018-11-24 01:22:42
言語 Ruby
(3.3.0)
結果
AC  
実行時間 85 ms / 1,000 ms
コード長 137 bytes
コンパイル時間 215 ms
コンパイル使用メモリ 11,868 KB
実行使用メモリ 16,020 KB
最終ジャッジ日時 2023-10-22 08:03:31
合計ジャッジ時間 1,805 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
16,020 KB
testcase_01 AC 83 ms
16,020 KB
testcase_02 AC 85 ms
16,020 KB
testcase_03 AC 84 ms
16,020 KB
testcase_04 AC 85 ms
16,020 KB
testcase_05 AC 84 ms
16,020 KB
testcase_06 AC 83 ms
16,020 KB
testcase_07 AC 82 ms
16,020 KB
testcase_08 AC 83 ms
16,020 KB
testcase_09 AC 84 ms
16,020 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a = gets.to_i

h = a/100
m = a/10%10*6

if m == 6
  puts "#{10+h}:0#{m}"
elsif m == 0
  puts "#{10+h}:00"
else
  puts "#{10+h}:#{m}"
end
0