結果

問題 No.341 沈黙の期間
ユーザー BantakoBantako
提出日時 2017-08-10 17:02:24
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 386 bytes
コンパイル時間 1,523 ms
コンパイル使用メモリ 163,984 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-20 08:41:30
合計ジャッジ時間 2,262 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 2 ms
5,376 KB
testcase_12 WA -
testcase_13 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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++;
            maxc = max(maxc,cnt);
        }else cnt = 0; 
    }
    cout << maxc << endl;
}
0