結果
問題 | No.138 化石のバージョン |
ユーザー |
![]() |
提出日時 | 2015-07-07 18:45:39 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 103 ms |
コンパイル使用メモリ | 19,968 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-29 13:25:47 |
合計ジャッジ時間 | 1,154 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d.%d.%d", &a,&b,&c); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d.%d.%d", &x,&y,&z); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>int main(void){int l,r;int a, b, c;int x, y, z;scanf("%d.%d.%d", &a,&b,&c);scanf("%d.%d.%d", &x,&y,&z);l = (a*1000*1000) + b*1000 + c;r = (x*1000*1000) + y*1000 + z;if( r <= l){printf("YES\n");}else{printf("NO\n");}return 0;}