結果

問題 No.37 遊園地のアトラクション
ユーザー %20%20
提出日時 2017-08-17 13:26:39
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,185 ms / 5,000 ms
コード長 197 bytes
コンパイル時間 379 ms
コンパイル使用メモリ 5,888 KB
実行使用メモリ 6,656 KB
最終ジャッジ日時 2024-04-18 20:00:35
合計ジャッジ時間 8,357 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 150 ms
6,528 KB
testcase_01 AC 13 ms
6,016 KB
testcase_02 AC 178 ms
6,144 KB
testcase_03 AC 267 ms
6,400 KB
testcase_04 AC 106 ms
6,016 KB
testcase_05 AC 177 ms
6,144 KB
testcase_06 AC 143 ms
6,272 KB
testcase_07 AC 854 ms
6,656 KB
testcase_08 AC 88 ms
6,144 KB
testcase_09 AC 28 ms
6,016 KB
testcase_10 AC 664 ms
6,272 KB
testcase_11 AC 650 ms
6,656 KB
testcase_12 AC 167 ms
6,272 KB
testcase_13 AC 238 ms
6,400 KB
testcase_14 AC 100 ms
6,144 KB
testcase_15 AC 123 ms
6,144 KB
testcase_16 AC 365 ms
6,528 KB
testcase_17 AC 307 ms
6,656 KB
testcase_18 AC 825 ms
6,528 KB
testcase_19 AC 27 ms
6,016 KB
testcase_20 AC 269 ms
6,272 KB
testcase_21 AC 110 ms
6,528 KB
testcase_22 AC 1,185 ms
6,528 KB
testcase_23 AC 7 ms
6,016 KB
testcase_24 AC 7 ms
5,888 KB
testcase_25 AC 7 ms
5,888 KB
testcase_26 AC 7 ms
6,016 KB
testcase_27 AC 140 ms
6,144 KB
testcase_28 AC 9 ms
5,888 KB
testcase_29 AC 82 ms
6,016 KB
testcase_30 AC 8 ms
6,016 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$T=<>;
$N=<>;
@c=glob<>;
@v=glob<>;
for$i(0..$N-1){
	for(;$v[$i];$v[$i]>>=1){
		for$t(reverse 0..$T-1){
			$\+=$-=$t+$c[$i]<=$T&&($d[$t+$c[$i]]+=$-=($d[$t]+$v[$i])-$d[$t+$c[$i]])-$\
		}
	}
}
print
0