結果
| 問題 | No.341 沈黙の期間 |
| コンテスト | |
| ユーザー |
Kura
|
| 提出日時 | 2019-07-22 20:42:15 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 230 bytes |
| 記録 | |
| コンパイル時間 | 1,906 ms |
| コンパイル使用メモリ | 158,504 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-23 18:39:46 |
| 合計ジャッジ時間 | 2,011 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 2 WA * 9 |
コンパイルメッセージ
main.cpp:9:14: warning: multi-character character constant [-Wmultichar]
9 | if(s[i]=='…'){
| ^~~
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
string s;cin>>s;
int c=0;
int n=0;
int l=s.length();
for(int i=0;i<l;i++){
if(s[i]=='…'){
n++;
c=max(c,n);
}else{n=0;}
}
cout<<c<<endl;
}
Kura