結果
| 問題 | No.3455 N-beatsu |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-02-28 13:46:33 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 2,000 ms |
| コード長 | 333 bytes |
| 記録 | |
| コンパイル時間 | 217 ms |
| コンパイル使用メモリ | 77,816 KB |
| 実行使用メモリ | 73,788 KB |
| 最終ジャッジ日時 | 2026-02-28 13:46:42 |
| 合計ジャッジ時間 | 1,964 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
def solve():
n,q = map(int, input().split())
strn = str(n)
x = [int(input()) for _ in range(q)]
for xi in x:
if xi % n == 0:
print("Yes")
continue
elif strn in str(xi):
print("Yes")
continue
print("No")
if __name__ == "__main__":
solve()