結果

問題 No.138 化石のバージョン
ユーザー mesh1nekomesh1neko
提出日時 2015-05-31 18:02:23
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 639 bytes
コンパイル時間 635 ms
コンパイル使用メモリ 18,632 KB
実行使用メモリ 18,924 KB
最終ジャッジ日時 2023-09-20 18:07:49
合計ジャッジ時間 2,228 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 16 ms
18,856 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 15 ms
18,788 KB
testcase_07 AC 15 ms
18,836 KB
testcase_08 AC 15 ms
18,704 KB
testcase_09 AC 15 ms
18,612 KB
testcase_10 AC 15 ms
18,700 KB
testcase_11 AC 16 ms
18,792 KB
testcase_12 AC 15 ms
18,796 KB
testcase_13 AC 15 ms
18,696 KB
testcase_14 AC 15 ms
18,732 KB
testcase_15 AC 16 ms
18,744 KB
testcase_16 AC 16 ms
18,796 KB
testcase_17 AC 15 ms
18,828 KB
testcase_18 AC 15 ms
18,880 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 16 ms
18,672 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 15 ms
18,724 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 15 ms
18,700 KB
testcase_34 AC 15 ms
18,708 KB
testcase_35 AC 15 ms
18,712 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
// // Here your code !
 list($major, $minor, $release) = explode(".", trim(fgets(STDIN)));
 list($input_major, $input_minor, $input_release) = explode(".", trim(fgets(STDIN)));
 
 // 以下の場合
 // 未満ならYES, 同じなら潜ります
if ($major >= $input_major) {
    if ($major > $input_major) {
        goto a;
    }
    if ($minor >= $input_minor) {
        if ($minor > $input_minor) {
            goto a;
        }
        if ($release >= $input_release) {
            if ($release > $input_release) {
                goto a;
            }
        } else {
            echo "NO";
        }
    }
}

a:
    echo "YES";
0