結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
Kurichan0806
|
| 提出日時 | 2017-12-07 16:20:11 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 561 bytes |
| コンパイル時間 | 700 ms |
| コンパイル使用メモリ | 82,108 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-29 05:05:11 |
| 合計ジャッジ時間 | 1,516 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 WA * 3 |
ソースコード
#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 * 100 + x2 * 10 + x3;
cin >> x1 >> sute >> x2 >> sute >> x3;
now = x1 * 100 + x2 * 10 + x3;
if (kaseki >= now) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}
Kurichan0806