๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.62K subscribers
5.59K photos
3 videos
95 files
10.2K links
๐ŸšฉMain Group - @SuperExams
๐Ÿ“Job Updates - @FresherEarth

๐Ÿ”ฐAuthentic Coding Solutions(with Outputs)
โš ๏ธDaily Job Updates
โš ๏ธHackathon Updates & Solutions

Buy ads: https://telega.io/c/cs_algo
Download Telegram
Autodesk Apprenticeship Program ๐Ÿš€๐Ÿš€

๐„๐ฅ๐ข๐ ๐ข๐›๐ข๐ฅ๐ข๐ญ๐ฒ ๐‚๐ซ๐ข๐ญ๐ž๐ซ๐ข๐š: 2023 and 2024 passouts only  

๐‹๐จ๐œ๐š๐ญ๐ข๐จ๐ง: Bangalore

๐€๐ฉ๐ฉ๐ซ๐ž๐ง๐ญ๐ข๐œ๐ž, ๐’๐จ๐Ÿ๐ญ๐ฐ๐š๐ซ๐ž ๐„๐ง๐ ๐ข๐ง๐ž๐ž๐ซ

https://autodesk.wd1.myworkdayjobs.com/en-US/Ext/job/Bengaluru-IND/Apprentice--Software-Engineer_23WD73763-1

๐€๐ฉ๐ฉ๐ซ๐ž๐ง๐ญ๐ข๐œ๐ž, ๐ˆ๐“ ๐’๐ฎ๐ฉ๐ฉ๐จ๐ซ๐ญ ๐š๐ง๐ ๐„๐ง๐ ๐ข๐ง๐ž๐ž๐ซ๐ข๐ง๐ 

https://autodesk.wd1.myworkdayjobs.com/en-US/Ext/job/Bengaluru-IND/Apprentice--IT-Support-and-Engineering-Team_23WD73764-1

๐€๐ฉ๐ฉ๐ซ๐ž๐ง๐ญ๐ข๐œ๐ž, ๐“๐š๐ฅ๐ž๐ง๐ญ ๐€๐œ๐ช๐ฎ๐ข๐ฌ๐ข๐ญ๐ข๐จ๐ง & ๐๐ž๐จ๐ฉ๐ฅ๐ž ๐„๐ฑ๐ฉ๐ž๐ซ๐ข๐ž๐ง๐œ๐ž  

https://autodesk.wd1.myworkdayjobs.com/en-US/Ext/job/Bengaluru-IND/Apprentice--Talent-Acquisition---People-Experience_23WD73769-1

๐€๐ฉ๐ฉ๐ซ๐ž๐ง๐ญ๐ข๐œ๐ž, ๐“๐ž๐œ๐ก๐ง๐ข๐œ๐š๐ฅ ๐’๐ฎ๐ฉ๐ฉ๐จ๐ซ๐ญ ๐’๐ฉ๐ž๐œ๐ข๐š๐ฅ๐ข๐ฌ๐ญ 

https://autodesk.wd1.myworkdayjobs.com/en-US/Ext/job/Bengaluru-IND/Apprentice--Technical-Support-Specialist_23WD73768-2
#include <iostream>
#include <vector>
#include <cmath>

#define MOD 1000000007
#define ll long long
#define vll vector<long long>

using namespace std;

ll solve(ll n) {
    vll v(n + 1);
    v[1] = 2;
    v[2] = 9;
    for (int i = 3; i <= n; i++) {
        v[i] = (4LL * v[i - 1] % MOD - v[i - 2] + 2 * (ll)pow(-1, i)) % MOD;
        v[i] = (v[i] + MOD) % MOD;
    }
    return v[n];
}

vll ways(const vll &nvalues) {
    vll results;
    for (const auto &n : nvalues) {
        results.push_back(solve(n));
    }
    return results;
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    ll n;
    cin >> n;

    vll a(n);
    for (ll i = 0; i < n; i++) {
        cin >> a[i];
    }

    vll ans = ways(a);

    for (const auto &result : ans) {
        cout << result << " ";
    }
    cout << endl;

    return 0;
}

Dominos Tilling 3Dโœ