結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-05 05:24:47 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 652 bytes |
| 記録 | |
| コンパイル時間 | 1,027 ms |
| コンパイル使用メモリ | 201,668 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-10-05 17:23:57 |
| 合計ジャッジ時間 | 3,498 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 WA * 5 RE * 6 |
ソースコード
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
int main() {
string S, T; cin >> S >> T;
if(S == T) cout << "YES" << endl;
else{
int s = stoi(S.substr(0,1));
int t = stoi(T.substr(0,1));
if(s != t){
if(s < t) cout << "NO" << endl;
else cout << "YES" << endl;
}else{
s = stoi(S.substr(2,3));
t = stoi(T.substr(2,3));
if(s != t){
if(s < t) cout << "NO" << endl;
else cout << "YES" << endl;
}else{
s = stoi(S.substr(4,5));
t = stoi(T.substr(4,5));
if(s < t) cout << "NO" << endl;
else cout << "YES" << endl;
}
}
}
}