結果
問題 | No.2562 数字探しゲーム(緑以下コンver.) |
ユーザー |
![]() |
提出日時 | 2023-12-02 14:53:52 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 341 bytes |
コンパイル時間 | 318 ms |
コンパイル使用メモリ | 82,216 KB |
実行使用メモリ | 77,580 KB |
最終ジャッジ日時 | 2024-11-19 21:28:49 |
合計ジャッジ時間 | 3,078 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 9 |
ソースコード
def solve(M,D):ans = 0for i,d in enumerate(D,1):while d:ans += ians *= 10d -= 1ans *= 10**8add = M - ans%Mans += addassert ans % M == 0print(ans)T = int(input())for _ in range(T):M = int(input())D = list(map(int,input().split()))solve(M,D)