結果

問題 No.138 化石のバージョン
コンテスト
ユーザー Kurichan0806
提出日時 2017-12-07 16:19:00
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 575 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 651 ms
コンパイル使用メモリ 97,760 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2026-05-23 02:06:13
合計ジャッジ時間 2,136 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 22 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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