結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
Kaz_nl
|
| 提出日時 | 2017-08-20 18:37:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 344 bytes |
| コンパイル時間 | 671 ms |
| コンパイル使用メモリ | 53,856 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-29 14:30:46 |
| 合計ジャッジ時間 | 1,548 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
#include <iostream>
using namespace std;
int main() {
int A, B, C, a, b, c;
char d;
bool f = true;
cin >> A >> d >> B >> d >> C;
cin >> a >> d >> b >> d >> c;
if (A < a) f = false;
else if (A == a && B < b) f = false;
else if (A == a && B == b && C < c) f = false;
if (f) cout << "YES" << endl;
else cout << "NO" << endl;
}
Kaz_nl