結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー %20%20
提出日時 2017-09-29 05:19:32
言語 Perl
(5.38.2)
結果
AC  
実行時間 2,473 ms / 5,000 ms
コード長 110 bytes
コンパイル時間 439 ms
コンパイル使用メモリ 7,068 KB
実行使用メモリ 58,624 KB
最終ジャッジ日時 2024-04-26 00:08:18
合計ジャッジ時間 53,732 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,022 ms
54,016 KB
testcase_01 AC 7 ms
6,940 KB
testcase_02 AC 804 ms
24,320 KB
testcase_03 AC 1,536 ms
40,708 KB
testcase_04 AC 2,126 ms
58,624 KB
testcase_05 AC 2,155 ms
58,624 KB
testcase_06 AC 2,168 ms
58,624 KB
testcase_07 AC 2,214 ms
54,400 KB
testcase_08 AC 2,246 ms
54,400 KB
testcase_09 AC 2,306 ms
54,400 KB
testcase_10 AC 2,019 ms
53,364 KB
testcase_11 AC 2,076 ms
56,192 KB
testcase_12 AC 1,909 ms
51,368 KB
testcase_13 AC 2,097 ms
50,560 KB
testcase_14 AC 2,198 ms
52,224 KB
testcase_15 AC 1,945 ms
47,104 KB
testcase_16 AC 2,372 ms
58,496 KB
testcase_17 AC 2,322 ms
58,624 KB
testcase_18 AC 2,289 ms
58,624 KB
testcase_19 AC 2,400 ms
54,400 KB
testcase_20 AC 2,398 ms
54,400 KB
testcase_21 AC 2,473 ms
54,400 KB
testcase_22 AC 2,103 ms
52,992 KB
testcase_23 AC 2,225 ms
56,192 KB
testcase_24 AC 8 ms
6,940 KB
testcase_25 AC 54 ms
7,168 KB
testcase_26 AC 25 ms
6,940 KB
testcase_27 AC 19 ms
6,944 KB
testcase_28 AC 390 ms
13,720 KB
testcase_29 AC 207 ms
9,984 KB
testcase_30 AC 57 ms
7,040 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Unquoted string "l" may clash with future reserved word at Main.pl line 7.
Unquoted string "r" may clash with future reserved word at Main.pl line 7.
Name "main::l" used only once: possible typo at Main.pl line 4.
Main.pl syntax OK

ソースコード

diff #

<>;@L=glob<>;$K=<>;
$r=1e9;
for(1..100){
	$m=($l+$r)/2;
	$k=0;
	$k+=$_/$m|0for@L;
	${$k>=$K?l:r}=$m
}
print$m
0