結果

問題 No.138 化石のバージョン
ユーザー legosuke
提出日時 2017-10-09 02:23:39
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 281 bytes
コンパイル時間 1,146 ms
コンパイル使用メモリ 157,780 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-17 05:52:24
合計ジャッジ時間 2,019 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main(void) {
  int s[2];
  for (int i = 0; i < 2; i++) {
    int a, b, c;
    char ch;
    cin >> a >> ch >> b >> ch >> c;
    s[i] = a * 1000000 + b * 1000 + c;
  }

  cout << (s[1] < s[0] ? "YES" : "NO") << endl;

  return 0;
}
0