結果

問題 No.1532 Different Products
ユーザー tailstails
提出日時 2021-06-04 21:43:54
言語 Perl
(5.38.2)
結果
TLE  
実行時間 -
コード長 174 bytes
コンパイル時間 672 ms
コンパイル使用メモリ 5,888 KB
実行使用メモリ 33,536 KB
最終ジャッジ日時 2024-04-30 02:14:39
合計ジャッジ時間 15,359 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
6,016 KB
testcase_01 AC 815 ms
14,336 KB
testcase_02 AC 8 ms
5,888 KB
testcase_03 AC 7 ms
6,016 KB
testcase_04 AC 8 ms
5,888 KB
testcase_05 AC 7 ms
5,888 KB
testcase_06 AC 8 ms
6,016 KB
testcase_07 AC 11 ms
6,272 KB
testcase_08 AC 19 ms
6,656 KB
testcase_09 AC 217 ms
10,880 KB
testcase_10 AC 1,105 ms
16,768 KB
testcase_11 AC 859 ms
15,616 KB
testcase_12 AC 3,984 ms
24,576 KB
testcase_13 AC 1,749 ms
22,272 KB
testcase_14 TLE -
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 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
testcase_50 -- -
testcase_51 -- -
testcase_52 -- -
testcase_53 -- -
testcase_54 -- -
testcase_55 -- -
testcase_56 -- -
testcase_57 -- -
testcase_58 -- -
testcase_59 -- -
testcase_60 -- -
testcase_61 -- -
testcase_62 -- -
testcase_63 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($n,$k)=glob<>;

$h{int$k}=1;

for$i(reverse 1..$n){
	%d=%h;
	for(keys%h){
		$a=int$_/$i;
		$d{$a}+=$h{$_} if$a;
	}
	%h=%d;
}

$t=0;
for(keys%h){
	$t+=$d{$_};
}

print $t-1;
0