結果
問題 | No.138 化石のバージョン |
ユーザー |
|
提出日時 | 2020-02-14 18:06:01 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 549 bytes |
コンパイル時間 | 1,402 ms |
コンパイル使用メモリ | 166,264 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-06 09:44:36 |
合計ジャッジ時間 | 2,534 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int a1,b1,c1,a2,b2,c2; char c; cin>>a1>>c>>b1>>c>>c1>>a2>>c>>b2>>c>>c2; if(a1>a2){ cout<<"YES"<<endl; } else if(a1==a2){ if(b1>b2){ cout<<"YES"<<endl; } else if(b1==b2){ if(c1>=c2){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } } else{ cout<<"NO"<<endl; } } else{ cout<<"NO"<<endl; } }