結果
問題 |
No.405 ローマ数字の腕時計
|
ユーザー |
|
提出日時 | 2022-06-01 16:54:18 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 249 bytes |
コンパイル時間 | 730 ms |
コンパイル使用メモリ | 88,564 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 19:35:08 |
合計ジャッジ時間 | 1,494 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 |
ソースコード
#include<iostream> #include<algorithm> using namespace std; int main(){ const string arr[]={"I","II","III","IIII","V","VI","VII","VIII","IX","X","XI","XII"}; string s1; int t; cin>>s1>>t; cout<<arr[(find(arr,arr+12,s1)-arr+t%12+12)%12]<<endl; }