結果
| 問題 |
No.405 ローマ数字の腕時計
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-27 05:26:30 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 318 bytes |
| コンパイル時間 | 793 ms |
| コンパイル使用メモリ | 103,040 KB |
| 実行使用メモリ | 17,920 KB |
| 最終ジャッジ日時 | 2024-11-21 20:38:09 |
| 合計ジャッジ時間 | 2,197 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 WA * 2 RE * 6 |
コンパイルメッセージ
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])%12)%13;
Console.WriteLine(t[answer-1]);
}
}
}