![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
uva
文章平均质量分 56
qingshicanhu1
这个作者很懒,什么都没留下…
展开
-
uva--1588
#include #include #include #include #define MAX_SIZE 200+5 int GETS(char str1[],char str2[]); int COMPARE(char str1[],char str2[]); void EXCHANGE(char str1[],char str2[]); void BACK(char str[]); int C原创 2015-01-30 10:05:06 · 378 阅读 · 0 评论 -
uva439
#include using namespace std; const int maxn = 128 + 10; int main() { int T; char str[maxn]; stacks; cin >> T; getchar(); while(T--) { while(!s.empty()) s.pop();原创 2015-03-11 22:16:58 · 366 阅读 · 0 评论 -
572
#include using namespace std; const int maxn = 100 + 5; char oil[maxn][maxn]; int n,m; void Find_at(int i, int j) { oil[i][j] = '*'; if(i n && j = m) return ; if(oil[i-1][j-1] == '@')F原创 2015-03-08 21:29:30 · 351 阅读 · 0 评论 -
10391
终于用map做了一道题 感觉如果可以重载 减号的话,用s2 - s1,在查找也挺好的。但我不会重载。。。 #include #include #include #include using namespace std; const int maxn = 120000 + 5; map words; int main() { string str[maxn]; int n =原创 2015-02-27 18:49:19 · 313 阅读 · 0 评论 -
1095
这道题并不顺利。。排序出了问题。。其实自己测样例的时候发现了。。但是今天没敲,,晚上重新写。。不过收获很大,,我没看题就想了方法,我目前知道的,,排序,,集合,,map #include #include #include using namespace std; const int maxn = 1000 + 5; struct node { int x,y; }a[maxn],原创 2015-02-28 20:11:24 · 417 阅读 · 0 评论 -
10763
排序就行了。。我想学map来着。。竟然没用的题解。哈希啥的。。 #include #include #include #include using namespace std; const int maxn = 500000 + 5; int main() { int a[maxn],b[maxn],n,mark; while原创 2015-02-27 18:51:40 · 353 阅读 · 0 评论 -
uva10935
有只有一张卡牌的情况。用栈写的,逗比的我都不愿多看一眼 #include #include #include #include #include using namespace std; const int maxn = 1000 + 5; int main() { int n,a[maxn],b[maxn]; stack x; while(cin >> n&&n)原创 2015-02-27 12:44:49 · 401 阅读 · 0 评论 -
10931
排序就行了。。我想学map来着。。竟然没用的题解。哈希啥的。。 #include #include #include #include using namespace std; const int maxn = 500000 + 5; int main() { int a[maxn],b[maxn],n,mark; while(cin >> n&&n) {原创 2015-02-27 17:24:25 · 662 阅读 · 0 评论 -
uva1593
第五章都是练习c++的,看了点书 ,教学视频,虽然懂了一点,但还是不行。自己写老是提交不对。目前就是看题解学c++。 今天终于找到了一个超级水题。不过,还是调了一会儿。因为vectora;不能直接输入。。。 #include #include #include using namespace std; const int maxn = 15 + 5; int main()原创 2015-02-27 09:22:18 · 446 阅读 · 0 评论 -
UVA1589xiangqi
先枚举了9种情况 2000行代码 调整字符数交上了 马少了情况 重写 查了一天的错 发现是输入不对 |%c + getchar()| 改成|%s|就过了 #include #include #include #include #define MAX_SIZE 11 typedef struct { char ch; int x; }Chessman; int Calculat原创 2015-02-09 08:53:56 · 387 阅读 · 0 评论 -
uva1590
#include #include #include #include int COMPARE(int a,int b,char str1[8],char str2[8]); int CALCULATE_1(char str1[],char str2[]); int CALCULATE_2(char str1[],char str2[],int sum1,int max); int TO_END(原创 2015-01-31 15:31:42 · 503 阅读 · 0 评论 -
uva-201
#include #include #include #include #define MAX_SIZE 9+9+1 void GETS_MARK(int ROW[][MAX_SIZE],int LINE[][MAX_SIZE]); void CALCULATE(int ROW[][MAX_SIZE],int LINE[][MAX_SIZE],int COUNT[],int SIZE); void原创 2015-01-31 21:28:57 · 354 阅读 · 0 评论 -
uva--253
好多天没写了,归来。 总是不想动脑子,错了好几遍,细节错误,打错字了都没发现。 说一下思路,让六个面都当一次顶面,每个面对着4种情况。 #include #include #include #include #define MAX_SIZE 12 void DIVID(char Str[],char str1[],char str2[]); void OUTPUT(char Str[],ch原创 2015-01-29 11:17:14 · 323 阅读 · 0 评论