結果

問題 No.2298 yukicounter
ユーザー Shawn stayCShawn stayC
提出日時 2023-05-12 22:25:16
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 279 ms / 2,000 ms
コード長 360 bytes
コンパイル時間 7,354 ms
コンパイル使用メモリ 317,524 KB
実行使用メモリ 41,852 KB
最終ジャッジ日時 2023-08-19 05:16:44
合計ジャッジ時間 8,657 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 183 ms
21,000 KB
testcase_04 AC 72 ms
11,884 KB
testcase_05 AC 13 ms
4,376 KB
testcase_06 AC 279 ms
37,308 KB
testcase_07 AC 66 ms
11,820 KB
testcase_08 AC 21 ms
5,388 KB
testcase_09 AC 38 ms
8,496 KB
testcase_10 AC 8 ms
4,376 KB
testcase_11 AC 49 ms
9,480 KB
testcase_12 AC 46 ms
9,244 KB
testcase_13 AC 26 ms
5,472 KB
testcase_14 AC 27 ms
5,432 KB
testcase_15 AC 2 ms
4,380 KB
testcase_16 AC 11 ms
4,388 KB
testcase_17 AC 8 ms
4,384 KB
testcase_18 AC 2 ms
4,376 KB
testcase_19 AC 2 ms
4,388 KB
testcase_20 AC 2 ms
4,380 KB
testcase_21 AC 2 ms
4,376 KB
testcase_22 AC 41 ms
41,852 KB
testcase_23 AC 8 ms
4,384 KB
testcase_24 AC 35 ms
5,708 KB
testcase_25 AC 17 ms
4,556 KB
testcase_26 AC 7 ms
4,376 KB
testcase_27 AC 27 ms
5,224 KB
testcase_28 AC 6 ms
4,380 KB
testcase_29 AC 6 ms
4,380 KB
testcase_30 AC 2 ms
4,380 KB
testcase_31 AC 4 ms
4,380 KB
testcase_32 AC 6 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0