結果
| 問題 |
No.2560 A_1 < A_2 < ... < A_N
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-12 16:25:13 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 393 bytes |
| コンパイル時間 | 397 ms |
| コンパイル使用メモリ | 82,228 KB |
| 実行使用メモリ | 67,264 KB |
| 最終ジャッジ日時 | 2025-06-12 16:25:18 |
| 合計ジャッジ時間 | 1,812 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 15 |
ソースコード
def main():
t = int(input())
for _ in range(t):
m = int(input())
*d, = map(int, input().split())
a = ''
for i in range(9):
a = a + str(i+1) * d[i]
a = int(a + '000000000')
if a % m != 0:
a -= a % m
a += m
if a == 0:
a = m
print(a)
if __name__ == '__main__':
main()