結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-06 02:33:06 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 490 bytes |
| コンパイル時間 | 2,710 ms |
| コンパイル使用メモリ | 232,492 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-29 06:28:49 |
| 合計ジャッジ時間 | 3,819 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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();
}