結果

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

ソースコード

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) % 12] << endl;
        }
    }
        
    return 0;
}
0