結果

問題 No.2246 1333-like Number
ユーザー okapinokapin
提出日時 2023-03-17 21:27:09
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 268 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 81,784 KB
実行使用メモリ 122,824 KB
最終ジャッジ日時 2023-10-18 13:55:43
合計ジャッジ時間 3,901 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
55,288 KB
testcase_01 AC 45 ms
55,288 KB
testcase_02 AC 59 ms
61,816 KB
testcase_03 AC 41 ms
55,296 KB
testcase_04 TLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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])
0