結果
問題 | No.436 ccw |
ユーザー |
|
提出日時 | 2019-09-26 02:45:40 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 129 bytes |
コンパイル時間 | 3,009 ms |
コンパイル使用メモリ | 63,872 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-23 05:24:06 |
合計ジャッジ時間 | 4,074 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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