結果

問題 No.138 化石のバージョン
ユーザー tsukacchan
提出日時 2016-03-28 16:29:18
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 215 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 20,096 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-02 06:31:13
合計ジャッジ時間 1,115 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23 WA * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:8:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 | scanf("%d.%d.%d",&A0,&B0,&C0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:9:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 | scanf("%d.%d.%d",&A1,&B1,&C1);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>

int main(void){

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

scanf("%d.%d.%d",&A0,&B0,&C0);
scanf("%d.%d.%d",&A1,&B1,&C1);

if(A0>=A1 && B0>=B1 && B0>=B1)
printf("YES");

else
printf("NO");

return 0;

}
0