結果

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

ソースコード

diff #
プレゼンテーションモードにする

//inlcludedefine
#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] ;
if (a[0] == a[1] && b[0] == b[1] && c[0] == c[1]) {
cout << "YES" << endl;
return 0;
}
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;
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0