結果

問題 No.405 ローマ数字の腕時計
ユーザー phsplsphspls
提出日時 2020-03-28 13:18:35
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 421 bytes
コンパイル時間 3,250 ms
コンパイル使用メモリ 101,776 KB
実行使用メモリ 23,540 KB
最終ジャッジ日時 2023-09-21 00:44:16
合計ジャッジ時間 5,763 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
23,416 KB
testcase_01 AC 58 ms
21,360 KB
testcase_02 AC 60 ms
21,448 KB
testcase_03 AC 59 ms
23,408 KB
testcase_04 AC 59 ms
21,344 KB
testcase_05 AC 59 ms
23,436 KB
testcase_06 AC 60 ms
23,540 KB
testcase_07 AC 59 ms
21,552 KB
testcase_08 AC 60 ms
23,472 KB
testcase_09 AC 59 ms
19,384 KB
testcase_10 AC 59 ms
21,528 KB
testcase_11 AC 59 ms
21,588 KB
testcase_12 AC 59 ms
23,380 KB
testcase_13 AC 58 ms
19,336 KB
testcase_14 AC 60 ms
21,364 KB
testcase_15 AC 58 ms
19,324 KB
testcase_16 AC 59 ms
23,540 KB
testcase_17 AC 61 ms
23,476 KB
testcase_18 AC 59 ms
23,480 KB
testcase_19 AC 59 ms
21,484 KB
testcase_20 AC 59 ms
21,364 KB
testcase_21 AC 59 ms
23,492 KB
testcase_22 AC 60 ms
23,420 KB
testcase_23 AC 60 ms
23,528 KB
testcase_24 AC 60 ms
21,476 KB
testcase_25 AC 58 ms
21,372 KB
testcase_26 AC 59 ms
21,364 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

public class P0405 {
    public static void Main() {
        var st = Console.ReadLine().Trim().Split(' ').ToList();
        var s = st[0];
        var t = int.Parse(st[1]);
        var cands = new string[]{"I","II","III","IIII","V","VI","VII","VIII","IX","X","XI","XII"};
        var start = cands.ToList().IndexOf(s);
        Console.WriteLine(cands[(start + 1200 + t ) % 12]);
    }
}
0