結果

問題 No.58 イカサマなサイコロ
ユーザー %20%20
提出日時 2017-06-18 00:58:36
言語 Perl
(5.38.2)
結果
AC  
実行時間 3,726 ms / 5,000 ms
コード長 125 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 56,260 KB
実行使用メモリ 62,020 KB
最終ジャッジ日時 2024-04-08 20:58:23
合計ジャッジ時間 24,438 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,246 ms
62,020 KB
testcase_01 AC 3,726 ms
62,020 KB
testcase_02 AC 1,247 ms
62,020 KB
testcase_03 AC 921 ms
62,020 KB
testcase_04 AC 2,536 ms
62,020 KB
testcase_05 AC 2,871 ms
62,020 KB
testcase_06 AC 3,447 ms
62,020 KB
testcase_07 AC 1,248 ms
62,020 KB
testcase_08 AC 1,884 ms
62,020 KB
testcase_09 AC 3,425 ms
62,020 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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