結果
問題 | No.667 Mice's Luck(ネズミ達の運) |
ユーザー |
![]() |
提出日時 | 2025-01-11 01:14:29 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 282 ms / 2,000 ms |
コード長 | 246 bytes |
コンパイル時間 | 20,066 ms |
コンパイル使用メモリ | 251,336 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-11 01:14:56 |
合計ジャッジ時間 | 16,295 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
package main import . "fmt" import . "strings" func main() { var s string Scan(&s) o := Count(s, "o") x := Count(s, "x") for _, c := range s { Printf("%.12f\n", 100*float64(o)/float64(o+x)) if c=='o' { o-- } else { x-- } } }