結果

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

ソースコード

diff #

#include <iostream>

int main(){
	int p[2];
	for (int i = 0; i < 2; ++i){
		int a, b, c;
		char ch;
		std::cin >> a >> ch >> b >> ch >> c;
		p[i] = c + b * 10 + a * 100;
	}
	if (p[1] <= p[0])std::cout << "YES" << std::endl;
	else std::cout << "NO" << std::endl;
	return 0;
}
0