Skip to content

Commit

Permalink
Added ques in Self Learning
Browse files Browse the repository at this point in the history
  • Loading branch information
KaranSiddhu committed Feb 27, 2022
1 parent 4eb83b7 commit 78eb5d0
Showing 1 changed file with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define db double
#define ld long double
#define el "\n"

void solution(){
int n;
cin >> n;

for (int i = 1; i <= n; i++){
if (n == 1){
cout << "3";
break;
}

if (i == 1)
cout << 1;
else if (i == n)
cout << 5;
else
cout << 0;
}

cout << el;
}

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

int t;
cin >> t;
while (t--)
solution();

return 0;
}

0 comments on commit 78eb5d0

Please sign in to comment.