結果

問題 No.405 ローマ数字の腕時計
ユーザー TaK7907TaK7907
提出日時 2017-10-27 05:26:30
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 318 bytes
コンパイル時間 933 ms
コンパイル使用メモリ 103,424 KB
実行使用メモリ 18,176 KB
最終ジャッジ日時 2024-05-01 15:36:02
合計ジャッジ時間 2,351 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 25 ms
17,920 KB
testcase_03 AC 26 ms
18,048 KB
testcase_04 AC 26 ms
18,048 KB
testcase_05 AC 25 ms
18,048 KB
testcase_06 AC 25 ms
18,176 KB
testcase_07 AC 24 ms
17,920 KB
testcase_08 AC 24 ms
18,048 KB
testcase_09 AC 25 ms
17,792 KB
testcase_10 WA -
testcase_11 AC 26 ms
17,920 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 25 ms
18,048 KB
testcase_15 AC 25 ms
18,048 KB
testcase_16 AC 24 ms
17,792 KB
testcase_17 AC 26 ms
18,048 KB
testcase_18 AC 23 ms
18,176 KB
testcase_19 AC 27 ms
17,792 KB
testcase_20 AC 26 ms
18,048 KB
testcase_21 AC 26 ms
17,792 KB
testcase_22 AC 26 ms
17,920 KB
testcase_23 WA -
testcase_24 AC 25 ms
18,048 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)%13;
			Console.WriteLine(t[answer-1]);
		}
	}
}
0