Algorithm
Code Examples
#1 Code Example with C++ Programming
Code -
C++ Programming
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
#define debug(n) cout<<(n)<<endl;
const ll INF = 2e18 + 99;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin>>t;
while(t--){
int n;
cin>>n;
cout<<n<<endl;
}
}
Copy The Code &
Try With Live Editor
Input
2
2
1
2
1
Output
2
1
1
Demonstration
Codeforcess solution 1339-A A. Filling Diamonds, ,C++, Java, Js and Python,1339-A,Codeforcess solution