結果

問題 No.1015 おつりは要らないです
ユーザー tomosuuu_outputtomosuuu_output
提出日時 2020-04-04 17:30:42
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 273 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 11,972 KB
実行使用メモリ 18,020 KB
最終ジャッジ日時 2023-09-16 05:59:04
合計ジャッジ時間 2,394 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
12,312 KB
testcase_01 AC 8 ms
12,300 KB
testcase_02 AC 7 ms
12,300 KB
testcase_03 AC 8 ms
12,192 KB
testcase_04 AC 8 ms
12,256 KB
testcase_05 AC 7 ms
12,300 KB
testcase_06 AC 8 ms
12,232 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 16 ms
17,836 KB
testcase_11 AC 15 ms
17,900 KB
testcase_12 AC 15 ms
17,940 KB
testcase_13 AC 15 ms
17,972 KB
testcase_14 AC 15 ms
17,828 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 15 ms
17,860 KB
testcase_21 AC 15 ms
17,916 KB
testcase_22 AC 15 ms
17,900 KB
testcase_23 AC 15 ms
17,896 KB
testcase_24 AC 15 ms
17,892 KB
testcase_25 AC 15 ms
17,900 KB
testcase_26 AC 15 ms
17,904 KB
testcase_27 AC 15 ms
17,972 KB
testcase_28 AC 15 ms
17,976 KB
testcase_29 AC 15 ms
17,904 KB
testcase_30 AC 8 ms
12,284 KB
testcase_31 WA -
testcase_32 AC 9 ms
13,720 KB
testcase_33 AC 15 ms
17,904 KB
testcase_34 WA -
testcase_35 AC 7 ms
12,284 KB
testcase_36 AC 7 ms
12,264 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
  $have = explode(" ",fgets(STDIN));
  $pay = explode(" ",fgets(STDIN));
  $total = $have[1] + $have[2]*5 + $have[3]*10;
  $total *= 1000;
  if ($have[0] < array_sum($have)-$have[0] && array_sum($pay) < $total){
      echo "Yes\n";
  }else {
      echo "No\n";
  }
?>
0