結果
問題 |
No.2246 1333-like Number
|
ユーザー |
![]() |
提出日時 | 2023-03-17 21:27:09 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 268 bytes |
コンパイル時間 | 296 ms |
コンパイル使用メモリ | 81,664 KB |
実行使用メモリ | 122,624 KB |
最終ジャッジ日時 | 2024-09-18 10:13:27 |
合計ジャッジ時間 | 3,982 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 TLE * 1 -- * 22 |
ソースコード
from collections import deque n = int(input()) q = deque([i for i in range(10, 100) if int(str(i)[0]) < int(str(i)[1])]) res = [] while q and len(res) < n: x = q.popleft() res.append(x) y = int(str(x)+str(x)[-1]) q.append(y) res.sort() print(res[-1])