摘要:
//UVa12545 - Bits Equalizer//贪心#include#define MIN(X,Y) (((X)>(Y))?(Y):(X))using namespace std;int main(){ //freopen("UVa12545.in","r"... 阅读全文
摘要:
//UVa1149 - Bin Packing//贪心,背包,乘船问题#include#includeusing namespace std;int a[101000]; //bagint main(){ //freopen("UVa1149.in","r",stdi... 阅读全文
摘要:
//UVa673 - Parentheses Balance//已AC#include#include#includeusing namespace std;int main(){ int T; cin>>T; getchar(); //cin.get(); 读取整数... 阅读全文
摘要:
//UVa1593 - Alignment of Code#include#include#include#include#includeusing namespace std;vector >ans;int len[200];void print(string &s... 阅读全文
摘要:
//253 - Cube painting#include#include#includeusing namespace std;int main(){ string s1; int ans[2][3]; while(cin>>s1){ for(int i = 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)... 阅读全文
摘要:
//UVa815 - Flooded!//直接模拟,注意考虑临界情况#include#includeusing namespace std;int main(){ //freopen("UVa815.in","r",stdin); int n, m, kase = 1... 阅读全文
摘要:
//UVa133 - The Dole Queue//Time out#include#define maxn 25using namespace std;int n, k, m, a[maxn];//p为初位置,逆时针走t步,d为-1时顺时针走,返回新位置int g... 阅读全文
摘要:
//UVa1339 - Ancient Cipher//已AC#include#include#includeint cmp(const void *a, const void *b){ return *(int *)a - *(int *)b;}int mai... 阅读全文
摘要:
/*ID:gwj11391LANG:C++TASK:beads*/#include#include#include#includeusing namespace std;int main(){ ifstream fin("beads.in"); ofstream fo... 阅读全文