結果
| 問題 |
No.436 ccw
|
| コンテスト | |
| ユーザー |
eve__fuyuki
|
| 提出日時 | 2019-12-31 02:39:04 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 243 bytes |
| コンパイル時間 | 2,372 ms |
| コンパイル使用メモリ | 165,392 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 03:31:10 |
| 合計ジャッジ時間 | 2,674 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 24 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string s;
cin >> s;
int l = s.length();
int c = 0;
while (s[c] == 'c') {
c++;
}
int w = l - c;
cout << min(c - 1, w) << endl;
return 0;
}
eve__fuyuki