結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-06 02:33:06 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| + 403µs | |
| コード長 | 490 bytes |
| 記録 | |
| コンパイル時間 | 3,119 ms |
| コンパイル使用メモリ | 279,676 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-20 11:28:56 |
| 合計ジャッジ時間 | 5,009 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
#include <bits/stdc++.h>
#include <boost/algorithm/string.hpp>
#define rep(i, ss, ee) for (int i = ss; i < ee; ++i)
using namespace std;
int func(const string &str) {
vector<string> v;
boost::split(v, str, boost::is_any_of("."));
return stoi(v[0]) * 100000 + stoi(v[1]) * 1000 + stoi(v[2]);
}
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string a, b;
cin >> a >> b;
string ans = "YES";
if (func(a) < func(b)) ans = "NO";
cout << ans << endl;
getchar();
}