結果
問題 |
No.341 沈黙の期間
|
ユーザー |
![]() |
提出日時 | 2017-08-10 16:59:12 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 391 bytes |
コンパイル時間 | 1,803 ms |
コンパイル使用メモリ | 165,692 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-12 04:04:35 |
合計ジャッジ時間 | 2,296 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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(){ | ^~~~
ソースコード
#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;s[i] != '\n' && s[i];i++){ if(s[i] == 0xe2 && s[i+1] == 0x80 && s[i+2]){ cnt++; maxc = max(maxc,cnt); }else cnt = 0; } cout << maxc << endl; }