結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
Bantako
|
| 提出日時 | 2017-06-27 16:21:58 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 320 bytes |
| 記録 | |
| コンパイル時間 | 181 ms |
| コンパイル使用メモリ | 37,888 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-20 07:46:51 |
| 合計ジャッジ時間 | 1,741 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 18 WA * 15 |
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | main(){
| ^~~~
ソースコード
#include<stdio.h>
main(){
int A[3],B[3];
scanf("%d %d %d",&A[0],&A[1],&A[2]);
scanf("%d %d %d",&B[0],&B[1],&B[2]);
for(int i = 0;i < 3;i++){
if(A[i] > B[i]){
printf("YES\n");
return 0;
}else if(A[i] < B[i]){
break;
}
}
printf("NO\n");
}
Bantako