結果
問題 |
No.138 化石のバージョン
|
ユーザー |
|
提出日時 | 2024-04-02 19:02:13 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 564 bytes |
コンパイル時間 | 570 ms |
コンパイル使用メモリ | 66,292 KB |
最終ジャッジ日時 | 2025-02-20 19:41:31 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
#include <iostream> using namespace std; #define ll long long int main(){ int n, m, k, l,s,h; char a, b, c ,d; cin >> n >> a >> m >> b >> k >> l >> c >> s >> d >> h; if(n > l){ cout << "YES" << endl; } else if(n == l){ if(m > s){ cout << "YES" << endl; } else if(m == s){ if(k >= h){ cout << "YES" << endl; } else cout << "NO" << endl; } else cout << "NO" << endl; } else cout << "NO" << endl; return 0; }