結果
問題 | No.138 化石のバージョン |
ユーザー |
![]() |
提出日時 | 2017-07-11 22:57:27 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 211 bytes |
コンパイル時間 | 233 ms |
コンパイル使用メモリ | 22,016 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-29 14:25:53 |
合計ジャッジ時間 | 1,247 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 2 | main(){ | ^~~~ main.cpp: In function ‘int main()’: main.cpp:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d.%d.%d",&A,&B,&C); | ~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d.%d.%d",&A,&B,&C); | ~~~~~^~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>main(){int A,B,C;int f,s;scanf("%d.%d.%d",&A,&B,&C);f = A*1000000+B*1000+C;scanf("%d.%d.%d",&A,&B,&C);s = A*1000000+B*1000+C;printf("%s\n",f<s?"NO":"YES");}