結果

問題 No.138 化石のバージョン
ユーザー takeya_okinotakeya_okino
提出日時 2017-07-14 16:00:06
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 281 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 32,272 KB
実行使用メモリ 32,400 KB
最終ジャッジ日時 2024-04-16 19:48:18
合計ジャッジ時間 2,640 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
30,560 KB
testcase_01 AC 42 ms
30,724 KB
testcase_02 AC 41 ms
30,900 KB
testcase_03 AC 42 ms
30,632 KB
testcase_04 AC 42 ms
30,752 KB
testcase_05 AC 41 ms
30,820 KB
testcase_06 AC 41 ms
30,864 KB
testcase_07 AC 41 ms
30,892 KB
testcase_08 AC 41 ms
31,112 KB
testcase_09 AC 41 ms
30,824 KB
testcase_10 AC 42 ms
30,840 KB
testcase_11 AC 41 ms
30,720 KB
testcase_12 AC 41 ms
30,732 KB
testcase_13 AC 41 ms
30,732 KB
testcase_14 AC 42 ms
30,764 KB
testcase_15 AC 41 ms
30,904 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 42 ms
30,628 KB
testcase_20 AC 41 ms
31,076 KB
testcase_21 WA -
testcase_22 AC 42 ms
30,884 KB
testcase_23 AC 42 ms
30,904 KB
testcase_24 AC 41 ms
30,852 KB
testcase_25 AC 42 ms
30,768 KB
testcase_26 AC 42 ms
30,956 KB
testcase_27 AC 42 ms
30,792 KB
testcase_28 AC 42 ms
30,776 KB
testcase_29 AC 41 ms
31,004 KB
testcase_30 AC 41 ms
30,828 KB
testcase_31 AC 42 ms
30,744 KB
testcase_32 AC 41 ms
30,692 KB
testcase_33 AC 42 ms
30,592 KB
testcase_34 AC 42 ms
30,948 KB
testcase_35 AC 42 ms
30,896 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$version = explode(".", trim(fgets(STDIN)));
$version2 = explode(".", trim(fgets(STDIN)));
$ans = "NO";
for($i = 0; $i < 3; $i++) {
  $s = $version[$i];
  $t = $version2[$i];
  if($s > $t) {
    $ans = "YES";
    break;
  } else if($s < $t) {
    break;
  }
}
print($ans);
?>
0