結果

問題 No.138 化石のバージョン
ユーザー kyo1
提出日時 2020-03-31 03:27:33
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 1,535 ms
コンパイル使用メモリ 167,720 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-23 14:26:44
合計ジャッジ時間 2,688 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string S, T;
  cin >> S >> T;
  for (int i = 0; i < (int)S.size(); i += 2) {
    if (S[i] < T[i]) {
      cout << "NO" << '\n';
      return 0;
    }
  }
  cout << "YES" << '\n';
  return 0;
}
0