Solution of URI 1864::Our Days Are Never Coming Back
Before seeing the solution make sure that you have tried enough. Don’t copy the whole code, just find out the logic. If you feel any problem, you will inform me by comment.
#include <bits/stdc++.h>
using namespace std;
int main(){
int N;
string str = "LIFE IS NOT A PROBLEM TO BE SOLVED";
while(cin>>N){
for(int i=0;i<N;i++){
cout<<str[i];
}
cout<<endl;
}
return 0;
}
No comments