結果

問題 No.341 沈黙の期間
ユーザー Bantako
提出日時 2017-08-10 17:03:05
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 404 bytes
コンパイル時間 1,441 ms
コンパイル使用メモリ 165,524 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-12 04:04:46
合計ジャッジ時間 2,025 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 2 WA * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:7:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    7 | main(){
      | ^~~~

ソースコード

diff #

#include<bits/stdc++.h>
typedef long long ll;
using namespace std;
int INF = 1e9;
int MOD = 1e9+7;
char s[400];
main(){
    int c = 0xe280a6;
    cin >> s;
    int cnt = 0,maxc = 0;
    for(int i = 0;i < 400;i++){
        if(s[i] == 0xe2 && s[i+1] == 0x80 && s[i+2] == 0xa6){
            cnt++;
            i+=2;
            maxc = max(maxc,cnt);
        }else cnt = 0; 
    }
    cout << maxc << endl;
}
0