結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
zaichu
|
| 提出日時 | 2015-12-22 21:54:14 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 678 bytes |
| 記録 | |
| コンパイル時間 | 1,080 ms |
| コンパイル使用メモリ | 179,112 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-06 18:55:16 |
| 合計ジャッジ時間 | 1,963 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
string data1,data2;
cin >> data1 >> data2;
string tmp = "";
vector<int> x;
vector<int> y;
for(int i = 0; i < data1.size(); i++){
if(data1[i] != '.') tmp += data1[i];
else{
x.push_back(stoi(tmp));
tmp = "";
}
}
x.push_back(stoi(tmp));
tmp = "";
for(int i = 0; i < data2.size(); i++){
if(data2[i] != '.') tmp += data2[i];
else{
y.push_back(stoi(tmp));
tmp = "";
}
}
y.push_back(stoi(tmp));
for(int i = 0; i < 3; i++){
if(x[i] > y[i]){
cout << "YES" << endl;
return 0;
}else if(x[i] < y[i]){
cout << "NO" << endl;
return 0;
}
}
cout << "NO" << endl;
return 0;
}
zaichu