2015年6月27日

UVa1339 Ancient Cipher

摘要: #include #include #include // for memset#include using namespace std;int main(){ int ce[26], co[26]; string encrypted, orginal; string::size_type i, ... 阅读全文

posted @ 2015-06-27 13:48 danny1221 阅读(150) 评论(0) 推荐(0) 编辑

2015年6月26日

UVa1587 Box

摘要: #include #include #include using namespace std;int main(){ set s; // 12个数字中不能出现3个以上不同的值,最多只有三种值:长、宽、高 int face[6]; int i = 0, w, h; while (cin >> w >>... 阅读全文

posted @ 2015-06-26 08:39 danny1221 阅读(392) 评论(0) 推荐(0) 编辑

2015年6月23日

UVa10340 All in All

摘要: #include #include using namespace std;int main(){ string s, t; string::size_type p, q; while (cin >> s >> t) { p = 0; for (string::const_iterator it... 阅读全文

posted @ 2015-06-23 04:11 danny1221 阅读(354) 评论(-1) 推荐(0) 编辑

2015年6月22日

UVa202 Repeating Decimals

摘要: 模拟手工运算,暂时只想到用map 阅读全文

posted @ 2015-06-22 16:49 danny1221 阅读(346) 评论(0) 推荐(0) 编辑

2015年6月21日

UVa1368/ZOJ3132 DNA Consensus String

摘要: 题目长但是很简单的水题 阅读全文

posted @ 2015-06-21 23:57 danny1221 阅读(159) 评论(0) 推荐(0) 编辑

UVa227 Puzzle

摘要: 输入特别坑,必须很小心,也不要想太复杂,开始N次WA,就是输入想太多 阅读全文

posted @ 2015-06-21 15:16 danny1221 阅读(260) 评论(0) 推荐(0) 编辑

UVa455 Periodic Strings

摘要: #include #include int main(){ int T, k, len; char str[81], *p, *q, *end; scanf("%d", &T); while (T--) { scanf("%s", str); len = strlen(str); end = ... 阅读全文

posted @ 2015-06-21 01:03 danny1221 阅读(188) 评论(0) 推荐(0) 编辑

UVa1225 Digit Counting

摘要: #include #include int main(){ int T, N, i, j; int a[10]; scanf("%d", &T); while (T--) { memset(a, 0, sizeof(a)); scanf("%d", &N); for (i = 1; i 0)... 阅读全文

posted @ 2015-06-21 00:20 danny1221 阅读(234) 评论(0) 推荐(0) 编辑

UVa1586 Molar mass

摘要: #include int GetQuantity(char* q, char** p){ int quantity = 0; while (*q && '0' <= *q && *q <= '9') { quantity = quantity*10 + (*q-'0'); ++q; } if (... 阅读全文

posted @ 2015-06-21 00:04 danny1221 阅读(386) 评论(0) 推荐(0) 编辑

2015年6月20日

UVa1585 Score

摘要: #include int main(){ int T, O, score; char str[81], *p; scanf("%d", &T); while (T--) { scanf("%s", str); O = score = 0; for (p = str; *p; ++p) { ... 阅读全文

posted @ 2015-06-20 23:34 danny1221 阅读(424) 评论(0) 推荐(0) 编辑

导航