結果

問題 No.2246 1333-like Number
コンテスト
ユーザー hellopra
提出日時 2023-03-18 18:22:48
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 247 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 134 ms
コンパイル使用メモリ 84,992 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2026-04-06 16:54:02
合計ジャッジ時間 1,681 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = int(input())
L = []
for i in range(12,100):
    s = str(i)
    if int(s[0]) < int(s[1]):
        L.append(i)

le = len(L)
y = N//le
if N % le == 0:
    print(str(L[-1])+str(L[-1]%10)*(y-1))
else:
    x = L[N%le-1]
    print(str(x)+str(x%10)*y)
0