結果

問題 No.897 compαctree
ユーザー tailstails
提出日時 2019-10-04 21:49:29
言語 Perl
(5.38.2)
結果
TLE  
実行時間 -
コード長 112 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 14,008 KB
最終ジャッジ日時 2024-04-14 10:29:01
合計ジャッジ時間 4,263 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
12,576 KB
testcase_01 AC 8 ms
6,812 KB
testcase_02 AC 8 ms
6,940 KB
testcase_03 AC 8 ms
6,940 KB
testcase_04 AC 8 ms
6,940 KB
testcase_05 AC 8 ms
6,940 KB
testcase_06 AC 8 ms
6,940 KB
testcase_07 AC 7 ms
6,940 KB
testcase_08 AC 8 ms
6,940 KB
testcase_09 AC 8 ms
6,940 KB
testcase_10 AC 8 ms
6,944 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>;
for(<>){
	($n,$k)=glob;
	$a=0;
	$b=1;
	$c=0;
	while($a<$n){
		$a+=$b;
		$b*=$k;
		++$c;
	}
	print$c-1,$/;
}
0