Skip to content

Instantly share code, notes, and snippets.

View likecs's full-sized avatar
👨‍💻
Chilling!!!

Bhuvnesh Jain likecs

👨‍💻
Chilling!!!
  • Faridabad, Haryana, India
View GitHub Profile
@likecs
likecs / gcdsum.cpp
Created September 28, 2016 09:55
Solution to Problem GCD Sum of hackerearth
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int MAX = 5e5 + 5;
const int MAX2 = 1e6 + 6;
const int MOD = 1e9 + 7;
int phi[MAX];
@likecs
likecs / huge_sum.cpp
Created September 28, 2016 15:52
Solution to "A huge Sum" on Hackerearth
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int MAX = 10000001;
const int MOD = 1e9 + 7;
#define inchar getchar_unlocked
#define outchar(x) putchar_unlocked(x)