Submission #68906532
Source Code Expand
import bisect, heapq, sys, math, copy, itertools, decimal
from collections import defaultdict, deque
sys.setrecursionlimit(10**7)
def INT(): return int(input())
def MI(d=0): return map(lambda x:int(x)+d, input().split())
def MS(): return map(str, input().split())
def LI(d=0): return list(map(lambda x:int(x)+d, input().split()))
def LS(): return list(map(str, input().split()))
def pr_line(itr): print(*itr, sep='\n')
def pr_mtx(matrix): [print(*row) for row in matrix]
dij = [[1, 0], [0, 1], [-1, 0], [0, -1]]
dij2 = [[1, 0], [0, 1], [-1, 0], [0, -1], [1, 1], [1, -1], [-1, 1], [-1, -1]]
INF = float('inf')
def f(x):
s = list(str(x))
rev_s = s[::-1]
return int(''.join(rev_s))
X, Y = MI()
A = [X, Y]
for _ in range(10):
A.append(f(A[-1] + A[-2]))
print(A[9])
Submission Info
| Submission Time |
|
| Task |
B - Fibonacci Reversed |
| User |
BenKenobi |
| Language |
Python (PyPy 3.10-v7.3.12) |
| Score |
200 |
| Code Size |
806 Byte |
| Status |
AC |
| Exec Time |
181 ms |
| Memory |
95060 KiB |
Judge Result
| Set Name |
Sample |
All |
| Score / Max Score |
0 / 0 |
200 / 200 |
| Status |
|
|
| Set Name |
Test Cases |
| Sample |
00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All |
00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 02_handmade_00.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt, 02_handmade_04.txt |
| Case Name |
Status |
Exec Time |
Memory |
| 00_sample_00.txt |
AC |
178 ms |
94932 KiB |
| 00_sample_01.txt |
AC |
179 ms |
94828 KiB |
| 00_sample_02.txt |
AC |
178 ms |
94848 KiB |
| 01_random_00.txt |
AC |
179 ms |
94616 KiB |
| 01_random_01.txt |
AC |
179 ms |
95032 KiB |
| 01_random_02.txt |
AC |
176 ms |
94804 KiB |
| 01_random_03.txt |
AC |
176 ms |
94896 KiB |
| 01_random_04.txt |
AC |
177 ms |
94936 KiB |
| 01_random_05.txt |
AC |
179 ms |
95060 KiB |
| 01_random_06.txt |
AC |
177 ms |
94904 KiB |
| 01_random_07.txt |
AC |
179 ms |
94992 KiB |
| 02_handmade_00.txt |
AC |
181 ms |
94864 KiB |
| 02_handmade_01.txt |
AC |
179 ms |
94872 KiB |
| 02_handmade_02.txt |
AC |
177 ms |
94844 KiB |
| 02_handmade_03.txt |
AC |
180 ms |
94832 KiB |
| 02_handmade_04.txt |
AC |
178 ms |
95024 KiB |