結果
問題 | No.138 化石のバージョン |
ユーザー |
![]() |
提出日時 | 2019-03-16 00:10:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 260 bytes |
コンパイル時間 | 1,534 ms |
コンパイル使用メモリ | 164,784 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 22:09:16 |
合計ジャッジ時間 | 2,597 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ll = long long;int main(){int a, b, c, d, e, f;scanf("%d.%d.%d%d.%d.%d", &a, &b, &c, &d, &e, &f);cout << (a < d || (a == d && b < e) || (a == d && b == e && c < f) ? "NO" : "YES") << endl;}