Skip to content

Instantly share code, notes, and snippets.

View mob5566's full-sized avatar

Cody Wong mob5566

  • Taipei
View GitHub Profile
#include <iostream>
#include <cstdio>
#include <cstring>
#include <vector>
#include <cmath>
using namespace std;
#define N 510
#define EPS 1e-9
#include <iostream>
#include <cstdio>
#include <cstring>
#include <queue>
using namespace std;
struct Node {
int x, y;
Node ( int _x = 0, int _y = 0 ): x(_x), y(_y) {}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
#define N 105
#define clr(x,v) memset( x, v, sizeof(x) )
struct tNode {
#include <iostream>
#include <cstdio>
#include <cstring>
#include <queue>
using namespace std;
#define N 1005
#define clr(x,v) memset( x, v, sizeof(x) )
#define INF 2147483647
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
#define N 6005
#define clr(x,v) memset(x,v,sizeof(x))
struct tNode {
@mob5566
mob5566 / 3270 - Simplified GSM Network.cpp
Created April 18, 2014 11:34
3270 - Simplified GSM Network
#include <iostream>
#include <cstring>
#include <cstdio>
#include <cmath>
using namespace std;
#define N 60
#define EPS 1e-9
#define INF 1e8
@mob5566
mob5566 / 3274 - Crossing Streets.cpp
Created April 18, 2014 12:02
3274 - Crossing Streets
#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <queue>
using namespace std;
#define N 510
#define clr(x,v) memset( x, v, sizeof(x) )
@mob5566
mob5566 / A. Squats.cpp
Created April 25, 2014 16:58
A. Squats
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int n;
char s[250];
int ans, cnt, nd2;
@mob5566
mob5566 / Megacity.cpp
Created April 25, 2014 17:00
Megacity
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
#define EPS 1e-7
@mob5566
mob5566 / Magic Formulas.cpp
Created April 25, 2014 17:02
Magic Formulas
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int n;
int q;
int xx[1000005];