結果
| 問題 | No.436 ccw |
| コンテスト | |
| ユーザー |
rrrrm99
|
| 提出日時 | 2016-11-28 01:34:14 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 194 bytes |
| コンパイル時間 | 546 ms |
| コンパイル使用メモリ | 64,768 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 12:26:29 |
| 合計ジャッジ時間 | 1,294 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 24 |
ソースコード
#include <iostream>
int main() {
std::string cw;
std::cin >> cw;
int cnt = 0;
while(cw[cnt] == 'c') cnt++;
std::cout << std::min(cnt-1, (int)cw.length()-cnt) << std::endl;
}
rrrrm99