結果
| 問題 | No.3629 Maximize Subsequense Mex |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2026-08-14 22:46:55 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 294 bytes |
| 記録 | |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 96,240 KB |
| 実行使用メモリ | 87,456 KB |
| 最終ジャッジ日時 | 2026-08-14 22:47:04 |
| 合計ジャッジ時間 | 6,560 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 4 WA * 23 |
ソースコード
from sys import stdin
input = stdin.readline
for _ in range(int(input())):
N = int(input())
if N <= 9:
print("123456789"[:N-1]+"0")
continue
ans = []
while N:
ans.append("1234567890"[:min(N, 10)])
N -= min(N, 10)
print("".join(ans[::-1]))
detteiuu