結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-01-29 23:24:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 518 bytes |
| コンパイル時間 | 1,689 ms |
| コンパイル使用メモリ | 158,872 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-29 12:51:06 |
| 合計ジャッジ時間 | 2,733 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> VI;
typedef vector<VI> VVI;
#define REP(i, n) for(int(i)=0;(i)<(n);++(i))
#define FOR(i, f, t) for(int(i)=(f);(i)<(t);(++i))
const int MOD = int(1e9+7);
int N,M,W,H;
int res = 0;
int main(){
int a,b,c,d,e,f; char p;
cin >> a >> p >> b >> p >> c;
cin >> d >> p >> e >> p >> f;
int k1 = a*101*101+b*101+c;
int k2 = d*101*101+e*101+f;
cout << (k1>=k2?"YES":"NO") << endl;
return 0;
}