結果

問題 No.2562 数字探しゲーム(緑以下コンver.)
ユーザー KudeKude
提出日時 2023-12-12 22:46:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 205 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 373 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 77,280 KB
最終ジャッジ日時 2023-12-12 22:46:48
合計ジャッジ時間 2,959 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,460 KB
testcase_01 AC 34 ms
53,460 KB
testcase_02 AC 35 ms
53,460 KB
testcase_03 AC 35 ms
53,460 KB
testcase_04 AC 205 ms
77,280 KB
testcase_05 AC 171 ms
77,268 KB
testcase_06 AC 168 ms
77,152 KB
testcase_07 AC 172 ms
77,280 KB
testcase_08 AC 172 ms
77,280 KB
testcase_09 AC 171 ms
77,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    m = int(input())
    high = int(''.join(str(i) * d for i, d in enumerate(map(int, input().split()), 1))) * 10 ** 9
    ans = high + (-high) % m
    print(ans)
0