21 条题解
- 
  0
#include <iostream> #include <stdio.h> #include <math.h> #include <iomanip> using namespace std; const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; int k , n , one , five , ten; int main() { cin >> k; for( int i = 1 ; i <= k ; i++ ) { cin >> n; if( n == 1 ) { one += 1; } else if( n == 5 ) { five += 1; } else if( n == 10 ) { ten += 1; } } cout << one << endl << five << endl << ten; return 0; } 
信息
- ID
 - 972
 - 时间
 - 1000ms
 - 内存
 - 128MiB
 - 难度
 - 3
 - 标签
 - 递交数
 - 776
 - 已通过
 - 391
 - 上传者