結果

問題 No.138 化石のバージョン
コンテスト
ユーザー hiyokko2
提出日時 2015-01-29 23:28:12
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 1,017 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 794 ms
コンパイル使用メモリ 103,136 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-06-03 07:28:23
合計ジャッジ時間 2,437 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>
#include <cstdio>
#include <cstring>
#include <sstream>
#include <algorithm>
#include <math.h>
#include <map>
#include <functional>
#include <iomanip>
#include <vector>
#include <queue>
#include <set>
#include <typeinfo>
#define PI 3.14159265359
#define INF 99999999;
#define rep(i, n) for(int i=0; i<n; i++)
#define REP(n) rep(i, n)
#define EPS 1e-10
typedef long long ll;
using namespace std;
typedef pair<int, int> P;

double distanceAB(double xa, double ya, double xb, double yb);

/*
class Target
{
public:
	vector <string> draw(int n)
	{

	}
};
*/



int main()
{
	int A0, B0, C0, A1, B1, C1, kaseki_ver, ver;
	
	scanf("%d.%d.%d", &A0, &B0, &C0);
	scanf("%d.%d.%d", &A1, &B1, &C1);
	
	kaseki_ver = 1000000 * A0 + 1000 * B0 + C0;
	ver = 1000000 * A1 + 1000 * B1 + C1;
	
	if (ver <= kaseki_ver)
	{
		cout << "YES" << endl;
	} else {
		cout << "NO" << endl;
	}
	
	return 0;
}



double distanceAB(double xa, double ya, double xb, double yb)
{
	return sqrt((xb-xa)*(xb-xa) + (yb-ya)*(yb-ya));
}
0