CCF历年真题C语言答案试题.docVIP

  • 28
  • 0
  • 约1.31万字
  • 约 23页
  • 2018-11-02 发布于四川
  • 举报
题1:出现次数最多的数 #includestdio.h int main() { int i,j, n, s; int t = 1; int a[10001] = {0}; scanf(%d, n); for (i = 0; i n; i++) { scanf(%d, s); //下标为输入值,每个数组值为输入频数 a[s]++; if (a[s] a[t]) t=s; if (a[s] == a[t]) t=(st? s:t); } printf(%d, t); return 0; } 题2:ISBN号码 #includestdio.h int m

文档评论(0)

1亿VIP精品文档

相关文档