#include<iostream>
#include<cstring>
#include<vector>
using namespace std;
int main()
{
    int N;
    cin>>N;
    vector<string> str(N);
    for(int i = 0;i<N;i++)
        {
            cin>>str[i];
        }

    int ac = 0,wa = 0,tle = 0,re = 0;
    for(int i = 0;i<N;i++ )
        {
            if(str[i] == "AC")
                ac++;
            else if(str[i] == "WA")
                wa++;
            else if(str[i] == "TLE")
                tle++;
            else if(str[i]== "RE")
                re++;
        }
    cout<<"AC x "<<ac<<endl;
    cout<<"WA x "<<wa<<endl;
    cout<<"TLE x "<<tle<<endl;
    cout<<"RE x "<<re<<endl;
    cout<<"rere x"<<re<<endl ;

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: