結果

問題 No.138 化石のバージョン
ユーザー Kurichan0806
提出日時 2017-12-07 16:19:00
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 575 bytes
コンパイル時間 611 ms
コンパイル使用メモリ 82,036 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-29 05:05:09
合計ジャッジ時間 1,644 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 22 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <iomanip>
#include <cmath>
#include <functional>
using namespace std;
#define diff(x,y) ((x > y) ? (x - y) : (y - x))
#define us(x) (x > 0) ? x : x * -1
#define lli long long int

int main() {
	int x1, x2, x3;
	int kaseki, now;
	char sute;
	cin >> x1 >> sute >> x2 >> sute >> x3;
	kaseki = x1 * 100 + x2 * 100 + x3 * 100;
	cin >> x1 >> sute >> x2 >> sute >> x3;
	now = x1 * 100 + x2 * 100 + x3 * 100;

	if (kaseki >= now)	cout << "YES" << endl;
	else				cout << "NO" << endl;

	return 0;
}
0