結果
| 問題 |
No.436 ccw
|
| コンテスト | |
| ユーザー |
学ぶマン
|
| 提出日時 | 2025-06-04 22:53:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 166 bytes |
| コンパイル時間 | 699 ms |
| コンパイル使用メモリ | 82,288 KB |
| 実行使用メモリ | 59,644 KB |
| 最終ジャッジ日時 | 2025-06-04 22:53:42 |
| 合計ジャッジ時間 | 2,761 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 24 |
ソースコード
import sys
sys.set_int_max_str_digits(0)
S = input()
N = len(S)
c = 0
for i in range(N):
if S[i] == 'c':
c += 1
w = N - c
ans = min(c - 1, w)
print(ans)
学ぶマン