結果

問題 No.405 ローマ数字の腕時計
ユーザー simansiman
提出日時 2020-06-11 16:14:22
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 162 bytes
コンパイル時間 554 ms
コンパイル使用メモリ 11,156 KB
実行使用メモリ 15,392 KB
最終ジャッジ日時 2023-09-06 08:15:15
合計ジャッジ時間 4,923 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,080 KB
testcase_01 AC 82 ms
15,388 KB
testcase_02 AC 83 ms
15,272 KB
testcase_03 AC 82 ms
15,180 KB
testcase_04 AC 81 ms
15,260 KB
testcase_05 AC 83 ms
15,088 KB
testcase_06 WA -
testcase_07 AC 82 ms
15,352 KB
testcase_08 AC 82 ms
15,108 KB
testcase_09 WA -
testcase_10 AC 82 ms
15,340 KB
testcase_11 AC 82 ms
15,264 KB
testcase_12 WA -
testcase_13 AC 82 ms
15,148 KB
testcase_14 AC 82 ms
15,148 KB
testcase_15 AC 82 ms
15,072 KB
testcase_16 AC 80 ms
15,340 KB
testcase_17 WA -
testcase_18 AC 82 ms
15,280 KB
testcase_19 AC 81 ms
15,132 KB
testcase_20 AC 81 ms
15,260 KB
testcase_21 AC 81 ms
15,028 KB
testcase_22 AC 81 ms
15,036 KB
testcase_23 AC 81 ms
15,264 KB
testcase_24 AC 82 ms
15,040 KB
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

S1, T = gets.chomp.split

times = ['', "I","II","III","IIII","V","VI","VII","VIII","IX","X","XI","XII"]

hour = times.index(S1)

puts times[(hour + T.to_i) % 12]
0