結果
問題 |
No.2562 数字探しゲーム(緑以下コンver.)
|
ユーザー |
![]() |
提出日時 | 2023-12-02 17:35:40 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 301 bytes |
コンパイル時間 | 276 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 78,336 KB |
最終ジャッジ日時 | 2024-11-19 21:37:02 |
合計ジャッジ時間 | 3,263 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 10 |
ソースコード
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 print(ans) print(ans * 10**9 + (m - (ans * 10**9) % m))