結果
問題 |
No.138 化石のバージョン
|
ユーザー |
![]() |
提出日時 | 2025-03-14 10:11:05 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 441 ms |
コンパイル使用メモリ | 27,520 KB |
実行使用メモリ | 7,328 KB |
最終ジャッジ日時 | 2025-03-14 10:11:07 |
合計ジャッジ時間 | 1,936 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 18 WA * 15 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d%d%d%d%d%d",&A1,&A2,&B1,&B2,&C1,&C2); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> #include <string.h> int main(){ int A1,A2,B1,B2,C1,C2; scanf("%d%d%d%d%d%d",&A1,&A2,&B1,&B2,&C1,&C2); if(A2 > A1){ printf("NO"); return 0; if(B2 > B1){ printf("NO"); return 0; if(C2 > C1){ printf("NO"); return 0; }else{ printf("YES"); } }else{ printf("YES"); } }else{ printf("YES"); } }