結果
問題 |
No.405 ローマ数字の腕時計
|
ユーザー |
![]() |
提出日時 | 2016-08-06 00:13:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 449 bytes |
コンパイル時間 | 1,780 ms |
コンパイル使用メモリ | 171,796 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-24 04:07:13 |
合計ジャッジ時間 | 2,737 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 WA * 1 |
ソースコード
#include <bits/stdc++.h> #define REP(i,n) for(int i=0; i<(n); i++) using namespace std; struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star; int main() { string S; int T; cin >> S >> T; vector<string> vc{"XII","I","II","III","IIII","V","VI","VII","VIII","IX","X","XI"}; int res{}; REP( i, 12 ) { if( S == vc[i] ) { res = i; } } int j = (res+T)%12; cout << ( j == 0 || T > -1 ? vc[j] : vc[12+(j)] ) << endl; return 0; }