Skip to content

Instantly share code, notes, and snippets.

View ravikiran0606's full-sized avatar
🎯
Focusing

Ravi Kiran Selvam ravikiran0606

🎯
Focusing
View GitHub Profile
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
long int t;
#include<bits/stdc++.h>
using namespace std;
unsigned long long calc[32];
void compute()
{
int i;
calc[0]=1;
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int t,x,y;
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
#include<bits/stdc++.h>
#define maxi 10000007
using namespace std;
int isprime[maxi],a[maxi],prmcnt[maxi];
void sieve(){
fill_n(isprime,maxi,1);
int i,j;
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int t;
#include<bits/stdc++.h>
using namespace std;
int main()
{
long int n,q,x,i,ans;
char ch;
cin>>n>>q;
int a[n]={0};
@ravikiran0606
ravikiran0606 / Staticmemebers.cpp
Last active July 30, 2016 17:21
C++ program to implement the use of static members in a class :
#include<bits/stdc++.h>
using namespace std;
class temp{
static int c;
public:
temp();
static void getcountsofar();
};
@ravikiran0606
ravikiran0606 / Complexclass.cpp
Last active July 30, 2016 17:25
C++ program to implement a Complex Class and make use of operator overloading:
#include<iostream>
#include<cmath>
using namespace std;
class cmplx{
float real,img;
public:
cmplx();
@ravikiran0606
ravikiran0606 / Complexclass2.cpp
Last active July 30, 2016 17:26
C++ program to implement a complex number class and its basic functions :
#include<iostream>
using namespace std;
class cmplx{
int real,img;
public:
cmplx(int x,int y);
void add(cmplx a,cmplx b);
void display();
};
cmplx::cmplx(int x=0,int y=0){