結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー toshiro_yanagi
提出日時 2018-06-16 00:48:40
言語 Nim
(2.2.0)
結果
TLE  
実行時間 -
コード長 160 bytes
コンパイル時間 2,872 ms
コンパイル使用メモリ 65,560 KB
実行使用メモリ 13,880 KB
最終ジャッジ日時 2024-06-30 15:47:31
合計ジャッジ時間 6,867 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 TLE * 1 -- * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'strutils' [UnusedImport]

ソースコード

diff #

import strutils
var S = stdin.readLine

while S.len != 0:
  var cnt = 0
  for s in S:
    if s == 'o':
      cnt += 1
  echo cnt / S.len * 100
  S = S[1 .. ^1]
0