結果

問題 No.138 化石のバージョン
ユーザー kpinkcat
提出日時 2023-08-03 15:45:04
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 564 bytes
コンパイル時間 785 ms
コンパイル使用メモリ 103,752 KB
最終ジャッジ日時 2025-02-15 21:49:07
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<algorithm>
#include<cctype>
#include<set>
#include<bitset>
#include<math.h>
#include<map>
#include<queue>
#include<iomanip>
using namespace std;

int main(){
    int a0, b0, c0, a1, b1, c1;
    char c;
    cin >> a0 >> c >> b0 >> c >> c0 >> a1 >> c >> b1 >> c >> c1;
    if (a0 > a1) cout << "YES" << endl;
    else if (a0 < a1) cout << "NO" << endl;
    else if (b0 > b1) cout << "YES" << endl;
    else if (b0 < b1) cout << "NO" << endl;
    else if (c0 >= c1) cout << "YES" << endl;
    else cout << "NO" << endl;
}
0