結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 RE -
testcase_03 AC 25 ms
23,972 KB
testcase_04 AC 25 ms
23,912 KB
testcase_05 AC 26 ms
26,132 KB
testcase_06 AC 25 ms
23,788 KB
testcase_07 WA -
testcase_08 AC 25 ms
24,244 KB
testcase_09 WA -
testcase_10 RE -
testcase_11 AC 26 ms
26,016 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 WA -
testcase_16 RE -
testcase_17 RE -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 RE -
testcase_23 WA -
testcase_24 AC 26 ms
24,240 KB
testcase_25 RE -
testcase_26 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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])%13)%13;
			Console.WriteLine(t[answer-1]);
		}
	}
}
0