結果
| 問題 | No.436 ccw |
| コンテスト | |
| ユーザー |
hanorver
|
| 提出日時 | 2016-10-28 22:22:05 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 264 bytes |
| 記録 | |
| コンパイル時間 | 468 ms |
| コンパイル使用メモリ | 87,152 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-18 03:35:04 |
| 合計ジャッジ時間 | 1,580 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 24 |
ソースコード
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
int main() {
std::string s;
std::cin >> s;
std::cout << std::min(std::count(s.begin(), s.end(), 'c') - 1, std::count(s.begin(), s.end(), 'w')) << std::endl;
return 0;
}
hanorver