結果
問題 |
No.341 沈黙の期間
|
ユーザー |
![]() |
提出日時 | 2017-08-10 16:56:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 388 bytes |
コンパイル時間 | 1,756 ms |
コンパイル使用メモリ | 166,460 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-12 04:04:17 |
合計ジャッジ時間 | 2,542 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 2 WA * 9 |
コンパイルメッセージ
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 6 | main(){ | ^~~~
ソースコード
#include<bits/stdc++.h> typedef long long ll; using namespace std; int INF = 1e9; int MOD = 1e9+7; main(){ int c = 0xe280a6; string s; cin >> s; int cnt = 0,maxc = 0; for(int i = 0;i < s.length()-2;i++){ if(s[i] == 0xe2 && s[i+1] == 0x80 && s[i+2]){ cnt++; maxc = max(maxc,cnt); }else cnt = 0; } cout << maxc << endl; }