結果

問題 No.138 化石のバージョン
コンテスト
ユーザー KKT89
提出日時 2020-01-06 05:49:34
言語 C++17
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -fplugin=/usr/lib/yukicoder/noavx512-gcc15.so -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 5,000 ms
+ 870µs
コード長 370 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 434 ms
コンパイル使用メモリ 90,772 KB
実行使用メモリ 9,860 KB
最終ジャッジ日時 2026-10-25 04:13:08
合計ジャッジ時間 3,225 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge7_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 32
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long int ll;
 
int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	int x,y,z,a,b; char c;
	cin >> x >> c >> y >> c >> z;
	a=10001*x+101*y+z;
	cin >> x >> c >> y >> c >> z;
	b=10001*x+101*y+z;
	if(a>=b){
		cout << "YES" << endl; 
	}
	else{
		cout << "NO" << endl;
	}
}
0