結果

問題 No.138 化石のバージョン
ユーザー kekenx
提出日時 2020-03-05 23:18:07
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 362 bytes
コンパイル時間 1,407 ms
コンパイル使用メモリ 165,652 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-14 02:28:58
合計ジャッジ時間 2,392 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
  string one, two;
  cin >> one >> two;
  int a = one[0] - '0', b = one[2] - '0', c = one[4] - '0';
  int aa = two[0] - '0', bb = two[2] - '0', cc = two[4] - '0';
  if (aa < a || (aa <= a && bb < b) || (aa <= a && bb <= b && cc < c)) puts("YES");
  else puts("NO");
  return 0;
}
0