CCF历年真题C语言答案.pdfVIP

  • 8
  • 0
  • 约3.1万字
  • 约 23页
  • 2023-06-08 发布于宁夏
  • 举报
CCF历年真题C语言答案--第1页 题 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 main() {

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档