結果
問題 |
No.138 化石のバージョン
|
ユーザー |
|
提出日時 | 2020-09-06 02:30:24 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 488 bytes |
コンパイル時間 | 7,141 ms |
コンパイル使用メモリ | 230,624 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-29 06:28:41 |
合計ジャッジ時間 | 8,228 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 WA * 1 |
ソースコード
#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]) * 10000 + stoi(v[1]) * 100 + 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(); }