結果
問題 | No.138 化石のバージョン |
ユーザー |
![]() |
提出日時 | 2017-10-16 20:49:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 770 bytes |
コンパイル時間 | 660 ms |
コンパイル使用メモリ | 76,304 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-17 21:14:42 |
合計ジャッジ時間 | 1,798 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 8 |
ソースコード
#include<iostream> #include<string> #include<string.h> #include<algorithm> #include<stdio.h> #include<cmath> #include<vector> #include<utility> #include<stack> #include<queue> #include<list> #define FOR(i, a, b) for(int i=(a);i<=(b);i++) #define RFOR(i, a, b) for(int i=(a);i>=(b);i--) #define MOD 1000000007 #define INF 1000000000 using namespace std; int main(void) { char s[6]; char t[6]; cin >> s >> t; if (t[0] < s[0]) { cout << "YES" << endl; } else if (t[0] > s[0]) { cout << "NO" << endl; } else { if (t[2] < s[2]) { cout << "YES" << endl; } else if (t[2] > s[2]) { cout << "NO" << endl; } else { if (t[4] <= s[4]) { cout << "YES" << endl; } else if (t[4] > s[4]) { cout << "NO" << endl; } } } return 0; }