結果
問題 |
No.341 沈黙の期間
|
ユーザー |
![]() |
提出日時 | 2020-05-10 09:36:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 284 bytes |
コンパイル時間 | 1,207 ms |
コンパイル使用メモリ | 167,168 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 04:57:59 |
合計ジャッジ時間 | 1,824 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 2 WA * 9 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { wstring S; wcin >> S; int N = S.size(); int ans = 0; int len = 0; for( int i = 0; i < N; i += 2 ) { if( S[i] == 0x81 && S[i + 1] == 0x63 ) len++; else len = 0; ans = max( ans, len ); } cout << ans << endl; }