結果
| 問題 |
No.2562 数字探しゲーム(緑以下コンver.)
|
| コンテスト | |
| ユーザー |
学ぶマン
|
| 提出日時 | 2025-11-17 18:24:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 434 bytes |
| コンパイル時間 | 435 ms |
| コンパイル使用メモリ | 82,904 KB |
| 実行使用メモリ | 76,968 KB |
| 最終ジャッジ日時 | 2025-11-17 18:24:42 |
| 合計ジャッジ時間 | 2,704 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 WA * 1 |
ソースコード
T = int(input())
for i in range(T):
M = int(input())
D = list(map(int, input().split()))
if M == 0:
print(1)
continue
res = []
for i in range(1, 10):
for j in range(D[i - 1]):
res.append(str(i))
# '0' を 9個appendする
for i in range(9):
res.append('0')
Y = int(''.join(res))
sho, amari = divmod(Y, M)
ans = Y + (M - amari)%M
print(ans)
学ぶマン