Competitive Programming Solutions
415 subscribers
11 files
33 links
Download Telegram
Are you guys interested in Internship and jobs News ?
Anonymous Poll
94%
Yes
6%
No
SkillVertex- Internship Opportunity

#SkillVertex excited to announce realtime internships which gives industry oriented knowledge along with opportunities.

Realtime Internships from SkillVertex

1. Electric vehicle technology
2. Web Development
3. Drones technology
4. Robotics
5. Cyber Security
6. Construction and Planning
7. IC Engine Design

And Many More

30+ most
#advanced courses as per industry needs.

Fill the form to grab the opportunity
๐Ÿ‘‡๐Ÿ‘‡

https://forms.gle/s3BVRBqPFduiviQk9

#Natureoftraining:

โ€ข Industry oriented
โ€ข Realtime projects
โ€ข Live sessions
โ€ข Recognised by Govt of India
โ€ข Interaction with experts
โ€ข Certification
โ€ข Project Completion reports

Letโ€™s learn and grow.
ARE YOU GUYS READY FOR CODECHEF SOLUTION FOR TODAY ??
Anonymous Poll
89%
yes
11%
No
BE READY ANSWERS WILL BE UPLOADED SOON
AT 170 SUBS
SHOULD I UPLOAD THE ANSWER ?
Anonymous Poll
65%
YES
35%
HELL YESSSS!!!!
Capture.PNG
155.1 KB
FIND THE DIRECTION SOLUTION
NEXT SOLUTION AT 200 SUBS
Please open Telegram to view this post
VIEW IN TELEGRAM
Competitive Programming Solutions
Capture.PNG
OTHER SOLUTION


#include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while (t--)
{
int n;
cin>>n;

if(n%4==0)cout<<"North"<<endl;
else if(n%4==2)cout<<"South"<<endl;
else if(n%4==3)cout<<"West"<<endl;
else cout<<"East"<<endl;

}
return 0;
}
GRID FILL DONE
SOLUTION AT 240 SUBS
#include <bits/stdc++.h>
using namespace std;

int main() {
// your code goes here
int t;
cin>>t;
while(t--)
{
int n;
cin>>n;
if(n&1)
{vector<vector<int>>v(n,vector<int>(n,1));
int k=0;
for(int i=0;i<n;i++)
{
v[i][k]=-1;
k++;
}
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
cout<<v[i][j]<<" ";

cout<<endl;
}

}
else
{
vector<vector<int>>v(n,vector<int>(n,-1));
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
cout<<v[i][j]<<" ";

cout<<endl;
}
}

}
return 0;
}
Next solution at 280
Positive spewing done
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
NEXT SOLUTION AT 510 SUBS