結果
| 問題 | No.436 ccw |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-26 02:45:40 |
| 言語 | Nim (2.2.10 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 785µs | |
| コード長 | 129 bytes |
| 記録 | |
| コンパイル時間 | 3,690 ms |
| コンパイル使用メモリ | 67,524 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-09-02 23:49:16 |
| 合計ジャッジ時間 | 5,679 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 24 |
ソースコード
import strutils
let
s: string = stdin.readline
c: int = s.count('c')
w: int = s.len - c
ans: int = min(c - 1, w)
echo ans