結果
問題 | No.138 化石のバージョン |
ユーザー |
![]() |
提出日時 | 2022-11-20 22:05:02 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 389 bytes |
コンパイル時間 | 5,281 ms |
コンパイル使用メモリ | 279,104 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-21 19:10:21 |
合計ジャッジ時間 | 6,452 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 18 WA * 15 |
ソースコード
#include <bits/stdc++.h> using namespace std; #include <algorithm> #include <stdio.h> #include <string> #include <stdio.h> int main(){ string a, b; cin >> a >> b; string str1 = regex_replace(a,regex("."),"a"); string str2 = regex_replace(b,regex("."),"a"); int c = atoi(str1.c_str()); int d = atoi(str2.c_str()); if(c<d) cout << "NO"; else cout << "YES"; return 0; }