結果

問題 No.405 ローマ数字の腕時計
ユーザー yohei-kuyohei-ku
提出日時 2018-03-05 20:25:12
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 336 bytes
コンパイル時間 115 ms
コンパイル使用メモリ 6,520 KB
実行使用メモリ 6,028 KB
最終ジャッジ日時 2023-10-11 15:46:50
合計ジャッジ時間 1,638 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,008 KB
testcase_01 AC 11 ms
5,884 KB
testcase_02 AC 11 ms
5,932 KB
testcase_03 AC 12 ms
5,932 KB
testcase_04 AC 11 ms
5,928 KB
testcase_05 AC 11 ms
5,932 KB
testcase_06 WA -
testcase_07 AC 11 ms
5,884 KB
testcase_08 AC 11 ms
5,992 KB
testcase_09 RE -
testcase_10 AC 11 ms
5,844 KB
testcase_11 AC 11 ms
5,932 KB
testcase_12 RE -
testcase_13 AC 11 ms
5,864 KB
testcase_14 AC 11 ms
5,844 KB
testcase_15 AC 11 ms
5,840 KB
testcase_16 AC 11 ms
6,004 KB
testcase_17 RE -
testcase_18 AC 11 ms
5,936 KB
testcase_19 AC 11 ms
5,940 KB
testcase_20 AC 11 ms
5,932 KB
testcase_21 AC 11 ms
5,864 KB
testcase_22 AC 11 ms
6,008 KB
testcase_23 AC 11 ms
5,840 KB
testcase_24 AC 11 ms
5,868 KB
testcase_25 RE -
testcase_26 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

P =raw_input()
PP = P.split()
S1 =str(PP[0])
T  =int(PP[1])

L =[]
L.append(S1)
L.append(T)
time={"I":1,"II":2,"III":3,"IIII":4,"V":5,"VI":6,"VII":7,"VIII":8,"IX":9,"X":10,"XI":11,"XII":12}
time2={v:k for k,v in time.items()}
A =time[L[0]]+L[1]
if time[L[0]]+L[1]>12 or time[L[0]]+L[1]<12:
    A =(time[L[0]]+L[1])%12
    print time2[A]
0