結果

問題 No.138 化石のバージョン
コンテスト
ユーザー Drafear
提出日時 2016-01-18 17:41:41
言語 C++11
(gcc 15.3.0 + boost 1.92.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 5,000 ms
+ 307µs
コード長 283 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 798 ms
コンパイル使用メモリ 179,008 KB
実行使用メモリ 9,916 KB
最終ジャッジ日時 2026-10-09 08:37:18
合計ジャッジ時間 2,643 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>

using namespace std;

tuple<int, int, int> input() {
	int a, b, c; scanf("%d.%d.%d", &a, &b, &c);
	return make_tuple(a, b, c);
}

int main() {
	tuple<int, int, int> a = input(), b = input();
	if (b <= a) cout << "YES" << endl;
	else cout << "NO" << endl;
}
0