結果

問題 No.405 ローマ数字の腕時計
ユーザー むうすむうす
提出日時 2023-01-08 00:51:46
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 302 bytes
コンパイル時間 1,803 ms
コンパイル使用メモリ 167,560 KB
実行使用メモリ 8,576 KB
最終ジャッジ日時 2024-05-08 19:31:54
合計ジャッジ時間 6,719 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 WA -
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 AC 1 ms
5,376 KB
testcase_07 OLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  string roma[12]={"I","II","III","IIII","V","VI","VII","VIII","IX","X","XI","XII"};
  string S;
  int H;
  cin>>S>>H;
  int i;
  for(i=0;i<12;i++){
      if(roma[i]==S){
          i+=H;
          break;
      }
  }
  cout<<roma[i]<<endl;
}

0