結果

問題 No.2562 数字探しゲーム(緑以下コンver.)
ユーザー toshiro_yanagi
提出日時 2025-04-09 13:13:04
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 280 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 11,648 KB
最終ジャッジ日時 2025-04-09 13:13:08
合計ジャッジ時間 4,236 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 9 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

def fun(d):
    res = ""
    for k, v in d.items():
        res += f"{k}" * v
    return int(res)


t = int(input())
for _ in range(t):
    m = int(input())
    d = dict(
        {i + 1: v for i, v in enumerate([*map(int, input().split())]) if v != 0}
    )
    print(m * fun(d))
0