結果

問題 No.138 化石のバージョン
ユーザー stack9996
提出日時 2015-08-25 17:18:49
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 355 bytes
コンパイル時間 468 ms
コンパイル使用メモリ 54,008 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-29 13:30:57
合計ジャッジ時間 1,541 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

int main(){
	int a[2], b[2], c[2];
	char ch;
	for (int i = 0; i < 2; ++i)std::cin >> a[i] >> ch >> b[i] >> ch >> c[i];
	bool f;
	if (a[0] == a[1]){
		if (b[0] == b[1])f = (c[0] >= c[1]);
		else f = (b[0] >= b[1]);
	}
	else f = (a[0] >= a[1]);

	if (f)std::cout << "YES" << std::endl;
	else std::cout << "NO" << std::endl;
	return 0;
}
0