133292025-01-07 15:13:17MezeiDavidToronyépítés (80 pont)cpp17Wrong answer 0/809ms4148 KiB
#include <iostream>
#include<vector>

using namespace std;

int main()
{
   int n;
    cin >> n;
    vector<int>x (n);
    x[0] =3;
    x[1] = 10;
    for(int i=2; i<n; i++){
        x[i] = (x[i - 2] + 3 * x[i - 1]) % 20210108;
    }
    cout << x[n];
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/80
1Wrong answer0/01ms316 KiB
2Wrong answer0/01ms316 KiB
3Wrong answer0/41ms316 KiB
4Wrong answer0/41ms500 KiB
5Wrong answer0/51ms316 KiB
6Wrong answer0/51ms316 KiB
7Wrong answer0/69ms4148 KiB
8Wrong answer0/62ms820 KiB
9Wrong answer0/71ms316 KiB
10Wrong answer0/71ms316 KiB
11Wrong answer0/83ms1212 KiB
12Wrong answer0/89ms4048 KiB
13Wrong answer0/88ms3840 KiB
14Wrong answer0/84ms1732 KiB
15Wrong answer0/21ms316 KiB
16Wrong answer0/21ms508 KiB