結果
問題 | No.2766 Delicious Multiply Spice |
ユーザー |
![]() |
提出日時 | 2024-05-31 21:35:48 |
言語 | PyPy3 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 1,038 bytes |
コンパイル時間 | 423 ms |
コンパイル使用メモリ | 82,564 KB |
実行使用メモリ | 849,128 KB |
最終ジャッジ日時 | 2024-05-31 21:36:02 |
合計ジャッジ時間 | 11,462 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 140 ms
89,168 KB |
testcase_01 | AC | 139 ms
89,112 KB |
testcase_02 | AC | 135 ms
89,268 KB |
testcase_03 | AC | 137 ms
89,004 KB |
testcase_04 | AC | 161 ms
88,900 KB |
testcase_05 | AC | 139 ms
89,276 KB |
testcase_06 | AC | 147 ms
88,836 KB |
testcase_07 | AC | 142 ms
89,020 KB |
testcase_08 | AC | 145 ms
88,972 KB |
testcase_09 | AC | 139 ms
89,100 KB |
testcase_10 | AC | 138 ms
89,156 KB |
testcase_11 | AC | 144 ms
89,428 KB |
testcase_12 | AC | 142 ms
89,376 KB |
testcase_13 | AC | 152 ms
89,348 KB |
testcase_14 | AC | 168 ms
88,784 KB |
testcase_15 | AC | 138 ms
88,936 KB |
testcase_16 | AC | 138 ms
89,084 KB |
testcase_17 | AC | 140 ms
89,068 KB |
testcase_18 | AC | 140 ms
88,920 KB |
testcase_19 | AC | 148 ms
89,316 KB |
testcase_20 | AC | 169 ms
97,972 KB |
testcase_21 | AC | 1,304 ms
447,836 KB |
testcase_22 | MLE | - |
testcase_23 | AC | 948 ms
380,908 KB |
testcase_24 | AC | 1,102 ms
427,228 KB |
testcase_25 | MLE | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
testcase_31 | -- | - |
testcase_32 | -- | - |
testcase_33 | -- | - |
testcase_34 | -- | - |
testcase_35 | -- | - |
testcase_36 | -- | - |
testcase_37 | -- | - |
testcase_38 | -- | - |
ソースコード
from heapq import heappush, heappop, heapify from collections import defaultdict, deque,Counter from math import ceil, floor, sqrt, factorial,gcd,cos,sin,pi from itertools import permutations, combinations,product from bisect import bisect_left, bisect_right from copy import deepcopy from fractions import Fraction from random import randint import sys from functools import cache,lru_cache #@lru_cache(maxsize=None) from time import time #from sortedcontainers import SortedList # type: ignore #sys.setrecursionlimit(10**6) vector1 = [[0, -1], [1, 0], [0, 1], [-1, 0]] vector2 = [[0, 1], [1, 0], [-1, 0], [0, -1], [1,-1], [-1, 1], [1, 1], [-1, -1]] alphabet = "abcdefghijklmnopqrstuvwxyz" def main(): N = int(input()) q = deque() q.append([1,""]) while q: x,s = q.popleft() if x == N: print(s) return else: q.append([2 * x + 1,s + "A"]) q.append([3 * x + 1,s + "B"]) if __name__ == '__main__': main()