Codeforces Round # 633 (Div. 2) A. Filling Diamonds

Portal

Topic:

Insert picture description here
Looking for the rule, the meaning is how many ways to fill the figure.
Draw two and find that output n

Code:

#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <string.h>
#include <vector>
#include <math.h>
#include <map>
#include <queue>
#include <set>
#include <stack>
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define fi first
#define se second
#define all(x) (x).begin(),(x).end()
#define SZ(x) ((int)(x).size())
#define debug(x) cout<<x<<endl
#define rep(i,a,b) for(int i=a;i<=b;i++)
#define per(i,a,b) for(int i=a;i>=b;i--)
typedef long long ll;
using namespace std;
const int MAXN=1e5+50;
const int inf=0x3f3f3f3f;
const int mod=1e9+7;
//::iterator it;
int main()
{
    std::ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
    ll t,n;
    cin>>t;
    while(t--){
        cin>>n;
        cout<<n<<endl;
    }
    return 0;
}
/*

*/

 
 
Published 191 original articles · praised 17 · 30,000+ views

Guess you like

Origin blog.csdn.net/weixin_44091178/article/details/105481842