結果
| 問題 | No.405 ローマ数字の腕時計 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-28 13:12:40 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 341 bytes |
| 記録 | |
| コンパイル時間 | 634 ms |
| コンパイル使用メモリ | 65,536 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-02 15:00:32 |
| 合計ジャッジ時間 | 1,519 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 WA * 4 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main() {
string a[] = { "XII","I","II","III","IIII","V","VI","VII","VIII","IX","X","XI" };
string s;
int t;
cin >> s >> t;
t %= 12;
for (int i = 1; i <= 12; i++) {
if (a[i] == s) {
cout << a[(i + t + 12) % 12] << endl;
break;
}
}
return 0;
}