結果

問題 No.405 ローマ数字の腕時計
ユーザー TaK7907TaK7907
提出日時 2017-10-26 19:40:34
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 318 bytes
コンパイル時間 808 ms
コンパイル使用メモリ 110,560 KB
実行使用メモリ 26,032 KB
最終ジャッジ日時 2024-05-01 15:14:39
合計ジャッジ時間 2,234 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
24,112 KB
testcase_01 AC 22 ms
23,984 KB
testcase_02 AC 22 ms
26,032 KB
testcase_03 AC 22 ms
26,012 KB
testcase_04 AC 22 ms
26,016 KB
testcase_05 AC 22 ms
23,668 KB
testcase_06 RE -
testcase_07 AC 23 ms
25,576 KB
testcase_08 AC 22 ms
23,792 KB
testcase_09 RE -
testcase_10 AC 21 ms
24,108 KB
testcase_11 AC 21 ms
21,812 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 21 ms
23,792 KB
testcase_15 AC 22 ms
23,792 KB
testcase_16 AC 23 ms
23,532 KB
testcase_17 RE -
testcase_18 AC 20 ms
21,684 KB
testcase_19 AC 22 ms
26,028 KB
testcase_20 AC 23 ms
25,704 KB
testcase_21 AC 24 ms
23,984 KB
testcase_22 AC 24 ms
25,956 KB
testcase_23 AC 25 ms
23,848 KB
testcase_24 AC 23 ms
25,896 KB
testcase_25 RE -
testcase_26 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
namespace app{
	class MyClass{
		static void Main(){
			var t=new string[]{"I","II","III","IIII","V","VI","VII","VIII","IX","X","XI","XII"};
			var s =Console.ReadLine().Split();
			var now=Array.IndexOf(t,s[0])+1;
			var answer=(now + int.Parse(s[1])%12)%12;
			Console.WriteLine(t[answer-1]);
		}
	}
}
0