結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-07-23 07:10:18 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 491 bytes |
| コンパイル時間 | 3,010 ms |
| コンパイル使用メモリ | 198,064 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-07-23 07:10:24 |
| 合計ジャッジ時間 | 4,164 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
auto f = [&](string s) -> vector<int> {
s += '.';
vector<int> ret;
int v = 0;
for(auto c : s){
if(c == '.') ret.push_back(v),v = 0;
else v *= 10,v += c-'0';
}
return ret;
};
string s; cin >> s;
string t; cin >> t;
if(f(t) <= f(s)) cout << "YES\n";
else cout << "NO\n";
}