結果

問題 No.1015 おつりは要らないです
ユーザー tomosuuu_outputtomosuuu_output
提出日時 2020-04-04 16:50:15
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 266 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 12,084 KB
実行使用メモリ 18,004 KB
最終ジャッジ日時 2023-09-16 05:54:48
合計ジャッジ時間 2,424 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
12,220 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 7 ms
12,188 KB
testcase_04 AC 7 ms
12,220 KB
testcase_05 AC 7 ms
12,208 KB
testcase_06 AC 7 ms
12,260 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 15 ms
18,004 KB
testcase_11 AC 15 ms
17,888 KB
testcase_12 AC 15 ms
17,896 KB
testcase_13 AC 15 ms
17,908 KB
testcase_14 AC 15 ms
17,900 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 16 ms
17,884 KB
testcase_21 AC 15 ms
17,900 KB
testcase_22 AC 15 ms
17,936 KB
testcase_23 AC 15 ms
17,832 KB
testcase_24 AC 15 ms
17,872 KB
testcase_25 AC 15 ms
17,844 KB
testcase_26 AC 15 ms
17,888 KB
testcase_27 AC 15 ms
17,976 KB
testcase_28 AC 15 ms
17,908 KB
testcase_29 AC 15 ms
17,908 KB
testcase_30 AC 7 ms
12,280 KB
testcase_31 AC 11 ms
13,744 KB
testcase_32 WA -
testcase_33 AC 15 ms
17,880 KB
testcase_34 AC 7 ms
12,216 KB
testcase_35 AC 7 ms
12,124 KB
testcase_36 AC 7 ms
12,148 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
  fscanf(STDIN, "%d %d %d %d", $n, $x, $y, $z);
  $line2 = fgets(STDIN);
  $mon = $x*1000 + $y*5000 + $z*10000;
  $pay = explode(" ",$line2);
  $total_pay = array_sum($pay);
  if ($mon > $total_pay) {
      echo "Yes\n";
  } else {
      echo "No\n";
  }
  
?>
0