gwj1139177410的博客

Link-Cut, Time doesn’t stop. Prepare your doubts, Eat them up.

UVa12545 - Bits Equalizer

//UVa12545 - Bits Equalizer //贪心 #include #define MIN(X,Y) (((X)>(Y))?(Y):(X)) using namespace std; int main(){ //freopen("UVa12545...

2017-04-03 09:47:08

阅读数:186

评论数:0

UVa1149 - Bin Packing

//UVa1149 - Bin Packing //贪心,背包,乘船问题 #include<iostream> #include<algorithm> using namespace std; int a[10...

2017-04-03 09:46:41

阅读数:136

评论数:0

UVa673 - Parentheses Balance

//UVa673 - Parentheses Balance //已AC #include<iostream> #include<string> #include<stack&am...

2017-04-03 09:39:16

阅读数:154

评论数:0

UVa1593 - Alignment of Code

//UVa1593 - Alignment of Code #include<iostream> #include<string> #include<sstream>...

2017-04-03 09:38:27

阅读数:157

评论数:0

UVa253 - Cube painting

//253 - Cube painting #include<iostream> #include<cstring> #include<algorithm> usin...

2017-04-03 09:36:18

阅读数:120

评论数:0

UVa1589 - Xiangqi

//UVa1589 - Xiangqi //WA #include #include using namespace std; typedef struct XYZ{ char name; int x,y; XYZ(int x = 0, int y = 0):x(x),y(y){}; };...

2017-04-03 09:35:29

阅读数:123

评论数:0

UVa815 - Flooded!

//UVa815 - Flooded! //直接模拟,注意考虑临界情况 #include #include using namespace std; int main(){ //freopen("UVa815.in","r&quot...

2017-04-03 09:34:36

阅读数:233

评论数:0

UVa133 - The Dole Queue

//UVa133 - The Dole Queue //Time out #include #define maxn 25 using namespace std; int n, k, m, a[maxn]; //p为初位置,逆时针走t步,d为-1时顺时针走,返回新位置 int go(int p...

2017-04-03 09:32:54

阅读数:133

评论数:0

UVa1339 - Ancient Cipher

//UVa1339 - Ancient Cipher //已AC #include #include #include int cmp(const void *a, const void *b){ return *(int *)a - *(int *)b; } int main(){ /...

2017-04-03 09:31:58

阅读数:207

评论数:0

USACO1.1.4 - Broken Necklace

/* ID:gwj11391 LANG:C++ TASK:beads */ #include<iostream> #include<algorithm> #include<string&a...

2017-04-03 09:23:15

阅读数:125

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭