結果
問題 | No.5 数字のブロック |
ユーザー | t8m8⛄️ |
提出日時 | 2015-05-05 02:29:56 |
言語 | PHP (8.3.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 160 bytes |
コンパイル時間 | 67 ms |
コンパイル使用メモリ | 18,668 KB |
実行使用メモリ | 19,064 KB |
最終ジャッジ日時 | 2023-09-19 06:59:52 |
合計ジャッジ時間 | 7,993 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 18 ms
19,040 KB |
testcase_01 | AC | 18 ms
18,892 KB |
testcase_02 | WA | - |
testcase_03 | AC | 21 ms
18,992 KB |
testcase_04 | AC | 19 ms
18,808 KB |
testcase_05 | WA | - |
testcase_06 | AC | 20 ms
19,012 KB |
testcase_07 | AC | 19 ms
18,820 KB |
testcase_08 | AC | 20 ms
18,920 KB |
testcase_09 | AC | 17 ms
19,064 KB |
testcase_10 | AC | 22 ms
18,952 KB |
testcase_11 | AC | 19 ms
18,880 KB |
testcase_12 | AC | 21 ms
18,808 KB |
testcase_13 | AC | 22 ms
18,812 KB |
testcase_14 | AC | 16 ms
19,064 KB |
testcase_15 | WA | - |
testcase_16 | AC | 23 ms
18,888 KB |
testcase_17 | AC | 24 ms
18,924 KB |
testcase_18 | AC | 23 ms
18,972 KB |
testcase_19 | AC | 24 ms
19,028 KB |
testcase_20 | TLE | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
testcase_31 | -- | - |
testcase_32 | -- | - |
testcase_33 | -- | - |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $l=trim(fgets(STDIN));$n=trim(fgets(STDIN));$a=explode(" ",trim(fgets(STDIN))); sort($a);$sum=0;$cnt=0;while($sum<$l)$sum+=$a[$cnt++];echo ($cnt-1)."\n";