結果
| 問題 |
No.2562 数字探しゲーム(緑以下コンver.)
|
| コンテスト | |
| ユーザー |
oginoshikibu
|
| 提出日時 | 2023-12-02 15:14:12 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 366 bytes |
| コンパイル時間 | 342 ms |
| コンパイル使用メモリ | 82,260 KB |
| 実行使用メモリ | 77,224 KB |
| 最終ジャッジ日時 | 2024-11-19 21:30:52 |
| 合計ジャッジ時間 | 2,319 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 RE * 1 |
ソースコード
for _ in range(int(input())):
m=int(input())
D=list(map(int, input().split()))
tmp=""
for i,d in enumerate(D,1):
if d==0:continue
tmp+=str(i)*d
tmp=int(tmp)*(10**9)
if tmp%m!=0:
tmp+=m-tmp%m
assert tmp%m==0
assert tmp<=10**18
assert all([str(tmp).count(str(i))>=d for i,d in enumerate(D,1)])
print(tmp)
oginoshikibu