結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-06 02:33:06 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 490 bytes |
| 記録 | |
| コンパイル時間 | 375 ms |
| コンパイル使用メモリ | 65,784 KB |
| 最終ジャッジ日時 | 2026-01-17 05:48:44 |
| 合計ジャッジ時間 | 995 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp:3:10: 致命的エラー: boost/algorithm/string.hpp: そのようなファイルやディレクトリはありません
3 | #include <boost/algorithm/string.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
コンパイルを停止しました。
ソースコード
#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();
}