結果
| 問題 | No.2246 1333-like Number |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-17 22:30:13 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 47 ms / 2,000 ms |
| コード長 | 1,499 bytes |
| コンパイル時間 | 261 ms |
| コンパイル使用メモリ | 82,160 KB |
| 実行使用メモリ | 58,624 KB |
| 最終ジャッジ日時 | 2024-09-18 11:36:57 |
| 合計ジャッジ時間 | 2,182 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
#pypy3の再帰速度向上
# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
#再帰回数の上限を上げる
# import sys
# sys.setrecursionlimit(10**8)
#両端キューの宣言
# from collections import deque
# d = deque()
#メモ化再帰(再帰する関数の上にデコレータを配置)
# from functools import lru_cache
# @lru_cache(maxsize = 1000000000000000000)
#頻出辞書用ライブラリ
# from collections import defaultdict
# di = defaultdict(int)
# コピーライブラリ
# import copy
# a = copy.copy(b)
# INF = float('inf')
# abc = "abcdefghijklmnopqrstuvwxyz"
# ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
def iinput(): return int(input())
def sinput(): return input().rstrip()
def i0input(): return int(input()) - 1
def linput(): return list(input().split())
def liinput(): return list(map(int, input().split()))
def miinput(): return map(int, input().split())
def li0input(): return list(map(lambda x: int(x) - 1, input().split()))
def mi0input(): return map(lambda x: int(x) - 1, input().split())
# Write code here.---------------------------------------------------------------------------------------
N = iinput()
A = 1
B = 2
C = 0
flg = False
while True:
while A < 10:
B = A + 1
while B < 10:
N -= 1
if N == 0:
flg = True
break
B += 1
if flg:
break
A += 1
if flg:
break
A = 1
C += 1
print(str(A)+str(B)*(C+1))