結果
問題 | No.138 化石のバージョン |
ユーザー |
![]() |
提出日時 | 2017-11-27 02:15:55 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 729 bytes |
コンパイル時間 | 816 ms |
コンパイル使用メモリ | 84,316 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-29 14:38:06 |
合計ジャッジ時間 | 2,016 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
#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 << "YES" << endl; } } } return 0; }