結果
| 問題 | No.341 沈黙の期間 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-05 01:54:51 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 565 bytes |
| 記録 | |
| コンパイル時間 | 767 ms |
| コンパイル使用メモリ | 100,188 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-22 01:43:18 |
| 合計ジャッジ時間 | 1,500 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 2 WA * 9 |
ソースコード
#define _USE_MATH_DEFINES
#include<stdio.h>
#include<string>
#include<iostream>
#include<cctype>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include <algorithm>
#include<math.h>
#include<set>
#include<map>
#include<iomanip>
//#include<bits/stdc++.h>
using namespace std;
int gcd(int x,int y){
return y?gcd(y,x%y):x;
}
int main() {
unsigned char s[999];
scanf("%s",s);
int r=0,w=0;
int i=0;
while(s[i]){
if(s[i]==-30&&s[i+1]==-128&&s[i+2]==-90){r++,i+=2;}
else r=0;
w=max(r,w);
i++;
}
cout<<w<<endl;
return 0;
}