結果
問題 | No.138 化石のバージョン |
ユーザー |
|
提出日時 | 2020-02-14 17:59:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 557 bytes |
コンパイル時間 | 1,605 ms |
コンパイル使用メモリ | 165,784 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-06 09:44:28 |
合計ジャッジ時間 | 2,808 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ string s1;cin>>s1; string s2;cin>>s2; string a,b; if(s1[0]>s2[0]){ cout<<"YES"<<endl; } else if(s1[0]==s2[0]){ if(s1[2]>s2[2]){ cout<<"YES"<<endl; } else if(s1[2]==s2[2]){ if(s1[4]>=s2[4]){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } } else{ cout<<"NO"<<endl; } } else{ cout<<"NO"<<endl; } }