亚洲精品中文字幕无乱码_久久亚洲精品无码AV大片_最新国产免费Av网址_国产精品3级片

IBM認(rèn)證 百分網(wǎng)手機(jī)站

ccf認(rèn)證考試試題答案

時間:2018-03-14 16:14:45 IBM認(rèn)證 我要投稿

ccf認(rèn)證考試試題答案

  CCF,中國計算機(jī)學(xué)會,英文全稱為China Computer Federation,簡稱CCF,成立于1962年,是中國計算機(jī)科學(xué)與技術(shù)領(lǐng)域群眾性學(xué)術(shù)團(tuán)體,屬一級學(xué)會,獨(dú)立法人單位,是中國科學(xué)技術(shù)協(xié)會的成員。下面是小編整理的關(guān)于ccf認(rèn)證考試試題答案,歡迎大家參考!

  1. 出現(xiàn)次數(shù)最多的數(shù)

  import java.util.*;

  public class Main {

  public static void main(String[] args) {

  new Main().run();

  }

  public void run() {

  Scanner fin = new Scanner(System.in);

  int N = fin.nextInt();

  int[] count = new int[10001];

  for (int i = 0; i < N; ++i) {

  ++count[fin.nextInt()];

  }

  int maxCount = -1;

  int result = 0;

  for (int i = 1; i <= 10000; ++i) {

  if (count[i] > maxCount) {

  maxCount = count[i];

  result = i;

  }

  }

  System.out.println(result);

  }

  }

  2.ISBN號碼

  import java.io.BufferedReader;

  import java.io.InputStreamReader;

  public class Main {

  } public static void main(String args[]) { } BufferedReader bin = new BufferedReader(new InputStreamReader(System.in)); try{ } int sum=0;char cc='0'; String isbn_0 = bin.readLine(); String isbn = isbn_0.replace("-", ""); for(int i=0; i<9; i++){ } sum = sum % 11; if(sum == 10) cc = 'X';// else cc = (char)(sum+48); if(cc == isbn.charAt(9)) System.out.println("Right"); else{ } e.printStackTrace(); isbn_0 = isbn_0.substring(0,12) + cc; System.out.println(isbn_0); int ii = (int)isbn.charAt(i)-48; sum += ii * (i+1); }catch(Exception e){

  3.最大的`矩形

  import java.util.*;

  public class Main {

  public static void main(String[] args) {

  new Main().run();

  }

  public void run() {

  Scanner fin = new Scanner(System.in);

  int N = fin.nextInt();

  int[] height = new int[N];

  for (int i = 0; i < N; ++i) height[i] = fin.nextInt();

  int result = 0;

  for (int i = 0; i < N; ++i) {

  int width = 1;

  for (int j = i - 1; j >= 0; --j) {

  if (height[j] < height[i]) break;

  ++width;

  }

  for (int j = i + 1; j < N; ++j) {

  if (height[j] < height[i]) break;

  ++width;

  }

  int area = width * height[i];

  result = Math.max(result, area);

  }

  System.out.println(result);

  }

  }

  4.有趣的數(shù)

  import java.util.*;

  public class Main {

  public static void main(String[] args) {

  new Main().run();

  }

  public void run() {

  Scanner fin = new Scanner(System.in);