結果

問題 No.1005 BOT対策
ユーザー yicode
提出日時 2023-05-09 13:40:21
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 478 bytes
コンパイル時間 1,551 ms
コンパイル使用メモリ 166,464 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-26 00:44:23
合計ジャッジ時間 2,506 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 17 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
int main () {
    string S; cin >> S;
    string T; cin >> T;
    int ans = 0;
    for(int i = 0; i < S.size(); i++) {
        int x = i;
        int y = 0;
        for(int j = 0; j < T.size(); j++) {
            if(S[x] == T[j]) {
                y++;
            }
            x++;
        }
        if(y  == T.size())
            ans++;
        }
    cout << ans << endl;
}
0