結果

問題 No.138 化石のバージョン
ユーザー RCCWRCCW
提出日時 2017-02-04 20:26:18
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 384 bytes
コンパイル時間 1,499 ms
コンパイル使用メモリ 159,452 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-29 14:16:47
合計ジャッジ時間 2,294 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

long long a,minv=1000003;
int main(void){

	int a,b,c;
	char d ,e;
	int aa,bb,cc;
	char dd,ee;

	cin>>a>>d>>b>>e>>c;
	cin>>aa>>dd>>bb>>ee>>cc;

	if(a>aa){
		cout<<"YES"<<endl;
		return 0;
	}else if(a>=aa&&b>bb){
		cout<<"YES"<<endl;
			return 0;
	}else if(a>=aa&&b>=bb&&c>=cc){
		cout<<"YES"<<endl;
			return 0;
	}
	cout<<"NO"<<endl;

}
0