結果
問題 | No.138 化石のバージョン |
ユーザー |
![]() |
提出日時 | 2020-01-18 19:40:33 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 246 bytes |
コンパイル時間 | 1,437 ms |
コンパイル使用メモリ | 164,804 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 01:51:47 |
合計ジャッジ時間 | 2,491 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
#include <bits/stdc++.h> 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); cout << ((a * 1000000 + b * 1000 + c >= d * 1000000 + e * 1000 + f) ? "YES" : "NO") << "\n"; }