結果

問題 No.138 化石のバージョン
ユーザー r2en_r2en_
提出日時 2017-04-05 02:48:16
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 375 bytes
コンパイル時間 617 ms
コンパイル使用メモリ 62,080 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-08 09:13:53
合計ジャッジ時間 1,541 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
    int a1 = 0; int b1 = 0; int c1 = 0;
    int a2 = 0; int b2 = 0; int c2 = 0;
    int res1 = 0; int res2 = 0; 
    scanf("%d.%d.%d",&a1,&b1,&c1);
    scanf("%d.%d.%d",&a2,&b2,&c2);
    res1 = a1*100+b1*10+c1;
    res2 = a2*100+b2*10+c2;
    if(res1>res2){ cout << "YES\n"; }
    else{ cout << "NO\n"; }
    return 0;
}
0