結果
問題 |
No.405 ローマ数字の腕時計
|
ユーザー |
|
提出日時 | 2017-10-26 19:40:34 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 318 bytes |
コンパイル時間 | 713 ms |
コンパイル使用メモリ | 102,912 KB |
実行使用メモリ | 18,048 KB |
最終ジャッジ日時 | 2024-11-21 20:07:51 |
合計ジャッジ時間 | 2,055 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 RE * 7 |
コンパイルメッセージ
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)%12; Console.WriteLine(t[answer-1]); } } }