結果
問題 |
No.2298 yukicounter
|
ユーザー |
|
提出日時 | 2024-01-24 22:54:19 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 263 bytes |
コンパイル時間 | 1,894 ms |
コンパイル使用メモリ | 192,136 KB |
最終ジャッジ日時 | 2025-02-18 22:35:40 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 25 WA * 5 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; int ans = 0; int t = 0; for(int i = 0;i < (int)s.size() - 8;){ if(s.substr(i,9) == "yukicoder"){t++;i += 9;} else{ ans = max(ans,t); t = 0; i++; } } cout << ans; }