結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー tailstails
提出日時 2015-05-22 22:36:39
言語 Perl
(5.38.2)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 118 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 5,052 KB
最終ジャッジ日時 2023-09-20 09:37:47
合計ジャッジ時間 895 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,776 KB
testcase_01 AC 2 ms
4,960 KB
testcase_02 AC 2 ms
4,784 KB
testcase_03 AC 2 ms
4,996 KB
testcase_04 AC 3 ms
5,040 KB
testcase_05 AC 3 ms
4,976 KB
testcase_06 AC 2 ms
4,952 KB
testcase_07 AC 3 ms
5,028 KB
testcase_08 AC 3 ms
5,004 KB
testcase_09 AC 3 ms
5,052 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$/=$";($P,$C)=<>;

@p=(2,3,5,7,11,13);
@c=(4,6,8,9,10,12);

$ap+=$_/6 for @p;
$ac+=$_/6 for @c;

print $ap**$P*$ac**$C
0