結果
| 問題 |
No.341 沈黙の期間
|
| コンテスト | |
| ユーザー |
napppoli
|
| 提出日時 | 2016-02-12 22:25:07 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 735 bytes |
| コンパイル時間 | 695 ms |
| コンパイル使用メモリ | 81,372 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-22 04:20:49 |
| 合計ジャッジ時間 | 1,145 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 2 WA * 9 |
コンパイルメッセージ
main.cpp:32:26: warning: multi-character character constant [-Wmultichar]
32 | if(s[i]=='…')count++;
| ^~~
ソースコード
#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;
maxi=max(maxi,count);
}
cout<<maxi<<endl;
return 0;
}
napppoli