結果
| 問題 | No.3455 N-beatsu |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2026-03-03 06:29:33 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 48 ms / 2,000 ms |
| コード長 | 218 bytes |
| 記録 | |
| コンパイル時間 | 3,769 ms |
| コンパイル使用メモリ | 85,244 KB |
| 実行使用メモリ | 81,004 KB |
| 最終ジャッジ日時 | 2026-03-03 06:41:23 |
| 合計ジャッジ時間 | 2,246 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
import sys
input = sys.stdin.readline
N,Q=list(map(int,input().split()))
for i in range(Q):
X=int(input())
if X%N==0 or str(N) in str(X):
print("Yes")
else:
print("No")
titia