結果

問題 No.138 化石のバージョン
ユーザー test
提出日時 2020-09-06 02:49:59
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 300 bytes
コンパイル時間 1,643 ms
コンパイル使用メモリ 168,196 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-29 06:29:08
合計ジャッジ時間 2,692 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);

  vector<int> a(3), b(3);
  scanf("%d.%d.%d", &a[0], &a[1], &a[2]);
  scanf("%d.%d.%d", &b[0], &b[1], &b[2]);
  string ans = "YES";
  if (a < b) ans = "NO";
  cout << ans << endl;
  getchar();
}
0