結果
問題 |
No.138 化石のバージョン
|
ユーザー |
![]() |
提出日時 | 2020-07-28 21:55:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 588 bytes |
コンパイル時間 | 670 ms |
コンパイル使用メモリ | 92,416 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-28 20:59:07 |
合計ジャッジ時間 | 1,872 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 8 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <cmath> #include <iomanip> #include <stack> #include <algorithm> #include <string> #include <map> #include <iterator> #include <set> #include <queue> using namespace std; int asInt(string s) { int result = 0; result += s[4] - '0'; result += (s[2] - '0') * 10; result += (s[0] - '0') * 100; return result; } int main() { string s1, s2; cin >> s1 >> s2; if (asInt(s1) >= asInt(s2)) { cout << "YES" << endl; } else { cout << "NO" << endl; }; return 0; }