結果

問題 No.58 イカサマなサイコロ
ユーザー %20%20
提出日時 2017-06-18 01:11:36
言語 Perl
(5.38.2)
結果
AC  
実行時間 3,037 ms / 5,000 ms
コード長 136 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 76,056 KB
実行使用メモリ 83,992 KB
最終ジャッジ日時 2024-04-08 21:03:23
合計ジャッジ時間 22,319 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,328 ms
83,992 KB
testcase_01 AC 3,037 ms
83,992 KB
testcase_02 AC 1,316 ms
83,992 KB
testcase_03 AC 1,033 ms
83,992 KB
testcase_04 AC 2,239 ms
83,992 KB
testcase_05 AC 2,460 ms
83,992 KB
testcase_06 AC 2,887 ms
83,992 KB
testcase_07 AC 1,317 ms
83,992 KB
testcase_08 AC 1,816 ms
83,992 KB
testcase_09 AC 2,884 ms
83,992 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..1e6;
print$%/1e6
0