結果
問題 |
No.1005 BOT対策
|
ユーザー |
![]() |
提出日時 | 2022-09-07 01:24:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 268 bytes |
コンパイル時間 | 80 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,392 KB |
最終ジャッジ日時 | 2024-11-22 01:40:05 |
合計ジャッジ時間 | 2,157 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 2 |
ソースコード
from collections import defaultdict import sys from typing import Counter readline=sys.stdin.readline write=sys.stdout.write from math import gcd as GCD import math S=readline().rstrip() T=readline().rstrip() ans=S.count(T) if len(T)==1 and ans: ans=-1 print(ans)