Skip to content

Instantly share code, notes, and snippets.

@RudraNilBasu
Last active November 28, 2016 09:59
Show Gist options
  • Save RudraNilBasu/8b42bb48233424c3cbb54cfc58a6ca20 to your computer and use it in GitHub Desktop.
Save RudraNilBasu/8b42bb48233424c3cbb54cfc58a6ca20 to your computer and use it in GitHub Desktop.
cpp file template
#include<stdio.h>
#include<string.h>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<math.h>
#include<iostream>
#define ll long long int
#define ull unsigned ll
#define SWAP(A,B) (A)=((A)+(B))-((B)=(A))
#define PI 3.14159265
//#define DEBUG(X) cout << (X) << endl;
#define DEBUG(x) cout << '>' << #x << ':' << x << endl;
#define DEBUGL(x) std::cerr << "In " << __FILE__ << " at line " << __LINE__ << #x << ' = ' << x << std::endl;
// inputs
#define inpd(x) scanf("%d",&x)
#define inpc(x) scanf("%c",&x)
using namespace std;
int max(int a, int b)
{
if(a>=b)
return a;
return b;
}
int max3(int a, int b, int c)
{
return max(a,max(b,c));
}
int gcd(int a, int b)
{
if(b==0)
return a;
return gcd(b,a%b);
}
int main()
{
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment