結果

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

ソースコード

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;

	return (0);
}

0