結果
| 問題 |
No.667 Mice's Luck(ネズミ達の運)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-30 21:13:22 |
| 言語 | Go (1.23.4) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 395 bytes |
| コンパイル時間 | 12,663 ms |
| コンパイル使用メモリ | 223,780 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-27 23:58:38 |
| 合計ジャッジ時間 | 15,985 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 TLE * 1 -- * 3 |
ソースコード
package main
import (
"bufio"
"fmt"
"os"
"strings"
)
func main() {
input := bufio.NewScanner(os.Stdin)
if input.Scan() {
list := strings.Split(input.Text(), "")
for e, _ := range list {
var count float64
for i := e; i < len(list); i++ {
if list[i] == "o" {
count++
}
}
oneProb := 100.0 / float64(len(list)-e)
fmt.Printf("%.13f\n", oneProb*count)
}
}
}