結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-27 15:29:44 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 445 bytes |
| コンパイル時間 | 3,100 ms |
| コンパイル使用メモリ | 163,352 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-15 19:52:01 |
| 合計ジャッジ時間 | 3,162 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
string s,t,tmp;
cin>>s>>t;
istringstream ss(s),st(t);
vector<int> a,b;
while(getline(ss,tmp,'.')){
a.emplace_back(stoi(tmp));
}
while(getline(st,tmp,'.')){
b.emplace_back(stoi(tmp));
}
int asum=0,bsum=0;
for(int i=0;i<3;++i){
asum+=a[i]*pow(101,2-i);
bsum+=b[i]*pow(101,2-i);
}
puts(asum>=bsum?"YES":"NO");
}