結果

問題 No.138 化石のバージョン
ユーザー なお
提出日時 2015-01-29 23:23:16
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 517 bytes
コンパイル時間 1,358 ms
コンパイル使用メモリ 159,384 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 04:05:36
合計ジャッジ時間 2,253 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0