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

Florida ·
更新时间:2024-09-20
· 659 次阅读

传送门 题意:

在这里插入图片描述
找规律,题意就是有多少种方式填充该图形
画两个就发现,输出n即可

代码: #include #include #include #include #include #include #include #include #include #include #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--) 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; } /* */
作者:_Alexander



diamonds CodeForces round div

需要 登录 后方可回复, 如果你还没有账号请 注册新账号