結果

問題 No.1005 BOT対策
ユーザー mmn15277198
提出日時 2020-07-05 17:11:59
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 348 bytes
コンパイル時間 720 ms
コンパイル使用メモリ 80,516 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-22 14:47:22
合計ジャッジ時間 2,622 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16 WA * 8 RE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <vector>
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <math.h>
#include <map>
using namespace std;

int main(){
	string s,t;
	cin >> s >> t;
	int cnt=0;
	for(int i=0;i<=s.size()-t.size();i++){
		if(s.substr(i,t.size())==t){
			cnt++;
			i+=t.size()-1;
		}
	}
	cout << cnt << endl;
	return 0;
}
0