pypy31 [백준 9019] DSLR - PyPy3 from collections import deque import sys def D(n): return 2*n % 10000, 'D' def S(n): return (n - 1) % 10000, 'S' def L(n): return (n % 1000) * 10 + n // 1000, 'L' def R(n): return (n % 10) * 1000 + n // 10, 'R' def find(n): answer = '' while n != A: answer = route[n] + answer n = check[n] print(answer) T = int(sys.stdin.readline().strip()) for tc in range(T): A, B = map(int, sys.stdin.readline().. 2021. 4. 6. 이전 1 다음