結果
| 問題 |
No.436 ccw
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-28 22:23:42 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 184 bytes |
| コンパイル時間 | 1,440 ms |
| コンパイル使用メモリ | 158,468 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-24 05:39:14 |
| 合計ジャッジ時間 | 2,480 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 10 WA * 14 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
4 | main()
| ^~~~
ソースコード
#include <bits/stdc++.h>
using namespace std;
main()
{
string str;
cin >> str;
int cnt = 0;
for (int i = 0; str[i] == 'c'; i++){
cnt++;
}
cout << cnt - 1 << endl;
}