Skip to content

Instantly share code, notes, and snippets.

View brickgao's full-sized avatar
🎯
Focusing

Xiongzhi Gao brickgao

🎯
Focusing
View GitHub Profile
@brickgao
brickgao / POJ-3020 Antenna Placement.cpp
Created August 31, 2012 09:04
POJ-3020 Antenna Placement
//By Brickgao
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <vector>
using namespace std;
#define MAXN 50
@brickgao
brickgao / POJ-3026 Borg Maze.cpp
Created September 4, 2012 16:04
POJ-3026 Borg Maze
//By Brickgao
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <queue>
@brickgao
brickgao / POJ-2195 Going Home.cpp
Created September 6, 2012 07:36
POJ-2195 Going Home
//By Brickgao
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <queue>
@brickgao
brickgao / Codeforces Round #137 (Div. 2) A.cpp
Created September 11, 2012 17:30
Codeforces Round #137 (Div. 2) A
//by Brickgao
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
using namespace std;
__int64 a[100100];
@brickgao
brickgao / Codeforces Round #137 (Div. 2) B.cpp
Created September 11, 2012 17:31
Codeforces Round #137 (Div. 2) B
//by Brickgao
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
using namespace std;
int n, m, k;
@brickgao
brickgao / Codeforces Round #137 (Div. 2) D.cpp
Created September 11, 2012 17:32
Codeforces Round #137 (Div. 2) D
//By Brickgao
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <vector>
using namespace std;
@brickgao
brickgao / Codeforces Round 141 (Div. 2) A.cpp
Created September 29, 2012 12:50
Codeforces Round 141 (Div. 2) A
//By Brickgao
#include <iostream>
#include <set>
#include <cstdio>
using namespace std;
int main()
{
__int64 tmp;
@brickgao
brickgao / Codeforces Round 141 (Div. 2) B.cpp
Created September 29, 2012 12:52
Codeforces Round 141 (Div. 2) B
//By Brickgao
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <vector>
using namespace std;
@brickgao
brickgao / Codeforces Round 142 (Div. 2) A.cpp
Created October 10, 2012 10:05
Codeforces Round 142 (Div. 2) A
//By Brickgao
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <vector>
using namespace std;
@brickgao
brickgao / Codeforces Round 142 (Div. 2) B.cpp
Created October 10, 2012 10:06
Codeforces Round 142 (Div. 2) B
//By Brickgao
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <vector>
using namespace std;