結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー %20%20
提出日時 2017-09-29 05:24:30
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,770 ms / 5,000 ms
コード長 109 bytes
コンパイル時間 446 ms
コンパイル使用メモリ 7,076 KB
実行使用メモリ 58,624 KB
最終ジャッジ日時 2024-04-26 00:07:21
合計ジャッジ時間 39,003 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,393 ms
53,888 KB
testcase_01 AC 7 ms
6,940 KB
testcase_02 AC 587 ms
24,192 KB
testcase_03 AC 1,131 ms
40,832 KB
testcase_04 AC 1,568 ms
58,624 KB
testcase_05 AC 1,562 ms
58,624 KB
testcase_06 AC 1,567 ms
58,624 KB
testcase_07 AC 1,613 ms
54,400 KB
testcase_08 AC 1,663 ms
54,400 KB
testcase_09 AC 1,627 ms
54,400 KB
testcase_10 AC 1,400 ms
53,236 KB
testcase_11 AC 1,508 ms
56,064 KB
testcase_12 AC 1,368 ms
51,372 KB
testcase_13 AC 1,581 ms
50,560 KB
testcase_14 AC 1,618 ms
52,096 KB
testcase_15 AC 1,493 ms
47,104 KB
testcase_16 AC 1,623 ms
58,496 KB
testcase_17 AC 1,620 ms
58,624 KB
testcase_18 AC 1,618 ms
58,624 KB
testcase_19 AC 1,755 ms
54,400 KB
testcase_20 AC 1,716 ms
54,400 KB
testcase_21 AC 1,770 ms
54,400 KB
testcase_22 AC 1,485 ms
53,120 KB
testcase_23 AC 1,546 ms
56,192 KB
testcase_24 AC 8 ms
6,944 KB
testcase_25 AC 41 ms
7,040 KB
testcase_26 AC 20 ms
6,940 KB
testcase_27 AC 16 ms
6,940 KB
testcase_28 AC 278 ms
13,736 KB
testcase_29 AC 142 ms
9,856 KB
testcase_30 AC 42 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..60){
	$m=($l+$r)/2;
	$k=0;
	$k+=$_/$m|0for@L;
	${$k>=$K?l:r}=$m
}
print$m
0