- 博客(4)
- 收藏
- 关注
原创 UVa10340 ALL IN ALL AC
#include "stdio.h" #include "string.h" char a[100000],c; void main() { while (scanf("%s%*c",a)!=EOF) { int i=0; memset(a,0,sizeof(a)); while(scanf("%c",&c)&&c-10)///尽量不要让scanf去读回车 { if(c=
2017-05-24 23:47:42
252
原创 UVa1368 DNA Consensus string AC
#include "stdio.h" #include "string.h" #include "stdlib.h" #define MAX(a, b) ((a)>(b)?(a):(b)) int main() { int T,m,n,Hamming=0,ACGTMAX=0; char s[50][1000],ACGT[4]; scanf("%d",&T); while (T--) {
2017-05-20 23:55:16
310
原创 UVa232 Crossword Answers AC
输入一开始使用 while (gets(rc)) { if(rc[0]=='0') break; n=1; xingnum=0; memset(s,0,sizeof(s)); memset(num,0,sizeof(num)); r=rc[0]-'0';//行数 c=rc[2]-'0'; 但是这样不会被AC,会出现running error可能gets
2017-05-19 16:06:44
304
原创 UVa 227 Puzzle AC
#include "stdio.h" #include "string.h" #include "stdlib.h" #include "ctype.h" #define maxn 85 #define swap(a,b) a^=b^=a^=b int main() { int T,n; int count=0; char s[5][5]; char c; in
2017-05-18 13:01:39
223
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅