結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
tenkyu9
|
| 提出日時 | 2017-11-27 02:14:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 728 bytes |
| コンパイル時間 | 1,230 ms |
| コンパイル使用メモリ | 84,188 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 11:56:23 |
| 合計ジャッジ時間 | 1,776 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 4 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<math.h>
#include<iomanip>
#include<stdio.h>
#include<random>
#include<ctime>
#include<cstdlib>
using namespace std;
int main(){
int a[2], b[2], c[2];
char s,t;
for(int i=0; i<2; i++){
cin >> a[i] >> s >> b[i] >> t >> c[i];
}
if(a[0]>a[1]){
cout << "YES" << endl;
} else if(a[0]<a[1]){
cout << "NO" << endl;
} else {
if(b[0]>b[1]){
cout << "YES" << endl;
} else if(b[0]<b[1]){
cout << "NO" << endl;
} else {
if(c[0]>c[1]){
cout << "YES" << endl;
} else if(c[0]<c[1]){
cout << "NO" << endl;
} else {
cout << "NO" << endl;
}
}
}
return 0;
}
tenkyu9