結果

問題 No.138 化石のバージョン
ユーザー hiyori
提出日時 2017-08-06 08:24:09
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 464 bytes
コンパイル時間 537 ms
コンパイル使用メモリ 62,592 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-11 22:40:18
合計ジャッジ時間 1,573 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 18 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
using namespace std;

int main()
{
    int a,b,c,l,m,n;
    cin >> a >> b >> c >> l >> m >> n;
    int flag=0;
    if(a>l) { flag=1; }
    else if(a==l) {
        if(b>m) { flag=1; }
        else if(b==m) {
            if(c>=n) { flag=1; }
            else{} //c<n
        }
        else{} //b<m
    }
    else{} //a<l
    
    if(flag==0) { cout << "NO" << endl; }
    else if(flag==1) { cout << "YES" << endl;}
    return 0;
}
0