結果
| 問題 | No.3455 N-beatsu |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-02-28 13:46:33 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 2,000 ms |
| + 542µs | |
| コード長 | 333 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 96,108 KB |
| 実行使用メモリ | 84,992 KB |
| 最終ジャッジ日時 | 2026-07-25 05:25:36 |
| 合計ジャッジ時間 | 2,371 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()