結果

問題 No.58 イカサマなサイコロ
ユーザー %20%20
提出日時 2017-06-18 01:07:01
言語 Perl
(5.38.2)
結果
AC  
実行時間 4,057 ms / 5,000 ms
コード長 134 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 6,676 KB
実行使用メモリ 279,008 KB
最終ジャッジ日時 2024-04-08 21:01:55
合計ジャッジ時間 30,184 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,826 ms
185,696 KB
testcase_01 AC 3,962 ms
138,752 KB
testcase_02 AC 1,924 ms
236,896 KB
testcase_03 AC 1,488 ms
197,344 KB
testcase_04 AC 3,092 ms
225,248 KB
testcase_05 AC 3,411 ms
241,504 KB
testcase_06 AC 3,924 ms
211,936 KB
testcase_07 AC 1,610 ms
130,432 KB
testcase_08 AC 2,404 ms
175,840 KB
testcase_09 AC 4,057 ms
279,008 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Useless use of a variable in void context at Main.pl line 8.
Main.pl syntax OK

ソースコード

diff #

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