結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-01-29 23:26:42 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 397 bytes |
| 記録 | |
| コンパイル時間 | 312 ms |
| コンパイル使用メモリ | 74,752 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-27 14:51:07 |
| 合計ジャッジ時間 | 2,136 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 WA * 18 |
ソースコード
#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <utility>
using namespace std;
int main() {
int a, b, c, d, e, f;
scanf("%d.%d.%d", &a, &b, &c);
scanf("%d.%d.%d", &d, &e, &f);
bool ret = true;
if (a < d) {
ret = false;
} else if (b < e) {
ret = false;
} else if (c <= f) {
ret = false;
}
cout << (ret ? "YES" : "NO") << endl;
return 0;
}