結果

問題 No.405 ローマ数字の腕時計
ユーザー chankou0920chankou0920
提出日時 2017-11-06 12:05:48
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 461 bytes
コンパイル時間 1,925 ms
コンパイル使用メモリ 104,460 KB
実行使用メモリ 22,724 KB
最終ジャッジ日時 2023-09-21 00:30:34
合計ジャッジ時間 4,577 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,648 KB
testcase_01 AC 57 ms
18,856 KB
testcase_02 AC 56 ms
20,636 KB
testcase_03 AC 56 ms
20,728 KB
testcase_04 AC 57 ms
20,800 KB
testcase_05 AC 57 ms
22,688 KB
testcase_06 AC 56 ms
20,732 KB
testcase_07 AC 57 ms
22,640 KB
testcase_08 AC 57 ms
22,616 KB
testcase_09 AC 56 ms
20,552 KB
testcase_10 AC 57 ms
22,680 KB
testcase_11 AC 57 ms
22,608 KB
testcase_12 AC 56 ms
20,516 KB
testcase_13 AC 56 ms
20,856 KB
testcase_14 AC 58 ms
18,760 KB
testcase_15 AC 57 ms
20,644 KB
testcase_16 AC 57 ms
20,720 KB
testcase_17 AC 56 ms
18,720 KB
testcase_18 AC 56 ms
20,592 KB
testcase_19 AC 57 ms
22,632 KB
testcase_20 AC 56 ms
18,516 KB
testcase_21 AC 57 ms
22,652 KB
testcase_22 AC 58 ms
20,784 KB
testcase_23 AC 57 ms
22,724 KB
testcase_24 AC 57 ms
22,688 KB
testcase_25 AC 58 ms
22,636 KB
testcase_26 AC 56 ms
18,664 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Program {
	public void Solve() {
		string[] rome = {"I","II","III","IIII","V","VI","VII","VIII","IX","X","XI","XII"};
		string[] s = Console.ReadLine().Split(' ');
		DateTime dt = new DateTime (2017, 11, 6, Array.IndexOf(rome, s[0]), 0, 0);
		dt = dt.AddHours(int.Parse(s[1]));
		Console.WriteLine(rome[dt.Hour % rome.Length]);
	}
	
	public static void Main(string[] args) {
		Program program = new Program();
		program.Solve();
	}
}
0