結果
問題 | No.393 2本の竹 |
ユーザー | tails |
提出日時 | 2016-07-12 17:15:24 |
言語 | Perl (5.38.2) |
結果 |
TLE
|
実行時間 | - |
コード長 | 265 bytes |
コンパイル時間 | 352 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 29,088 KB |
最終ジャッジ日時 | 2024-04-23 01:51:21 |
合計ジャッジ時間 | 2,740 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 19 ms
13,756 KB |
testcase_01 | AC | 3 ms
6,940 KB |
testcase_02 | AC | 6 ms
6,944 KB |
testcase_03 | AC | 11 ms
6,940 KB |
testcase_04 | AC | 4 ms
6,940 KB |
testcase_05 | AC | 5 ms
6,944 KB |
testcase_06 | AC | 4 ms
6,940 KB |
testcase_07 | AC | 14 ms
6,940 KB |
testcase_08 | AC | 31 ms
6,940 KB |
testcase_09 | TLE | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
for(1..<>){ ($n1,$n2)=<>=~/\d+/g; <>; $n=0; $s=0; %h=0; for$a(sort{$a-$b}<>=~//g){ $s+=$a; @k=keys%h; %h=(); for(@k){ if($s-$_<=$n2){ $h{$_}=1; } if($_+$a<=$n1){ $h{$_+$a}=1; } } if(!%h){ last; } ++$n; } print $n,$/; }