6 条题解
- 
  1
#include <stdio.h> #include <string.h> #include <math.h> #include <iostream> using namespace std; int a [10000]; int main() { int n ; cin >> n; int maxx = 0; for(int i = 0,x ;i < n ;i++) { double num; cin >> num; num = num * 100; x = num; a[x]++; maxx = max(maxx , a[x]); } for(int i = 1 ; i <= 10000 ; i++) { if(a[i] == maxx) { double j = i; printf("%.2lf %d\n",j/100.0 , a[i]); } } } 
信息
- ID
 - 999
 - 时间
 - 1000ms
 - 内存
 - 128MiB
 - 难度
 - 5
 - 标签
 - 递交数
 - 400
 - 已通过
 - 156
 - 上传者