結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
tkzw_21
|
| 提出日時 | 2015-01-29 23:25:55 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 544 bytes |
| 記録 | |
| コンパイル時間 | 1,048 ms |
| コンパイル使用メモリ | 173,868 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-03 07:28:12 |
| 合計ジャッジ時間 | 2,237 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
#include <bits/stdc++.h>
#define MOD 1000000007
using namespace std;
typedef pair<int,int> P;
typedef pair<int,pair<int,int>> PP;
typedef long long LL;
const double EPS = 1e-8;
const int INF = 1e9;
int dy[] = {0,1,0,-1};
int dx[] = {1,0,-1,0};
int main(void) {
int a,b,c;
scanf("%d.%d.%d",&a,&b,&c);
int d,e,f;
scanf("%d.%d.%d",&d,&e,&f);
if(a > d){
cout << "YES" << endl;
}else if(a == d && b > e){
cout << "YES" << endl;
}else if(a==d && b==e && c >= f){
cout << "YES" << endl;
}else
cout << "NO" << endl;
return 0;
}
tkzw_21