結果

問題 No.138 化石のバージョン
ユーザー AAAR15AAAR15
提出日時 2015-06-22 16:21:29
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 404 bytes
コンパイル時間 1,118 ms
コンパイル使用メモリ 18,536 KB
実行使用メモリ 19,036 KB
最終ジャッジ日時 2023-09-21 23:22:02
合計ジャッジ時間 3,583 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
18,792 KB
testcase_01 AC 16 ms
18,780 KB
testcase_02 WA -
testcase_03 AC 17 ms
18,912 KB
testcase_04 AC 15 ms
18,976 KB
testcase_05 AC 16 ms
18,968 KB
testcase_06 AC 16 ms
18,968 KB
testcase_07 AC 16 ms
18,932 KB
testcase_08 WA -
testcase_09 AC 16 ms
18,816 KB
testcase_10 AC 16 ms
18,948 KB
testcase_11 AC 16 ms
18,944 KB
testcase_12 AC 16 ms
18,908 KB
testcase_13 WA -
testcase_14 AC 16 ms
18,944 KB
testcase_15 WA -
testcase_16 AC 16 ms
19,012 KB
testcase_17 AC 16 ms
18,972 KB
testcase_18 AC 15 ms
18,952 KB
testcase_19 AC 17 ms
18,984 KB
testcase_20 AC 16 ms
18,952 KB
testcase_21 AC 16 ms
19,008 KB
testcase_22 AC 16 ms
18,912 KB
testcase_23 AC 16 ms
18,952 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 15 ms
18,972 KB
testcase_27 AC 16 ms
18,944 KB
testcase_28 AC 16 ms
18,908 KB
testcase_29 AC 16 ms
19,008 KB
testcase_30 AC 16 ms
18,924 KB
testcase_31 AC 16 ms
18,964 KB
testcase_32 AC 17 ms
19,028 KB
testcase_33 AC 15 ms
18,936 KB
testcase_34 AC 16 ms
19,036 KB
testcase_35 AC 17 ms
18,980 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$hantei = fgets(STDIN);
$target = fgets(STDIN);
$str = explode(".", $hantei);
$major = $str[0] . '0';
$minor = $str[1] . '0';
$patch = $str[2] . '0';
$str1 = explode(".", $target);
$major1 = $str1[0] . '0';
$minor1 = $str1[1] . '0';
$patch1 = $str1[2] . '0';
$hantei = $major . $minor . $patch;
$target = $major1 . $minor1 . $patch1;
if ($hantei - $target < 0) {
	echo 'NO';
} else {
	echo 'YES';
}
0