結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-23 18:02:23 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 352 bytes |
| コンパイル時間 | 1,447 ms |
| コンパイル使用メモリ | 166,156 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-25 10:34:22 |
| 合計ジャッジ時間 | 2,707 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
string s, t;
cin >> s >> t;
int a = 0, b = 0;
for(int i = 0; i < s.size(); i += 2){
a += (s[i] - '0') * pow(10, 2 - i / 2);
b += (t[i] - '0') * pow(10 ,2 - i / 2);
}
if(b > a) puts("NO");
else puts("YES");
return 0;
}