結果
問題 | No.2298 yukicounter |
ユーザー |
|
提出日時 | 2023-05-12 22:25:16 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 301 ms / 2,000 ms |
コード長 | 360 bytes |
コンパイル時間 | 6,367 ms |
コンパイル使用メモリ | 310,444 KB |
最終ジャッジ日時 | 2025-02-12 23:12:22 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }