結果

問題 No.250 atetubouのzetubou
ユーザー tailstails
提出日時 2015-07-24 23:00:57
言語 Perl
(5.38.2)
結果
AC  
実行時間 574 ms / 5,000 ms
コード長 199 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 5,220 KB
実行使用メモリ 6,348 KB
最終ジャッジ日時 2023-09-22 22:46:50
合計ジャッジ時間 4,317 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
5,516 KB
testcase_01 AC 7 ms
4,820 KB
testcase_02 AC 36 ms
5,928 KB
testcase_03 AC 42 ms
6,196 KB
testcase_04 AC 36 ms
5,856 KB
testcase_05 AC 38 ms
5,876 KB
testcase_06 AC 30 ms
5,700 KB
testcase_07 AC 15 ms
5,272 KB
testcase_08 AC 36 ms
5,972 KB
testcase_09 AC 28 ms
5,620 KB
testcase_10 AC 38 ms
5,764 KB
testcase_11 AC 22 ms
5,580 KB
testcase_12 AC 35 ms
6,016 KB
testcase_13 AC 20 ms
5,204 KB
testcase_14 AC 3 ms
4,624 KB
testcase_15 AC 574 ms
6,184 KB
testcase_16 AC 561 ms
6,344 KB
testcase_17 AC 561 ms
6,052 KB
testcase_18 AC 553 ms
6,348 KB
testcase_19 AC 566 ms
6,128 KB
testcase_20 AC 3 ms
4,752 KB
testcase_21 AC 2 ms
4,812 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>;
hoge:
for(<>){
	($d,$x,$t)=/\d+/g;
	--$d;
#	if($x>$d){
#		$y=$x;$x=$d;$d=$y;
#	}
	$a=1;
	for(1..$x){
		$a*=$d+$_;
		$a/=$_;
		if($a>$t){
			print"ZETUBOU\n";
			next hoge;
		}
	}
	print"AC\n";
}
0