結果
問題 |
No.138 化石のバージョン
|
ユーザー |
|
提出日時 | 2020-01-06 05:49:34 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 16 ms / 5,000 ms |
コード長 | 370 bytes |
コンパイル時間 | 557 ms |
コンパイル使用メモリ | 72,208 KB |
最終ジャッジ日時 | 2025-01-08 16:25:58 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int x,y,z,a,b; char c; cin >> x >> c >> y >> c >> z; a=10001*x+101*y+z; cin >> x >> c >> y >> c >> z; b=10001*x+101*y+z; if(a>=b){ cout << "YES" << endl; } else{ cout << "NO" << endl; } }