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 阅读(190) 评论(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 阅读(235) 评论(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) 编辑

导航