結果

問題 No.436 ccw
ユーザー toshiro_yanagi
提出日時 2018-06-01 18:50:59
言語 Nim
(2.2.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 109 bytes
コンパイル時間 3,129 ms
コンパイル使用メモリ 65,572 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 08:54:12
合計ジャッジ時間 3,984 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils
let
  s = stdin.readLine
  cCnt = s.count('c')
  wCnt = s.len - cCnt
echo min(cCnt - 1, wCnt)
0