結果
問題 |
No.138 化石のバージョン
|
ユーザー |
|
提出日時 | 2018-02-26 22:06:44 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 263 bytes |
コンパイル時間 | 3,446 ms |
コンパイル使用メモリ | 99,200 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 11:55:03 |
合計ジャッジ時間 | 2,324 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
#include <stdio.h> int main() { int a, b, c, d, e, f; scanf("%d.%d.%d%d.%d.%d", &a, &b, &c, &d, &e, &f); if(a < d || ((a == d) && (b < e)) || (((a == d) && (b == e)) && (c < f))) { printf("%s\n", "NO"); return 0; } printf("%s\n", "YES"); return 0; }