結果
問題 | No.667 Mice's Luck(ネズミ達の運) |
ユーザー | dong_feng |
提出日時 | 2018-04-30 02:03:21 |
言語 | PHP (8.3.4) |
結果 |
TLE
|
実行時間 | - |
コード長 | 428 bytes |
コンパイル時間 | 295 ms |
コンパイル使用メモリ | 18,736 KB |
実行使用メモリ | 23,336 KB |
最終ジャッジ日時 | 2023-09-10 08:17:19 |
合計ジャッジ時間 | 5,891 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
23,272 KB |
testcase_01 | AC | 15 ms
18,868 KB |
testcase_02 | AC | 15 ms
18,972 KB |
testcase_03 | AC | 15 ms
18,820 KB |
testcase_04 | AC | 38 ms
18,908 KB |
testcase_05 | AC | 1,983 ms
18,932 KB |
testcase_06 | TLE | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
コンパイルメッセージ
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') $safeCount ++; } return $safeCount; } //ここから $trapInput=fgets(STDIN); $trapInput = str_replace(array('\n','\r',PHP_EOL),"",$trapInput); for($i=0;$i<strlen($trapInput);$i++){ printf("%.7f",100*countSafeBoxex($trapInput, $i)/(strlen($trapInput)-$i)); echo PHP_EOL; }