Competitive Programming Solutions
415 subscribers
11 files
33 links
Download Telegram
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
PLEASE GUYS SUPPORT BY SUBSCRIBING
Anonymous Poll
83%
KAR DIYA
17%
KAR RAHA / RAHI HU
HAPPY WITH MY TODAY'S PERFORMANCE ?
Anonymous Poll
47%
YES
53%
NO
💢💢💢💢💢💢💢
ChargePoint is Hiring

Job Role:
Software Engineer Intern

Education: Bachelor's/ Master's degree

Stream: CS, IT, ECE & Related branches

Year of Passing: 2022, 2023

Location: Gurgaon, India

Candidates with Interest in the engineering of iOS apps should apply for this role

Apply: https://www.chargepoint.com/about/opportunities/job/?gh_jid=5527544002
💢💢💢💢💢💢💢
Kreeti Technologies is Hiring Freshers

Qualification:
BE/BTech/ME/MTech/MCA

Branch:
All Branches

Batch:
2022

Percentage Criteria:
70% or more starting from 10th until degree

Last Date: 18th September, 2021

CTC
: 5.4 LPA - 6.5 LPA

Location:
Kolkata, India

Apply:
https://careers.kreeti.com/jobs/56-pool-campus-recruitment-drive-2022-passout
Want Udemy Coursera Courses for free ?
Anonymous Poll
79%
Yes
21%
No
​​🔰 The Data Science Course 2021: Complete Data Science Bootcamp 🔰

Complete Data Science Training: Mathematics, Statistics, Python, Advanced Statistics in Python, Machine & Deep Learning

⚠️ Source [Paid] :
https://bit.ly/3cQQpb4

🌀 Download Link [Free] :
https://bit.ly/3cOps7Q