Submission #1346441


Source Code Expand

Copy
#include<bits/stdc++.h>
 
using namespace std;
 
const int INF = 1 << 30;
 
int main()
{
  int N, A[100];
  bool cnt[8] = {};
  cin >> N;
  bool only = true;
  int st = 0;
  for(int i = 0; i < N; i++) {
    cin >> A[i];
    only &= A[i] >= 3200;
    if(A[i] >= 3200) {
      ++st;
      continue;
    }
    cnt[A[i] / 400]++;
  }
  int ret = 0;
  for(int i = 0; i < 8; i++) ret += cnt[i];
  cout << max(1, ret) << endl;
  cout << ret + st << endl;
}

Submission Info

Submission Time
Task C - Colorful Leaderboard
User ei13333
Language C++14 (GCC 5.4.1)
Score 300
Code Size 475 Byte
Status
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 s1.txt, s2.txt, s3.txt
All 300 / 300 in1.txt, in2.txt, in3.txt, in4.txt, in5.txt, s1.txt, s2.txt, s3.txt
Case Name Status Exec Time Memory
in1.txt 1 ms 256 KB
in2.txt 1 ms 256 KB
in3.txt 1 ms 256 KB
in4.txt 1 ms 256 KB
in5.txt 1 ms 256 KB
s1.txt 1 ms 256 KB
s2.txt 1 ms 256 KB
s3.txt 1 ms 256 KB