結果
| 問題 | No.405 ローマ数字の腕時計 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-10-13 11:36:27 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 290µs | |
| コード長 | 402 bytes |
| 記録 | |
| コンパイル時間 | 357 ms |
| コンパイル使用メモリ | 84,588 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-10 04:29:33 |
| 合計ジャッジ時間 | 1,749 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long int ll;
string st[]={"XII","I","II","III","IIII","V","VI","VII","VIII","IX","X","XI"};
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
string t; cin >> t;
int n; cin >> n;
int now=-1;
for(int i=0;i<12;i++){
if(t==st[i])now=i;
}
now=(now+n+12*100000)%12;
cout << st[now] << endl;
}