結果

問題 No.2027 (1, 2, 3, …, N) 's Subset Sum
ユーザー tailstails
提出日時 2022-08-05 21:27:12
言語 Perl
(5.38.2)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 79 bytes
コンパイル時間 884 ms
コンパイル使用メモリ 5,236 KB
実行使用メモリ 34,664 KB
最終ジャッジ日時 2023-10-13 21:52:03
合計ジャッジ時間 3,617 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,188 KB
testcase_01 AC 6 ms
5,288 KB
testcase_02 AC 89 ms
34,652 KB
testcase_03 AC 6 ms
5,136 KB
testcase_04 AC 85 ms
34,664 KB
testcase_05 AC 86 ms
34,632 KB
testcase_06 AC 86 ms
34,488 KB
testcase_07 AC 22 ms
11,252 KB
testcase_08 AC 68 ms
28,440 KB
testcase_09 AC 26 ms
13,160 KB
testcase_10 AC 38 ms
17,608 KB
testcase_11 AC 26 ms
13,196 KB
testcase_12 AC 30 ms
14,400 KB
testcase_13 AC 22 ms
10,804 KB
testcase_14 AC 13 ms
7,676 KB
testcase_15 AC 33 ms
15,592 KB
testcase_16 AC 36 ms
16,408 KB
testcase_17 AC 6 ms
5,204 KB
testcase_18 AC 7 ms
5,188 KB
testcase_19 AC 6 ms
5,252 KB
testcase_20 AC 7 ms
5,344 KB
testcase_21 AC 6 ms
5,344 KB
testcase_22 AC 52 ms
21,768 KB
testcase_23 AC 31 ms
13,776 KB
testcase_24 AC 13 ms
7,876 KB
testcase_25 AC 62 ms
25,748 KB
testcase_26 AC 19 ms
9,684 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($n,$s)=glob<>;
$s<$_||($s-=$_,unshift@a,$_)for reverse 1..$n;
print@a."\n@a";
0