結果
問題 |
No.138 化石のバージョン
|
ユーザー |
![]() |
提出日時 | 2017-12-07 16:25:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 573 bytes |
コンパイル時間 | 875 ms |
コンパイル使用メモリ | 81,996 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-29 14:39:38 |
合計ジャッジ時間 | 2,258 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <iomanip> #include <cmath> #include <functional> using namespace std; #define diff(x,y) ((x > y) ? (x - y) : (y - x)) #define us(x) (x > 0) ? x : x * -1 #define lli long long int int main() { int x1, x2, x3; int kaseki, now; char sute; cin >> x1 >> sute >> x2 >> sute >> x3; kaseki = x1 * 1000000 + x2 * 1000 + x3; cin >> x1 >> sute >> x2 >> sute >> x3; now = x1 * 1000000 + x2 * 1000 + x3; if (kaseki >= now) cout << "YES" << endl; else cout << "NO" << endl; return 0; }