結果
| 問題 | No.341 沈黙の期間 |
| コンテスト | |
| ユーザー |
xuelei
|
| 提出日時 | 2018-07-22 13:36:02 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 341 bytes |
| 記録 | |
| コンパイル時間 | 647 ms |
| コンパイル使用メモリ | 70,124 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-01 01:05:25 |
| 合計ジャッジ時間 | 1,240 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
#include <iostream>
#include <stdio.h>
using namespace std;
int main(){
unsigned char s[800];
scanf("%s",s);
int i=0,cnt=0,max=0;
while(s[i]!=0){
if(s[i]==226 && s[i+1]==128 && s[i+2]==166){
cnt++;
max=(max>cnt?max:cnt);
i+=3;
}else{
cnt=0;
i++;
}
}
cout << max << endl;
return 0;
}
xuelei