結果
| 問題 | No.436 ccw |
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2020-01-15 01:50:42 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 3 ms / 2,000 ms |
| + 199µs | |
| コード長 | 292 bytes |
| 記録 | |
| コンパイル時間 | 1,262 ms |
| コンパイル使用メモリ | 215,440 KB |
| 実行使用メモリ | 9,928 KB |
| 最終ジャッジ日時 | 2026-10-25 05:15:09 |
| 合計ジャッジ時間 | 3,333 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
int c, w;
c = w = 0;
string s;
cin >> s;
for (auto t : s){
if (t == 'c')
c++;
else
w++;
}
c--;
cout << min(c, w) << endl;
return 0;
}
Konton7