結果
| 問題 |
No.662 スロットマシーン
|
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2018-03-09 23:25:33 |
| 言語 | Perl (5.40.0) |
| 結果 |
AC
|
| 実行時間 | 7 ms / 2,000 ms |
| コード長 | 207 bytes |
| コンパイル時間 | 262 ms |
| コンパイル使用メモリ | 6,688 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2024-10-10 19:42:06 |
| 合計ジャッジ時間 | 1,058 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
<>=~$",$coin{$str[$_]=$`.$/}=$' for 0..4;
++$A{<>}for@A=1..<>;
++$B{<>}for@B=1..<>;
++$C{<>}for@C=1..<>;
for(@str){
$\.=$/.$A{$_}*$B{$_}*$C{$_}*5;
$x+=$coin{$_}*5*$A{$_}*$B{$_}*$C{$_}
}
print$x/(@A*@B*@C)
%20