結果
問題 |
No.405 ローマ数字の腕時計
|
ユーザー |
![]() |
提出日時 | 2019-12-10 22:54:33 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 1,172 ms |
コンパイル使用メモリ | 28,416 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 19:25:37 |
合計ジャッジ時間 | 842 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 |
ソースコード
#include <stdio.h> #include <string.h> int main(void) { char w[12][5]={"I","II","III","IIII","V","VI","VII","VIII","IX","X","XI","XII"}, s1[5]; int T; scanf("%s %d", s1, &T); for (int i=0; i<12; i++) { if (strcmp(w[i], s1)==0) { printf("%s\n", w[(1008+i+T)%12]); return 0; } } }