結果
| 問題 |
No.475 最終日 - Writerの怠慢
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2016-12-25 00:23:20 |
| 言語 | Perl (5.40.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 244 bytes |
| コンパイル時間 | 282 ms |
| コンパイル使用メモリ | 6,820 KB |
| 実行使用メモリ | 23,840 KB |
| 最終ジャッジ日時 | 2024-12-14 18:48:51 |
| 合計ジャッジ時間 | 2,643 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 12 |
コンパイルメッセージ
Name "main::n" used only once: possible typo at Main.pl line 1. Main.pl syntax OK
ソースコード
($n,$s,$w)=<>=~/\d+/g;
@a=<>=~/\d+/g;
($w)=splice@a,$w,1;
@a=sort{$b<=>$a}@a;
@b=map{50*$s+int(50*$s/(0.8+0.2*$_))}1..@a;
$i=$#b;
$c=$d=1;
for(@a){
while($i>=0 && $b[$i]+$_<=$b[0]+$w){
--$i;
}
++$j;
$c*=@b-$i-$j;
$d*=$j;
}
print $c/$d;
tails