結果

問題 No.405 ローマ数字の腕時計
ユーザー aaaaaaiu
提出日時 2019-07-27 19:19:08
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 353 bytes
コンパイル時間 2,273 ms
コンパイル使用メモリ 202,468 KB
最終ジャッジ日時 2025-01-07 09:39:38
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 18 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    string itor[12] = { "I","II","III","IIII","V","VI","VII","VIII","IX","X","XI","XII" };
    map<string, int> rtoi;
    for (int i = 0; i < 12; i++) rtoi[itor[i]] = i;
    string s; int t;
    cin >> s >> t;
    cout << itor[(rtoi[s] + t) % 12] << endl;
    return 0;
}
0