結果
問題 |
No.1005 BOT対策
|
ユーザー |
👑 ![]() |
提出日時 | 2020-03-03 02:12:14 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 271 bytes |
コンパイル時間 | 1,980 ms |
コンパイル使用メモリ | 193,572 KB |
最終ジャッジ日時 | 2025-01-09 04:11:10 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 TLE * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; signed main(){ string s, t; cin >> s >> t; int ans = 0, n = s.size(), m = t.size(); for(int i = 0; i + m <= n; i++) if(s.substr(i, m) == t){ ans++; i += m - 2; } cout << ans << endl; }