結果
| 問題 | No.2562 数字探しゲーム(緑以下コンver.) |
| コンテスト | |
| ユーザー |
MM
|
| 提出日時 | 2023-12-02 16:55:35 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 417 bytes |
| 記録 | |
| コンパイル時間 | 596 ms |
| コンパイル使用メモリ | 20,960 KB |
| 実行使用メモリ | 15,504 KB |
| 最終ジャッジ日時 | 2026-05-14 02:01:10 |
| 合計ジャッジ時間 | 4,101 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 WA * 9 |
ソースコード
# Read the number of test cases
t = int(input())
N = 1000000000
for _ in range(t):
# Read M for each test case
M = int(input())
ans = 0
# Process the nine digits
d = list(map(int, input().split()))
for i in range(1, 10):
for j in range(0,d[(i-1)]):
ans *= 10
ans += i
# Calculate and print the final answer
ans *= N
ans += M - (ans % M)
print(ans)
MM