結果
| 問題 |
No.405 ローマ数字の腕時計
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-26 19:41:38 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 318 bytes |
| コンパイル時間 | 774 ms |
| コンパイル使用メモリ | 110,172 KB |
| 実行使用メモリ | 26,156 KB |
| 最終ジャッジ日時 | 2024-11-21 20:07:54 |
| 合計ジャッジ時間 | 2,444 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 11 RE * 9 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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]);
}
}
}