結果

問題 No.138 化石のバージョン
ユーザー ふう
提出日時 2015-01-29 23:27:20
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 639 bytes
コンパイル時間 655 ms
コンパイル使用メモリ 82,008 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-23 04:07:32
合計ジャッジ時間 1,368 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <iostream>
#include <map>
#include <list>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <queue>
#include <iomanip>
#define INF 1050000000
#define SIZE 300
#define MOD 1000000007

using namespace std;


int main()
{
	string s1, s2;

	cin >> s1 >> s2;
	int a, b;

	a = (s1[0] - '0') * 100 + (s1[2] - '0') * 10 + (s1[4] - '0') * 1;
	b = (s2[0] - '0') * 100 + (s2[2] - '0') * 10 + (s2[4] - '0') * 1;
	
	if (a >= b) cout << "YES" << endl;
	else cout << "NO" << endl;

	return (0);
}

0