結果
| 問題 | No.418 ミンミンゼミ |
| コンテスト | |
| ユーザー |
ATS
|
| 提出日時 | 2016-09-09 22:22:14 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| + 265µs | |
| コード長 | 545 bytes |
| 記録 | |
| コンパイル時間 | 472 ms |
| コンパイル使用メモリ | 107,480 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-13 07:59:58 |
| 合計ジャッジ時間 | 2,479 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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