結果

問題 No.58 イカサマなサイコロ
ユーザー %20%20
提出日時 2017-06-18 01:09:32
言語 Perl
(5.38.0)
結果
AC  
実行時間 1,871 ms / 5,000 ms
コード長 136 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 53,896 KB
実行使用メモリ 59,372 KB
最終ジャッジ日時 2023-07-24 17:01:51
合計ジャッジ時間 14,483 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 953 ms
59,360 KB
testcase_01 AC 1,871 ms
59,216 KB
testcase_02 AC 826 ms
59,344 KB
testcase_03 AC 637 ms
59,352 KB
testcase_04 AC 1,620 ms
59,332 KB
testcase_05 AC 1,561 ms
59,372 KB
testcase_06 AC 1,821 ms
59,240 KB
testcase_07 AC 824 ms
59,340 KB
testcase_08 AC 1,134 ms
59,248 KB
testcase_09 AC 1,794 ms
59,340 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($N,$K)=<>;
map{
	$a=0;
	$a+=0|4+rand 3for 1..$K;
	$a+=0|1+rand 6for$K+1..$N;
	$a-=0|1+rand 6for 1..$N;
	$%+=$a>0;
}1..7e5;
print$%/7e5
0