結果
| 問題 |
No.341 沈黙の期間
|
| コンテスト | |
| ユーザー |
napppoli
|
| 提出日時 | 2016-02-12 22:23:05 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 749 bytes |
| コンパイル時間 | 691 ms |
| コンパイル使用メモリ | 80,776 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-22 04:19:45 |
| 合計ジャッジ時間 | 1,266 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 1 WA * 10 |
ソースコード
#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<map>
#include<utility>
#include<set>
#include<stack>
#include<queue>
#include<deque>
#include<cmath>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<bitset>
#include<sstream>
#include<list>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);++i)
#define nrep(i,i0,n) for(int i=(i0);i<(int)(n);++i)
typedef vector<int> vi; typedef pair<int,int> pii; typedef vector<pair<int,int> > vpii;
typedef long long ll;
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
string s;cin>>s;
int count=0;
int maxi=0;
rep(i,s.size()){
if(s[i]=='.')count++;
else count=0;
if(count%3==0)maxi=max(maxi,count/3);
}
cout<<maxi<<endl;
return 0;
}
napppoli