結果
問題 |
No.2562 数字探しゲーム(緑以下コンver.)
|
ユーザー |
![]() |
提出日時 | 2023-12-02 17:25:24 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 272 bytes |
コンパイル時間 | 473 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 76,828 KB |
最終ジャッジ日時 | 2024-11-19 21:36:23 |
合計ジャッジ時間 | 1,990 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 9 WA * 1 |
ソースコード
t = int(input()) for _ in [0] * t: m = int(input()) d = list(map(int, input().split())) s = [] for i, k in enumerate(d, 1): lis = [str(i)] * k s.extend(lis) s.extend(['0'] * 9) x = int(''.join(s)) x += (-x % m) assert(x <= 10 ** 18 and x % m == 0) print(x)