結果
問題 |
No.2562 数字探しゲーム(緑以下コンver.)
|
ユーザー |
![]() |
提出日時 | 2023-12-02 17:43:20 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 305 bytes |
コンパイル時間 | 318 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 78,336 KB |
最終ジャッジ日時 | 2024-11-19 21:37:18 |
合計ジャッジ時間 | 2,925 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 9 |
ソースコード
import time t = int(input()) for case in range(t): m = int(input()) d = list(map(int,input().split())) ans = 0 for i in range(9): for j in range(d[i]): ans *= 10 ans += i+1 ans = ans * 10**9 + (m - (ans * 10**9) % m) print(ans)