226942026-01-15 16:41:17algoproJárdakövezés háromféle elemmelcpp17Wrong answer 0/302ms1032 KiB
// UUID: 1fa59de7-a136-456e-ab9b-addbdaa8af55
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using pll=pair<ll, ll>;

int main() {
	ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
	ll n; cin >> n;
	vector<ll> vec(n);
	vec[0]=2;
	vec[1]=11;
	for (ll i=2; i<n; i++) vec[i]=(vec[i-2]*11)%2023;
	cout << vec[n-1];
}
SubtaskSumTestVerdictTimeMemory
base0/30
1Accepted0/01ms316 KiB
2Wrong answer0/01ms316 KiB
3Wrong answer0/21ms508 KiB
4Wrong answer0/21ms316 KiB
5Wrong answer0/21ms316 KiB
6Wrong answer0/21ms316 KiB
7Wrong answer0/21ms316 KiB
8Wrong answer0/21ms316 KiB
9Wrong answer0/21ms624 KiB
10Wrong answer0/21ms564 KiB
11Wrong answer0/22ms820 KiB
12Wrong answer0/32ms820 KiB
13Wrong answer0/31ms316 KiB
14Wrong answer0/31ms316 KiB
15Wrong answer0/32ms1032 KiB