結果

問題 No.138 化石のバージョン
ユーザー mmn15277198
提出日時 2020-06-15 19:18:44
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 630 bytes
コンパイル時間 791 ms
コンパイル使用メモリ 92,868 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-03 11:30:01
合計ジャッジ時間 1,734 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<stdio.h>
#include<algorithm>
#include<vector>
#include<string.h>
#include<math.h>
#include<map>
#include<iomanip>
#include<queue>

const long long INF = 1e6+7;
const long long MOD = 1e9+7;
const double PI=acos(-1);

using namespace std;

int main(){
	string s,t;
	cin >> s >> t;
	int a=0;
	for(int i=0;i<s.size();i++){
		if('0'<=s[i] && s[i]<='9'){
			a+=(int)(s[i]-'0');
			a*=10;
		}
	}
	a/=10;
	
	int b=0;
	for(int i=0;i<t.size();i++){
		if('0'<=t[i] && t[i]<='9'){
			b+=(int)(t[i]-'0');
			b*=10;
		}
	}
	b/=10;
	if(a>b){
		cout << "YES" << endl;
	}else{
		cout << "NO" << endl;
	}
	
	return 0;
}
0