結果
| 問題 |
No.418 ミンミンゼミ
|
| コンテスト | |
| ユーザー |
ATS
|
| 提出日時 | 2016-09-09 22:22:14 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 545 bytes |
| コンパイル時間 | 592 ms |
| コンパイル使用メモリ | 87,524 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-16 01:10:40 |
| 合計ジャッジ時間 | 1,313 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
#include <algorithm>
#include <cstdio>
#include <ctype.h>
#include <functional>
#include <iostream>
#include <iomanip>
#include <cassert>
#include <cfloat>
#include <climits>
#include <complex>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
using namespace std;
int main() {
string S;
int res=0;
cin >> S;
for(int i=0;i<S.size();i++){
if(S[i]!='-'){
res++;
}
}
cout << res/3 << endl;
return 0;
}
ATS