結果

問題 No.138 化石のバージョン
ユーザー Eclair1015Eclair1015
提出日時 2018-08-23 00:36:34
言語 C++11
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 764 bytes
コンパイル時間 1,087 ms
コンパイル使用メモリ 67,040 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-25 23:49:07
合計ジャッジ時間 1,981 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

//inlclude前用define 
#define _USE_MATH_DEFINES

//include
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>

using namespace std;
//typedef
typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<char> VC;

int main() {
	VI a(2), b(2), c(2);
	VC ac(2), bc(2);
	cin >> a[0] >> ac[0] >> b[0] >> bc[0] >> c[0] ;
	cin >> a[1] >> ac[1] >> b[1] >> bc[1] >> c[1] ;
	
	bool flag = false;

	if (a[0] > a[1]) {
		cout << "YES" << endl;
	}else if (a[0] == a[1]) {
		if (b[0] > b[1]) {
			cout << "YES" << endl;
		}else if (b[0] == b[1]) {
			if (c[0] > c[1]) {
				cout << "YES" << endl;
			} else {
				cout << "NO" << endl;
			}
		}else {
			cout << "NO" << endl;
		}
		
	}else {
		cout << "NO" << endl;
	}

	return 0;
}
0