結果

問題 No.138 化石のバージョン
ユーザー mesh1nekomesh1neko
提出日時 2015-05-31 15:59:22
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 367 bytes
コンパイル時間 1,424 ms
コンパイル使用メモリ 18,596 KB
実行使用メモリ 19,040 KB
最終ジャッジ日時 2023-09-20 18:04:01
合計ジャッジ時間 2,993 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 17 ms
18,880 KB
testcase_04 AC 16 ms
18,876 KB
testcase_05 WA -
testcase_06 AC 16 ms
18,872 KB
testcase_07 AC 17 ms
18,792 KB
testcase_08 AC 17 ms
18,844 KB
testcase_09 AC 16 ms
18,936 KB
testcase_10 AC 17 ms
18,848 KB
testcase_11 AC 17 ms
18,780 KB
testcase_12 AC 16 ms
18,900 KB
testcase_13 AC 16 ms
18,964 KB
testcase_14 AC 17 ms
18,888 KB
testcase_15 AC 17 ms
18,836 KB
testcase_16 AC 16 ms
18,856 KB
testcase_17 AC 16 ms
18,828 KB
testcase_18 AC 17 ms
18,840 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 17 ms
18,880 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 16 ms
18,848 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 16 ms
18,616 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 16 ms
18,876 KB
testcase_34 AC 16 ms
18,812 KB
testcase_35 AC 17 ms
18,832 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)));
 
if ($major >= $input_major) echo "YES", PHP_EOL;
else if ($minor >= $input_minor) echo "YES", PHP_EOL;
else if ($release >= $input_release) echo "YES", PHP_EOL;
else echo "NO", PHP_EOL;
0