結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-03-14 10:07:51 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 355 bytes |
| コンパイル時間 | 533 ms |
| コンパイル使用メモリ | 27,392 KB |
| 実行使用メモリ | 7,328 KB |
| 最終ジャッジ日時 | 2025-03-14 10:07:53 |
| 合計ジャッジ時間 | 1,876 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 19 WA * 14 |
コンパイルメッセージ
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(A1 > A2){
printf("YES");
return 0;
if(B1 > B2){
printf("YES");
return 0;
if(C1 > C2){
printf("YES");
return 0;
}else{
printf("NO");
}
}else{
printf("NO");
}
}else{
printf("NO");
}
}
sasa