摘要:        
水题http://acm.hdu.edu.cn/showproblem.php?pid=3787关键点:1)整数范围表示所需要的字符串长度。2)字符串转化为整数的函数。看代码#include <stdio.h>#define MAX_ARRAY 16int StringToNum(char *str);int main(){ char Aarray[MAX_ARRAY],Barray[MAX_ARRAY]; while(scanf("%s%s",Aarray,Barray)!= EOF) { //printf("%s\t%s\n",Aarra    阅读全文
posted @ 2012-03-17 15:02
westfly
阅读(293)
评论(0)
推荐(0)
        
            
        
        
摘要:        
http://acm.hdu.edu.cn/showproblem.php?pid=1235刚开始没有注意题目。效率不高。数组直接开到N了。View Code #include <stdio.h>#define MAX_ARRAY 1000int main(){ int scores[MAX_ARRAY]; int nTotal; int focus; int i; while(scanf("%d",&nTotal) &&nTotal) { for(i = 0; i < nTotal; ++i) { ...    阅读全文
posted @ 2012-03-17 10:24
westfly
阅读(209)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号