結果
| 問題 | No.2298 yukicounter |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-12 22:25:16 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 188 ms / 2,000 ms |
| コード長 | 360 bytes |
| 記録 | |
| コンパイル時間 | 5,004 ms |
| コンパイル使用メモリ | 336,588 KB |
| 実行使用メモリ | 42,240 KB |
| 最終ジャッジ日時 | 2026-06-30 15:05:42 |
| 合計ジャッジ時間 | 6,836 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,l,r) for(int i=(l);i<(r);++i)
int main(){
string s; cin>>s;
regex ptn{R"((yukicoder)*)"};
vector<string> v;
sregex_iterator end, itr{s.begin(),s.end(),ptn};
for(; itr!=end; ++itr) v.push_back(itr->str());
sort(v.rbegin(),v.rend());
int k=v[0].size();
cout<<k/9<<endl;
}