Submission #17715434
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int,int> P;
typedef pair<ll,ll> Pll;
typedef pair<string,string> Pstring;
typedef pair<double,double> Pdouble;
#define REP(i,n) for(ll i=0;i<n;i++)
#define REP1(i,n) for(ll i=1;i<=n;i++)
#define Precision13 cout << fixed << setprecision(13)
const double PI=3.14159265358979323846;
const int MAX = 510000;
const int MOD = 1000000007;
const int INF = 1<<29;
using Graph = vector<vector<int>>;
int main()
{
ll n;
cin >> n;
vector<string> s(n);
REP(i,n) cin >> s.at(i);
vector<ll> c(4,0);
REP(i,n){
if(s.at(i)=="AC"){
c.at(0)++;
}else if(s.at(i)=="WA"){
c.at(1)++;
}else if(s.at(i)=="TLE"){
c.at(2)++;
}else if(s.at(i)=="RE"){
c.at(3)++;
}
}
cout << "AC x " << c.at(0) << endl;
cout << "WA x " << c.at(1) << endl;
cout << "TLE x " << c.at(2) << endl;
cout << "RE x " << c.at(3) << endl;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Judge Status Summary |
| User | takkey |
| Language | C++ (GCC 9.2.1) |
| Score | 200 |
| Code Size | 994 Byte |
| Status | AC |
| Exec Time | 32 ms |
| Memory | 6440 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt |
| All | hand_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_17.txt, random_18.txt, random_19.txt, random_20.txt, sample_01.txt, sample_02.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| hand_01.txt | AC | 9 ms | 3576 KiB |
| random_02.txt | AC | 16 ms | 5024 KiB |
| random_03.txt | AC | 27 ms | 6276 KiB |
| random_04.txt | AC | 14 ms | 4488 KiB |
| random_05.txt | AC | 25 ms | 6228 KiB |
| random_06.txt | AC | 24 ms | 5544 KiB |
| random_07.txt | AC | 32 ms | 6440 KiB |
| random_08.txt | AC | 25 ms | 5764 KiB |
| random_09.txt | AC | 25 ms | 6276 KiB |
| random_10.txt | AC | 22 ms | 5784 KiB |
| random_11.txt | AC | 22 ms | 6288 KiB |
| random_12.txt | AC | 25 ms | 5384 KiB |
| random_13.txt | AC | 30 ms | 6240 KiB |
| random_14.txt | AC | 15 ms | 4520 KiB |
| random_15.txt | AC | 23 ms | 6172 KiB |
| random_16.txt | AC | 23 ms | 5716 KiB |
| random_17.txt | AC | 23 ms | 6280 KiB |
| random_18.txt | AC | 2 ms | 3648 KiB |
| random_19.txt | AC | 30 ms | 6172 KiB |
| random_20.txt | AC | 12 ms | 3588 KiB |
| sample_01.txt | AC | 2 ms | 3408 KiB |
| sample_02.txt | AC | 2 ms | 3468 KiB |