Submission #68907892


Source Code Expand

#include<bits/stdc++.h>
using namespace std;
#define int long long

int s[105];

int fun(int s) {
	int ans = 0;
	while (s) {
		ans = ans * 10 + s % 10;
		s /= 10;
	}
	return ans;
}

signed main() {

	//freopen(".in","r",stdin);
	//freopen(".out","w",stdout);

	cin >> s[1] >> s[2];
	for (int i = 3; i <= 10; i++)
		s[i] = fun(s[i - 1] + s[i - 2]);
	cout << s[10] << endl;

	return 0;
}

Submission Info

Submission Time
Task B - Fibonacci Reversed
User KDL_ANIPLEX
Language C++ 20 (gcc 12.2)
Score 200
Code Size 411 Byte
Status AC
Exec Time 1 ms
Memory 3680 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 16
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 1 ms 3520 KiB
00_sample_01.txt AC 1 ms 3516 KiB
00_sample_02.txt AC 1 ms 3532 KiB
01_random_00.txt AC 1 ms 3676 KiB
01_random_01.txt AC 1 ms 3528 KiB
01_random_02.txt AC 1 ms 3680 KiB
01_random_03.txt AC 1 ms 3452 KiB
01_random_04.txt AC 1 ms 3680 KiB
01_random_05.txt AC 1 ms 3472 KiB
01_random_06.txt AC 1 ms 3480 KiB
01_random_07.txt AC 1 ms 3468 KiB
02_handmade_00.txt AC 1 ms 3468 KiB
02_handmade_01.txt AC 1 ms 3492 KiB
02_handmade_02.txt AC 1 ms 3408 KiB
02_handmade_03.txt AC 1 ms 3520 KiB
02_handmade_04.txt AC 1 ms 3412 KiB