結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
cande398
|
| 提出日時 | 2018-03-28 03:25:39 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 258 bytes |
| 記録 | |
| コンパイル時間 | 285 ms |
| コンパイル使用メモリ | 71,384 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2026-03-11 21:36:59 |
| 合計ジャッジ時間 | 1,162 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
#include <iostream>
using namespace std;
int main(void)
{
int a, b, c, d, e, f;
scanf("%d.%d.%d", &a, &b, &c);
scanf("%d.%d.%d", &d, &e, &f);
if(a*1000000+b*1000+c >= d*1000000+e*1000+f) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
cande398