結果

問題 No.405 ローマ数字の腕時計
ユーザー arrows
提出日時 2017-01-20 20:06:40
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 380 bytes
コンパイル時間 570 ms
コンパイル使用メモリ 66,164 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-24 04:18:03
合計ジャッジ時間 1,471 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

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