
其他不太懂的作业
我是小小朋友
这个作者很懒,什么都没留下…
展开
-
输出在行、列中最大的数
InputThe first line has a number k(0<k<20), where k means there are k groups of test data. In the following lines, input the test data that are separated by one blank line. In each group, the te原创 2014-03-30 15:04:42 · 484 阅读 · 0 评论 -
输入一串以#为结束的字母,统计出现的次数,并用冒泡法排序?
#include int main(){ int a[26]={0},i,j,t,b[26]; char c,k; while((c=getchar())!='#') {if(c>='a'&&c<='z') a[c-'a']++; } for(i=0;i<26;i++) b[i]='a'+i; for(i=0;i<25;i++) for(j=0;j<25-i;j+原创 2014-03-30 15:07:36 · 1752 阅读 · 0 评论