結果

問題 No.138 化石のバージョン
ユーザー tsukacchantsukacchan
提出日時 2016-03-28 15:52:36
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 374 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 19,840 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-10 04:52:28
合計ジャッジ時間 1,229 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 1 ms
6,940 KB
testcase_04 AC 1 ms
6,940 KB
testcase_05 AC 0 ms
6,940 KB
testcase_06 AC 0 ms
6,944 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 1 ms
6,940 KB
testcase_10 AC 1 ms
6,944 KB
testcase_11 AC 1 ms
6,940 KB
testcase_12 AC 0 ms
6,944 KB
testcase_13 WA -
testcase_14 AC 1 ms
6,940 KB
testcase_15 AC 1 ms
6,940 KB
testcase_16 AC 0 ms
6,940 KB
testcase_17 AC 1 ms
6,944 KB
testcase_18 AC 0 ms
6,940 KB
testcase_19 AC 0 ms
6,940 KB
testcase_20 WA -
testcase_21 AC 1 ms
6,940 KB
testcase_22 AC 1 ms
6,944 KB
testcase_23 AC 1 ms
6,940 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 1 ms
6,940 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 0 ms
6,940 KB
testcase_32 WA -
testcase_33 AC 0 ms
6,944 KB
testcase_34 AC 0 ms
6,944 KB
testcase_35 AC 1 ms
6,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

int main(void){

int A0,B0,C0,A1,B1,C1;
int dummy=0;
int ver1,ver2;

A0=getchar();
dummy=getchar();
B0=getchar();
dummy=getchar();
C0=getchar();
dummy=getchar();

A1=getchar();
dummy=getchar();
B1=getchar();
dummy=getchar();
C1=getchar();

ver1=100*A0 + 10*B0 + C0;
ver2=100*A1 + 10*B1 + C1;

if(ver1>=ver2)
printf("YES");
else
printf("NO");

return 0;

}
0