水题 ZOJ 3880 Demacia of the Ancients

 

题目传送门

 1 /*
 2     水题:)
 3 */
 4 #include <cstdio>
 5 #include <iostream>
 6 #include <algorithm>
 7 #include <cmath>
 8 #include <cstring>
 9 #include <string>
10 #include <map>
11 #include <set>
12 #include <queue>
13 #include <vector>
14 using namespace std;
15 
16 const int MAXN = 1e4 + 10;
17 const int INF = 0x3f3f3f3f;
18 
19 int main(void)      //ZOJ 3880 Demacia of the Ancients
20 {
21     //freopen ("L.in", "r", stdin);
22 
23     int t, n;
24     scanf ("%d", &t);
25     while (t--)
26     {
27         scanf ("%d", &n);
28         int ans = 0;    int x;
29         for (int i=1; i<=n; ++i)
30         {
31             scanf ("%d", &x);    if (x > 6000)  ans++;
32         }
33 
34         printf ("%d\n", ans);
35     }
36 
37     return 0;
38 }

 

posted @ 2015-04-26 13:38  Running_Time  阅读(171)  评论(0编辑  收藏  举报