結果

問題 No.138 化石のバージョン
ユーザー face4
提出日時 2018-04-20 18:57:38
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 309 bytes
コンパイル時間 569 ms
コンパイル使用メモリ 62,464 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-27 05:09:03
合計ジャッジ時間 1,674 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;

int main(){
    int a,b;
    char A[4], B[4];
    scanf("%c.%c.%c " , &A[0] , &A[1], &A[2]);
    a = atoi(A);
    scanf(" %c.%c.%c " , &B[0] , &B[1], &B[2]);
    b = atoi(B);

    if(b <= a) cout << "YES";
    else       cout << "NO";
    cout << endl;
    return 0;
}
0