結果

問題 No.405 ローマ数字の腕時計
ユーザー fuzuirfuzuir
提出日時 2016-10-13 21:51:32
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 470 bytes
コンパイル時間 2,639 ms
コンパイル使用メモリ 100,384 KB
実行使用メモリ 23,880 KB
最終ジャッジ日時 2023-09-21 00:21:53
合計ジャッジ時間 5,360 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
21,516 KB
testcase_01 AC 59 ms
21,704 KB
testcase_02 AC 57 ms
21,776 KB
testcase_03 AC 59 ms
23,880 KB
testcase_04 AC 57 ms
21,760 KB
testcase_05 AC 59 ms
23,740 KB
testcase_06 AC 58 ms
23,668 KB
testcase_07 AC 58 ms
21,668 KB
testcase_08 AC 58 ms
21,792 KB
testcase_09 AC 58 ms
21,696 KB
testcase_10 AC 58 ms
19,648 KB
testcase_11 AC 58 ms
21,692 KB
testcase_12 AC 58 ms
19,520 KB
testcase_13 AC 58 ms
23,696 KB
testcase_14 AC 58 ms
21,868 KB
testcase_15 AC 59 ms
23,728 KB
testcase_16 AC 58 ms
21,612 KB
testcase_17 AC 58 ms
21,844 KB
testcase_18 AC 58 ms
23,724 KB
testcase_19 AC 57 ms
23,720 KB
testcase_20 AC 58 ms
21,616 KB
testcase_21 AC 58 ms
21,616 KB
testcase_22 AC 59 ms
21,620 KB
testcase_23 AC 60 ms
21,620 KB
testcase_24 AC 60 ms
23,560 KB
testcase_25 AC 59 ms
21,572 KB
testcase_26 AC 59 ms
21,680 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.Collections;
using System.Linq;

class Program
{
	static void Main()
	{
		string[] numstyle = { "XII", "I", "II", "III", "IIII", "V", "VI", "VII", "VIII", "IX", "X", "XI" };

		string[] xs = Console.ReadLine().Split(' ').ToArray();
		int t = int.Parse(xs[1]);

		int nowt = 0;
		for (int i = 0; i < 12; i++)
		{
			if (xs[0] == numstyle[i])
			{
				nowt = i;
			}
		}
		nowt = (nowt + t + 1200) % 12;
		Console.WriteLine(numstyle[nowt]);
	}
}
0