結果
問題 | No.2246 1333-like Number |
ユーザー | missosiru |
提出日時 | 2023-03-17 22:30:13 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 49 ms / 2,000 ms |
コード長 | 1,499 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 81,516 KB |
実行使用メモリ | 59,088 KB |
最終ジャッジ日時 | 2023-10-18 15:25:50 |
合計ジャッジ時間 | 2,479 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 37 ms
53,352 KB |
testcase_01 | AC | 37 ms
53,352 KB |
testcase_02 | AC | 41 ms
59,080 KB |
testcase_03 | AC | 38 ms
53,352 KB |
testcase_04 | AC | 49 ms
59,088 KB |
testcase_05 | AC | 47 ms
59,088 KB |
testcase_06 | AC | 47 ms
59,088 KB |
testcase_07 | AC | 47 ms
59,088 KB |
testcase_08 | AC | 45 ms
59,088 KB |
testcase_09 | AC | 47 ms
59,088 KB |
testcase_10 | AC | 45 ms
59,088 KB |
testcase_11 | AC | 47 ms
59,088 KB |
testcase_12 | AC | 42 ms
59,088 KB |
testcase_13 | AC | 43 ms
59,088 KB |
testcase_14 | AC | 44 ms
59,088 KB |
testcase_15 | AC | 45 ms
59,088 KB |
testcase_16 | AC | 46 ms
59,088 KB |
testcase_17 | AC | 49 ms
59,088 KB |
testcase_18 | AC | 44 ms
59,088 KB |
testcase_19 | AC | 44 ms
59,088 KB |
testcase_20 | AC | 49 ms
59,088 KB |
testcase_21 | AC | 47 ms
59,088 KB |
testcase_22 | AC | 47 ms
59,088 KB |
testcase_23 | AC | 48 ms
59,088 KB |
testcase_24 | AC | 47 ms
59,088 KB |
testcase_25 | AC | 38 ms
53,352 KB |
testcase_26 | AC | 48 ms
59,088 KB |
ソースコード
#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))