結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-23 13:40:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 461 bytes |
| コンパイル時間 | 1,548 ms |
| コンパイル使用メモリ | 169,508 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-07 23:56:42 |
| 合計ジャッジ時間 | 2,637 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 WA * 10 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); i++)
using namespace std;
typedef long long ll;
int main(){
string s1,s2; cin>>s1>>s2;
rep(i,3){
int n1=s1.find(".");
int n2=s2.find(".");
string f1=s1.substr(0,n1);
string f2=s2.substr(0,n2);
s1.replace(0,n1+1,"");
s2.replace(0,n2+1,"");
if(f1>f2){
cout << "YES" << endl;
return 0;
} else if(f1<f2){
cout << "NO" << endl;
return 0;
}
}
cout << "NO" << endl;
}