結果
| 問題 |
No.667 Mice's Luck(ネズミ達の運)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-18 03:19:06 |
| 言語 | Nim (2.2.0) |
| 結果 |
AC
|
| 実行時間 | 73 ms / 2,000 ms |
| コード長 | 247 bytes |
| コンパイル時間 | 2,915 ms |
| コンパイル使用メモリ | 65,024 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-01 06:01:35 |
| 合計ジャッジ時間 | 5,076 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import sequtils,strutils
proc printf(formatstr: cstring){.header: "<stdio.h>", varargs.}
let S = stdin.readLine()
let l = S.len()
var left = S.count('o')
for i,s in S:
let res = 100 * left / (l-i)
printf("%.7f\n",res)
if s == 'o' : left -= 1