結果
| 問題 | No.3455 N-beatsu |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-19 15:31:04 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 142 ms / 2,000 ms |
| コード長 | 205 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 81,920 KB |
| 最終ジャッジ日時 | 2026-05-19 15:31:08 |
| 合計ジャッジ時間 | 2,926 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
| 純コード判定待ち |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
n,q=map(int,input().split())
for _ in range(q):
x=int(input())
if x%n==0:print("Yes");continue
f=0;x,n=str(x),str(n)
for i in range(len(x)-len(n)+1):f|=x[i:i+len(n)]==n
print("NYoe s"[f::2])
n=int(n)