上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 50 下一页
摘要: //UVa12545 - Bits Equalizer//贪心#include#define MIN(X,Y) (((X)>(Y))?(Y):(X))using namespace std;int main(){ //freopen("UVa12545.in","r"... 阅读全文
posted @ 2017-04-03 09:47 gwj1139177410 阅读(83) 评论(0) 推荐(0) 编辑
摘要: //UVa1149 - Bin Packing//贪心,背包,乘船问题#include#includeusing namespace std;int a[101000]; //bagint main(){ //freopen("UVa1149.in","r",stdi... 阅读全文
posted @ 2017-04-03 09:47 gwj1139177410 阅读(86) 评论(0) 推荐(0) 编辑
摘要: //UVa673 - Parentheses Balance//已AC#include#include#includeusing namespace std;int main(){ int T; cin>>T; getchar(); //cin.get(); 读取整数... 阅读全文
posted @ 2017-04-03 09:39 gwj1139177410 阅读(81) 评论(0) 推荐(0) 编辑
摘要: //UVa1593 - Alignment of Code#include#include#include#include#includeusing namespace std;vector >ans;int len[200];void print(string &s... 阅读全文
posted @ 2017-04-03 09:38 gwj1139177410 阅读(119) 评论(0) 推荐(0) 编辑
摘要: //253 - Cube painting#include#include#includeusing namespace std;int main(){ string s1; int ans[2][3]; while(cin>>s1){ for(int i = 0;... 阅读全文
posted @ 2017-04-03 09:36 gwj1139177410 阅读(83) 评论(0) 推荐(0) 编辑
摘要: //UVa1589 - Xiangqi//WA#include#includeusing namespace std;typedef struct XYZ{ char name; int x,y; XYZ(int x = 0, int y = 0):x(x),y(y)... 阅读全文
posted @ 2017-04-03 09:35 gwj1139177410 阅读(113) 评论(0) 推荐(0) 编辑
摘要: //UVa815 - Flooded!//直接模拟,注意考虑临界情况#include#includeusing namespace std;int main(){ //freopen("UVa815.in","r",stdin); int n, m, kase = 1... 阅读全文
posted @ 2017-04-03 09:35 gwj1139177410 阅读(89) 评论(0) 推荐(0) 编辑
摘要: //UVa133 - The Dole Queue//Time out#include#define maxn 25using namespace std;int n, k, m, a[maxn];//p为初位置,逆时针走t步,d为-1时顺时针走,返回新位置int g... 阅读全文
posted @ 2017-04-03 09:33 gwj1139177410 阅读(99) 评论(0) 推荐(0) 编辑
摘要: //UVa1339 - Ancient Cipher//已AC#include#include#includeint cmp(const void *a, const void *b){ return *(int *)a - *(int *)b;}int mai... 阅读全文
posted @ 2017-04-03 09:32 gwj1139177410 阅读(71) 评论(0) 推荐(0) 编辑
摘要: /*ID:gwj11391LANG:C++TASK:beads*/#include#include#include#includeusing namespace std;int main(){ ifstream fin("beads.in"); ofstream fo... 阅读全文
posted @ 2017-04-03 09:23 gwj1139177410 阅读(84) 评论(0) 推荐(0) 编辑
上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 50 下一页
选择