結果
| 問題 |
No.667 Mice's Luck(ネズミ達の運)
|
| コンテスト | |
| ユーザー |
dong_feng
|
| 提出日時 | 2018-04-30 01:55:08 |
| 言語 | PHP (843.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 359 bytes |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 32,276 KB |
| 実行使用メモリ | 39,856 KB |
| 最終ジャッジ日時 | 2024-06-27 23:45:47 |
| 合計ジャッジ時間 | 5,608 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 6 TLE * 1 -- * 3 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
function countSafeBoxex($trapInput, $mouseCount){
$safeCount = 0;
for($i=$mouseCount;$i<strlen($trapInput);$i++){
if($trapInput[$i]=='o') $count ++;
}
return $safeCount;
}
//ここから
$trapInput=fgets(STDIN);
for($i=0;$i<strlen($trapInput);$i++){
echo (countSafeBoxex($trapInput, $i)/(strlen($trapInput)-$i)).PHP_EOL;
}
dong_feng