結果

問題 No.2562 数字探しゲーム(緑以下コンver.)
ユーザー loop0919loop0919
提出日時 2023-11-14 12:01:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 168 ms / 2,000 ms
コード長 283 bytes
コンパイル時間 260 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 76,996 KB
最終ジャッジ日時 2023-11-14 12:02:01
合計ジャッジ時間 2,438 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,332 KB
testcase_01 AC 35 ms
53,332 KB
testcase_02 AC 34 ms
53,332 KB
testcase_03 AC 34 ms
53,332 KB
testcase_04 AC 158 ms
76,868 KB
testcase_05 AC 168 ms
76,996 KB
testcase_06 AC 157 ms
76,872 KB
testcase_07 AC 158 ms
76,876 KB
testcase_08 AC 160 ms
76,876 KB
testcase_09 AC 161 ms
76,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    M = int(input())
    d = list(map(int, input().split()))
    
    ans = ""
    for i, d in enumerate(d, start=1):
        ans += str(i) * d
    
    ans = int(ans) * 10**9
    ans += (M - ans) % M
    
    print(ans)


T = int(input())
for _ in range(T):
    solve()
0