結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2018-06-16 00:52:46
言語 Nim
(2.0.2)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 152 bytes
コンパイル時間 2,988 ms
コンパイル使用メモリ 67,632 KB
実行使用メモリ 12,072 KB
最終ジャッジ日時 2023-09-13 05:39:30
合計ジャッジ時間 8,750 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
8,756 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 5 ms
4,380 KB
testcase_05 AC 94 ms
11,732 KB
testcase_06 AC 1,599 ms
11,640 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils

var
  S = stdin.readLine
  cnt = S.count('o')

while S.len != 0:
  echo cnt / S.len * 100

  if S[0] == 'o': cnt -= 1
  S = S[1 .. ^1]
0