buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <algorithm>
#include <iostream>
#define ll long long
using namespace std;
int main() {
ll n;
cin >> n;
ll count1 = 0, count2 = 0, count3 = 0, count4 = 0;
for (ll i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC") {
count1++;
} else if (s == "WA") {
count2++;
} else ... | #include <algorithm>
#include <iostream>
#define ll long long
using namespace std;
int main() {
ll n;
cin >> n;
ll count1 = 0, count2 = 0, count3 = 0, count4 = 0;
for (ll i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC") {
count1++;
} else if (s == "WA") {
count2++;
} else ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 159 |
#include <algorithm>
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(obj) (obj).begin(), (obj).end()
using namespace std;
typedef long long ll;
long long GCD(long long x, long long y) { return y ? GCD(y, x % y) : x; }
int main() {
int N;
cin >> N;
map<string, int> mp;
mp["AC"... | #include <algorithm>
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(obj) (obj).begin(), (obj).end()
using namespace std;
typedef long long ll;
long long GCD(long long x, long long y) { return y ? GCD(y, x % y) : x; }
int main() {
int N;
cin >> N;
map<string, int> mp;
mp["AC"... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 196 |
n = int(input())
inp = {}
for i in range(n):
a = input()
if inp.get(a) is None:
inp[a] = 0
inp[a] += 1
print(f"AC x {0 if inp.get('AC') is None else inp.get('AC')}")
print(f"WA x {0 if inp.get('WA') is None else inp.get('WA')}")
print(f"TLE x {0 if inp.get('TLE') is None else inp.get('TLE')}")
print... | n = int(input())
inp = {}
for i in range(n):
a = input()
if inp.get(a) is None:
inp[a] = 0
inp[a] += 1
print(f"AC x {0 if inp.get('AC') is None else inp.get('AC')}")
print(f"WA x {0 if inp.get('WA') is None else inp.get('WA')}")
print(f"TLE x {0 if inp.get('TLE') is None else inp.get('TLE')}")
print... | [["-", 0, 666, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 666, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 205, 41, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 205, 41, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 163 |
from sys import stdin, stdout
import math,sys
from itertools import permutations, combinations
from collections import defaultdict,deque,OrderedDict
from os import path
import bisect as bi
import heapq
def yes():print('YES')
def no():print('NO')
if (path.exists('input.txt')):
#------------------Sublime-----------... | from sys import stdin, stdout
import math,sys
from itertools import permutations, combinations
from collections import defaultdict,deque,OrderedDict
from os import path
import bisect as bi
import heapq
def yes():print('YES')
def no():print('NO')
if (path.exists('input.txt')):
#------------------Sublime-----------... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 377 |
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int ac = 0;
int tle = 0;
int re = 0;
int wa = 0;
string p;
while (n--) {
cin >> p;
if (p == "AC") {
ac++;
} else if (p == "TLE") {
tle++;
} else if (p == "WA") {
wa++;
} else {
re++;
... | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int ac = 0;
int tle = 0;
int re = 0;
int wa = 0;
string p;
while (n--) {
cin >> p;
if (p == "AC") {
ac++;
} else if (p == "TLE") {
tle++;
} else if (p == "WA") {
wa++;
} else {
re++;
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 148 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC")
ac++;
if (s == "WA")
wa++;
if (s == "TLE")
tle++;
if (s == "RE")
r... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC")
ac++;
if (s == "WA")
wa++;
if (s == "TLE")
tle++;
if (s == "RE")
r... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 205 |
n = int(input())
AC=0
WA=0
TLE=0
RE=0
list1 = []
for _ in range(n):
s = input()
list1.append(s)
for i in list1:
if(i=='AC'): AC+=1
elif(i=='WA'): WA+=1
elif(i=="TLE"): TLE+=1
else:
RE+=1
print("AC x",AC )
print("WA x",WA )
print("TLE x",TLE )
print("Re x",RE ) | n = int(input())
AC=0
WA=0
TLE=0
RE=0
list1 = []
for _ in range(n):
s = input()
list1.append(s)
for i in list1:
if(i=='AC'): AC+=1
elif(i=='WA'): WA+=1
elif(i=="TLE"): TLE+=1
else:
RE+=1
print("AC x",AC )
print("WA x",WA )
print("TLE x",TLE )
print("RE x",RE ) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 121 |
N=int(N)
S=[input() for i in range(N)]
A=S.count('AC')
B=S.count('WA')
C=S.count('TLE')
D=S.count('RE')
print('AC x',A)
print('WA x',B)
print('TLE x',C)
print('RE x',D)
| N=int(input())
S=[input() for i in range(N)]
A=S.count('AC')
B=S.count('WA')
C=S.count('TLE')
D=S.count('RE')
print('AC x',A)
print('WA x',B)
print('TLE x',C)
print('RE x',D)
| [["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 92 |
#include <bits/stdc++.h>
#include <unordered_map>
using namespace std;
int main() {
string s;
int n;
unordered_map<string, int> m;
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> s;
m[s]++;
}
string z[4] = {"AC", "WA", "TLE", "RE"};
for (int i = 0; i < 4; ++i) {
cout << z[i] << " X " << m[z[... | #include <bits/stdc++.h>
#include <unordered_map>
using namespace std;
int main() {
string s;
int n;
unordered_map<string, int> m;
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> s;
m[s]++;
}
string z[4] = {"AC", "WA", "TLE", "RE"};
for (int i = 0; i < 4; ++i) {
cout << z[i] << " x " << m[z[... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 122 |
n=int(input())
ac=0
wa=0
tle=0
re=0
for i in range(n):
s=input()
if s=='ac':
ac+=1
elif s=='wa':
wa+=1
elif s=='tle':
tle+=1
else:
re+=1
print("AC x %s"%ac)
print("WA x %s"%wa)
print("TLE x %s"%tle)
print("RE x %s"%re)
| n=int(input())
ac=0
wa=0
tle=0
re=0
for i in range(n):
s=input()
if s=='AC':
ac+=1
elif s=='WA':
wa+=1
elif s=='TLE':
tle+=1
else:
re+=1
print("AC x %s"%ac)
print("WA x %s"%wa)
print("TLE x %s"%tle)
print("RE x %s"%re) | [["-", 8, 196, 0, 57, 15, 666, 0, 557, 0, 6], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 6], ["-", 0, 57, 75, 665, 15, 666, 0, 557, 0, 6], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 6]] | 5 | 100 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 154 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, a = 0, t = 0, r = 0, w = 0;
cin >> n;
while (n--) {
string str;
cin >> str;
if (str[0] == 'A') {
a++;
} else if (str[0] == 'W') {
w++;
} else if (str[0] == 'T') {
t++;
} else {
r++;
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, a = 0, t = 0, r = 0, w = 0;
cin >> n;
while (n--) {
string str;
cin >> str;
if (str[0] == 'A') {
a++;
} else if (str[0] == 'W') {
w++;
} else if (str[0] == 'T') {
t++;
} else {
r++;
}
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 150 |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define FOR(i, a, n) for (int i = a; i < n; i++)
#define mp make_pair
#define RFOR(i, a, n) for (int i = n; i > a; i--)
#define pii pair<long long int, long long int>
#define ub upper_bound
#define lb lower_bound
#define MOD 1000000007
typedef long long... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define FOR(i, a, n) for (int i = a; i < n; i++)
#define mp make_pair
#define RFOR(i, a, n) for (int i = n; i > a; i--)
#define pii pair<long long int, long long int>
#define ub upper_bound
#define lb lower_bound
#define MOD 1000000007
typedef long long... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 204 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
map<string, int> m;
m["AC"] = 0;
m["WA"] = 0;
m["TLE"] = 0;
m["RE"] = 0;
while (n--) {
string s;
cin >> s;
m[s]++;
}
cout << "AC x " << m["AC"] << '\n';
cout << "WA x " << m["WA"] << '\n';
cout << "TLE x " << m["TLE"] <... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
map<string, int> m;
m["AC"] = 0;
m["WA"] = 0;
m["TLE"] = 0;
m["RE"] = 0;
while (n--) {
string s;
cin >> s;
m[s]++;
}
cout << "AC x " << m["AC"] << '\n';
cout << "WA x " << m["WA"] << '\n';
cout << "TLE x " <... | [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 150 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define gap ' '
#define L(i) ((i) - (&i))
const ll inf = 1e9 + 7;
const int MAXN = 2 * 1e5 + 10;
int main() {
int n;
cin >> n;
int W = 0, A = 0, T = 0, R = 0;
for (int i = 0; i < n; ++i) {
string t;
cin >> t;... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define gap ' '
#define L(i) ((i) - (&i))
const ll inf = 1e9 + 7;
const int MAXN = 2 * 1e5 + 10;
int main() {
int n;
cin >> n;
int W = 0, A = 0, T = 0, R = 0;
for (int i = 0; i < n; ++i) {
string t;
cin >> t;... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 186 |
/*
AUTHOR : Ankit Kumar
BRANCH : Information Technology
INSTITUTE : Birla Institute of Technology
*/
#include <bits/stdc++.h>
using namespace std;
#define fast \
ios_base::sync_with_stdio(0); ... | /*
AUTHOR : Ankit Kumar
BRANCH : Information Technology
INSTITUTE : Birla Institute of Technology
*/
#include <bits/stdc++.h>
using namespace std;
#define fast \
ios_base::sync_with_stdio(0); ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 1,400 |
// SAIKH SERAJ FAHIM, CSE-19-HSTU, BANGLADESH.
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int n, i, ac = 0, wa = 0, tle = 0, re = 0;
cin >> n;
cin.ignore();
for (i = 0; i < n; i++) {
getline(cin, s);
if (s == "AC")
ac++;
else if (s == "WA")
wa++;
else if ... | // SAIKH SERAJ FAHIM, CSE-19-HSTU, BANGLADESH.
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int n, i, ac = 0, wa = 0, tle = 0, re = 0;
cin >> n;
cin.ignore();
for (i = 0; i < n; i++) {
getline(cin, s);
if (s == "AC")
ac++;
else if (s == "WA")
wa++;
else if ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 175 |
/*
* Name : chaitanya
*
* Institute : ANITS,Visakhapatnam
* "Don't regret anything you do, because in the end it makes you who you
* are."
*
*/
#include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>... | /*
* Name : chaitanya
*
* Institute : ANITS,Visakhapatnam
* "Don't regret anything you do, because in the end it makes you who you
* are."
*
*/
#include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 189 |
#include <algorithm>
#include <cassert>
#include <chrono>
#include <climits>
#include <cmath>
#include <ctime>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <... | #include <algorithm>
#include <cassert>
#include <chrono>
#include <climits>
#include <cmath>
#include <ctime>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 283 |
n=int(input())
a,b,c,d=0,0,0,0
for _ in range(n):
s=input()
if(s=="AC"):
a+=1
elif(s=="WA"):
b+=1
elif(s=="TLE"):
c+=1
else:
d+=1
print("AC X",a)
print("WA X",b)
print("TLE X",c)
print("RE X",d) | n=int(input())
a,b,c,d=0,0,0,0
for _ in range(n):
s=input()
if(s=="AC"):
a+=1
elif(s=="WA"):
b+=1
elif(s=="TLE"):
c+=1
else:
d+=1
print("AC x",a)
print("WA x",b)
print("TLE x",c)
print("RE x",d) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 109 |
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> ans(4);
string s;
for (int i = 0; i < n; i++) {
cin >> s;
if (s == "AC") {
ans[0]++;
} else if (s == "WA") {
ans[1]++;
} else if (s == "TLE") {
ans[2]++;
... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> ans(4);
string s;
for (int i = 0; i < n; i++) {
cin >> s;
if (s == "AC") {
ans[0]++;
} else if (s == "WA") {
ans[1]++;
} else if (s == "TLE") {
ans[2]++;
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 174 |
n = int(input())
s = list(input().split())
print("AC x ",s.count("AC"))
print("WA x ",s.count("WA"))
print("TLE x ",s.count("TLE"))
print("RE x ",s.count("RE"))
| n = int(input())
s = list(input() for i in range(n))
print("AC x ",s.count("AC"))
print("WA x ",s.count("WA"))
print("TLE x ",s.count("TLE"))
print("RE x ",s.count("RE"))
| [["-", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 0, 662, 12, 652, 3, 668, 0, 659, 0, 88], ["+", 0, 662, 12, 652, 3, 668, 0, 659, 31, 22], ["+", 0, 662, 12, 652, 3, 668, 0, 659, 0, 267], ["+", 12, 652, 3, 668, 0, 659, 12, 652, 63, 22], ["+", 3, 668, 0, 659, 12, 652, 3... | 5 | 80 |
n = int(input())
lis = [0 for i in range(4)]
mo = ["AC","WA","TLE","RE"]
for ii in range(n):
i = input()
if i=="AC":
lis[0]+=1
elif i=="WA":
lis[1]+=1
elif i=="TLE":
lis[2]+=1
elif i == "RE":
lis[3]+=1
for i in range(4):
tmp = "{0} × {1}".format(mo[i],lis[i])
... | n = int(input())
lis = [0 for i in range(4)]
mo = ["AC","WA","TLE","RE"]
for ii in range(n):
i = input()
if i=="AC":
lis[0]+=1
elif i=="WA":
lis[1]+=1
elif i=="TLE":
lis[2]+=1
elif i == "RE":
lis[3]+=1
for i in range(4):
tmp = "{0} x {1}".format(mo[i],lis[i])
... | [["-", 0, 662, 12, 652, 63, 319, 500, 557, 0, 6], ["+", 0, 662, 12, 652, 63, 319, 500, 557, 0, 6]] | 5 | 134 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, ac = 0, wa = 0, tle = 0, re = 0;
cin >> n;
while (n--) {
string s;
cin >> s;
if (s == "AC") {
ac++;
} else if (s == "WA") {
wa++;
} else if (s == "tle") {
tle++;
} else {
re++;
}
}
printf("A... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, ac = 0, wa = 0, tle = 0, re = 0;
cin >> n;
while (n--) {
string s;
cin >> s;
if (s == "AC") {
ac++;
} else if (s == "WA") {
wa++;
} else if (s == "TLE") {
tle++;
} else {
re++;
}
}
printf("A... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 121 |
n = int(input())
L = {'AC':0, 'WA':0, 'TLE':0, 'RE':0}
for i in range(n):
s = input()
L[s] += 1
for l in L.keys():
print(l, '×', L[l]) | n = int(input())
L = {'AC':0, 'WA':0, 'TLE':0, 'RE':0}
for i in range(n):
s = input()
L[s] += 1
for l in L.keys():
print(l, 'x', L[l]) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 76 |
using namespace std;
#define ll long long
#include <bits/stdc++.h>
int main() {
ll n;
cin >> n;
ll wa = 0;
ll ac = 0;
ll tle = 0;
ll re = 0;
for (ll i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC")
ac++;
else if (s == "WA")
wa++;
else if (s == "TLE")
tle++;
... | using namespace std;
#define ll long long
#include <bits/stdc++.h>
int main() {
ll n;
cin >> n;
ll wa = 0;
ll ac = 0;
ll tle = 0;
ll re = 0;
for (ll i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC")
ac++;
else if (s == "WA")
wa++;
else if (s == "TLE")
tle++;
... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 203 |
n = int(input())
str_list = [input() for _ in range(n)]
a=0
b=0
c=0
d=0
for i in range(n):
if str_list[i] == 'AC':
a += 1
elif str_list[i] == 'WA':
b += 1
elif str_list[i] == 'TLE':
c +=1
else :
d +=1
print('AC x'+ str(a))
print('WA... | n = int(input())
str_list = [input() for _ in range(n)]
a=0
b=0
c=0
d=0
for i in range(n):
if str_list[i] == 'AC':
a += 1
elif str_list[i] == 'WA':
b += 1
elif str_list[i] == 'TLE':
c +=1
else :
d +=1
print('AC x '+ str(a))
print('W... | [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 130 |
#include <stdio.h>
#include <string.h>
int main() {
int i, N, c0, c1, c2, c3;
char *buf;
char *AC = "AC";
char *WA = "WA";
char *TLE = "TLE";
char *RE = "RE";
c0 = c1 = c2 = c3 = 0;
scanf("%d", &N);
for (i = 0; i < N; i++) {
scanf("%s", buf);
if (strcmp(buf, AC) == 0) {
c0++;
} el... | #include <stdio.h>
#include <string.h>
int main() {
int i, N, c0, c1, c2, c3;
char buf[10];
char *AC = "AC";
char *WA = "WA";
char *TLE = "TLE";
char *RE = "RE";
c0 = c1 = c2 = c3 = 0;
scanf("%d", &N);
for (i = 0; i < N; i++) {
scanf("%s", buf);
if (strcmp(buf, AC) == 0) {
c0++;
}... | [["-", 0, 14, 8, 9, 0, 43, 49, 84, 0, 48], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 0, 70], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 0, 73]] | 0 | 213 |
N=int(input())
s=[]
for i in range(N):
s.append(input())
aa=["AC","WA","TLE","RE"]
for a in aa:
print("{} × {}".format(a,str(s.count(a)))) | N=int(input())
s=[]
for i in range(N):
s.append(input())
aa=["AC","WA","TLE","RE"]
for a in aa:
print("{} x {}".format(a,str(s.count(a)))) | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 73 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cin.ignore();
int a = 0, w = 0, t = 0, r = 0;
while (n--) {
string st;
getline(cin, st);
if (st == "AC")
a++;
// else if(t=="AC") a++;
else if (st == "WA")
w++;
else if (st == "TLE")
t++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
while (cin >> n) {
cin.ignore();
int a = 0, w = 0, t = 0, r = 0;
while (n--) {
string st;
getline(cin, st);
if (st == "AC")
a++;
// else if(t=="AC") a++;
else if (st == "WA")
w++;
else i... | [["+", 0, 30, 0, 14, 8, 9, 0, 52, 0, 89], ["+", 0, 14, 8, 9, 0, 52, 15, 339, 0, 24], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 14, 8, 9, 0, 52, 15, 339, 0, 25], ["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 45], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 14, 8, 9, 0, 52... | 1 | 172 |
a = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for i in range(a):
s = input()
if s == "AC":
AC = AC + 1
continue
if s == "AC":
WA = WA + 1
continue
if s == "TLE":
TLE = TLE + 1
continue
if s == "RE":
RE = RE + 1
continue
print("AC x ... | a = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for i in range(a):
s = input()
if s == "AC":
AC = AC + 1
continue
if s == "WA":
WA = WA + 1
continue
if s == "TLE":
TLE = TLE + 1
continue
if s == "RE":
RE = RE + 1
continue
print("A... | [["-", 8, 196, 0, 57, 15, 666, 0, 557, 0, 6], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 6]] | 5 | 129 |
#include <algorithm>
#include <fstream>
#include <iostream>
#include <math.h>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef long double ld;
int ceil(int a, int m) {
// division of a and m
if (a % m == 0) {
return a / m;
} else {
return a / m + 1... | #include <algorithm>
#include <fstream>
#include <iostream>
#include <math.h>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef long double ld;
int ceil(int a, int m) {
// division of a and m
if (a % m == 0) {
return a / m;
} else {
return a / m + 1... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 255 |
#include <bits/stdc++.h>
#include <vector>
using namespace std;
int main() {
vector<string> result;
vector<string> S;
result.push_back("AC");
result.push_back("WA");
result.push_back("TLE");
result.push_back("RE");
int N;
int a = 0, b = 0, c = 0, d = 0;
cin >> N;
string word;
for (int i = 0; i < N... | #include <bits/stdc++.h>
#include <vector>
using namespace std;
int main() {
vector<string> result;
vector<string> S;
result.push_back("AC");
result.push_back("WA");
result.push_back("TLE");
result.push_back("RE");
int N;
int a = 0, b = 0, c = 0, d = 0;
cin >> N;
string word;
for (int i = 0; i < N... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 259 |
n=int(input())
ac,wa,tl,re=0,0,0,0
for i in range(n):
s=input()
if(s=="AC"):
ac+=1
if(s=="WA"):
wa+=1
if(s=="TLE"):
tl+=1
else:
re+=1
print("AC",'x',ac)
print("WA",'x',wa)
print("TLE",'x',tl)
print("RE",'x',re)
| n=int(input())
ac,wa,tl,re=0,0,0,0
for i in range(n):
s=input()
if(s=="AC"):
ac+=1
elif(s=="WA"):
wa+=1
elif(s=="TLE"):
tl+=1
else:
re+=1
print("AC",'x',ac)
print("WA",'x',wa)
print("TLE",'x',tl)
print("RE",'x',re)
| [["-", 0, 656, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 75, 665, 0, 683]] | 5 | 125 |
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
import bisect
import random
from itertools import permutations, accumulate, combinations, product
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial, ceil, floor, acos, asin, at... | from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
import bisect
import random
from itertools import permutations, accumulate, combinations, product
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial, ceil, floor, acos, asin, at... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 407 |
<?php
// Your code here!
$arr = array(0, 0, 0, 0);
$n = fgets(STDIN);
for ($i = 0; $i <= $n; $i++){
$s = trim(fgets(STDIN));
switch ($s){
case 'AC':
$arr[0] = $arr[0] + 1;
break;
case 'WA':
$arr[1] = $arr[1] + 1;
break;
case 'TLE':
... | <?php
// Your code here!
$arr = array(0, 0, 0, 0);
$n = fgets(STDIN);
for ($i = 0; $i <= $n; $i++){
$s = trim(fgets(STDIN));
switch ($s){
case 'AC':
$arr[0] = $arr[0] + 1;
break;
case 'WA':
$arr[1] = $arr[1] + 1;
break;
case 'TLE':
... | [["-", 0, 493, 0, 1, 0, 619, 0, 609, 0, 610], ["+", 0, 493, 0, 1, 0, 619, 0, 609, 0, 610]] | 6 | 194 |
a = int(input())
jud = []
for i in range(a):
jud.append(input().strip())
print(a)
print('AC x '+str(jud.count('AC')))
print('WA x '+str(jud.count('WA')))
print('TLE x '+str(jud.count('TLE')))
print('RE x '+str(jud.count('RE'))) | a = int(input())
jud = []
for i in range(a):
jud.append(input().strip())
print('AC x '+str(jud.count('AC')))
print('WA x '+str(jud.count('WA')))
print('TLE x '+str(jud.count('TLE')))
print('RE x '+str(jud.count('RE'))) | [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 108 |
import collections
n = int(input())
m = [input() for i in range(n)]
ans = [0,0,0,0]
for i in m:
if i == "AC":
ans[0] += 1
elif i == "WA":
ans[1] += 1
elif i == "TLE":
ans[2] += 1
elif i == "RE":
nas[3] += 1
print("AC x "+str(ans[0]))
print("WA x "+str(a... | n = int(input())
m = [input() for i in range(n)]
ans = [0,0,0,0]
for i in m:
if i == "AC":
ans[0] += 1
elif i == "WA":
ans[1] += 1
elif i == "TLE":
ans[2] += 1
elif i == "RE":
ans[3] += 1
print("AC x "+str(ans[0]))
print("WA x "+str(ans[1]))
print("TLE... | [["-", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 64, 196, 0, 1, 0, 677, 31, 206, 51, 22], ["+", 64, 196, 0, 1, 0, 677, 31, 206, 51, 22], ["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 148 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int c1 = 0;
int c2 = 0;
int c3 = 0;
int c4 = 0;
for (int i = 0; i < a; i++) {
String s = sc.next();
if (s.equals("AC"))
c1++;
... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int c1 = 0;
int c2 = 0;
int c3 = 0;
int c4 = 0;
for (int i = 0; i < a; i++) {
String s = sc.next();
if (s.equals("AC"))
c1++;
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 491]] | 3 | 245 |
n = int(input()); s = []
for _ in range(n):
s.append(input())
dic = {"AC":0,
"WA":0,
"TLE":0,
"RE":0}
for res in s:
dic[s] += 1
for k in dic:
print(f"{k} x {dic[k]}") | n = int(input()); s = []
for _ in range(n):
s.append(input())
dic = {"AC":0,
"WA":0,
"TLE":0,
"RE":0}
for res in s:
if res in dic: dic[res] += 1
for k in dic:
print(f"{k} x {dic[k]}") | [["+", 0, 656, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 267], ["+", 0, 656, 0, 7, 8, 196, 0, 57, 0, 102], ["+", 64, 196, 0, 1, 0, 677, 31, 206, 51, 22], ["-", 8, 196, 0, 1, 0, 677, 31, 206, 206, 22], ["+", 64, 196, 0, 1, 0, 677, 31, 206, 206, 22]... | 5 | 87 |
#include <iostream>
using namespace std;
int main() {
int n, i, a, b, c, d;
a = 0;
b = 0;
c = 0;
d = 0;
cin >> n;
string s[n];
for (i = 0; i < n; i++) {
cin >> s[i];
}
for (i = 0; i < n; i++) {
if (s[i] == "AC") {
a++;
} else if (s[i] == "WA") {
b++;
} else if (s[i] =... | #include <iostream>
using namespace std;
int main() {
int n, i, a, b, c, d;
a = 0;
b = 0;
c = 0;
d = 0;
cin >> n;
string s[n];
for (i = 0; i < n; i++) {
cin >> s[i];
}
for (i = 0; i < n; i++) {
if (s[i] == "AC") {
a++;
} else if (s[i] == "WA") {
b++;
} else if (s[i] =... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 195 |
#include <bits/stdc++.h>
#define int long long
#define pp pair<int, int>
#define ss second
#define ff first
using namespace std;
signed main() {
int t, a = 0, b = 0, c = 0, d = 0;
string s;
// string s1="x";
cin >> t;
for (int i = 0; i < t; i++) {
cin >> s;
if (s == "AC")
a++;
if (s == "TLE... | #include <bits/stdc++.h>
#define int long long
#define pp pair<int, int>
#define ss second
#define ff first
using namespace std;
signed main() {
int t, a = 0, b = 0, c = 0, d = 0;
string s;
// string s1="x";
cin >> t;
for (int i = 0; i < t; i++) {
cin >> s;
if (s == "AC")
a++;
if (s == "TLE... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 159 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
int c = 0, c1 = 0, c2 = 0, c3 = 0;
string s[100000];
cin >> t;
for (int i = 0; i < t; ++i) {
cin >> s[i];
if (s[i] == "AC")
c++;
if (s[i] == "WA")
c1++;
if (s[i] == "TLE")
c2++;
if (s[i] == "RE")
c3+... | #include <bits/stdc++.h>
using namespace std;
int main() {
int t;
int c = 0, c1 = 0, c2 = 0, c3 = 0;
string s[100000];
cin >> t;
for (int i = 0; i < t; ++i) {
cin >> s[i];
if (s[i] == "AC")
c++;
if (s[i] == "WA")
c1++;
if (s[i] == "TLE")
c2++;
if (s[i] == "RE")
c3+... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 161 |
numberotestcase = int(input())
verdicat=[]
for step in range(numberotestcase):
exp = input().upper()
verdicat.append(exp)
first = verdicat.count('AC')
sec = verdicat.count('WA')
thir = verdicat.count('TLE')
fou = verdicat.count('RE')
print('AC * '+str(first))
print('WA * '+str(sec))
print('TLE * '+str(thir))
pri... | numberotestcase = int(input())
verdicat=[]
for step in range(numberotestcase):
exp = input().upper()
verdicat.append(exp)
first = verdicat.count('AC')
sec = verdicat.count('WA')
thir = verdicat.count('TLE')
fou = verdicat.count('RE')
print('AC x '+str(first))
print('WA x '+str(sec))
print('TLE x '+str(thir))
pr... | [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 119 |
result = ["AC","WA","TLE","RE"]
result_num = [0,0,0,0]
case = input("")
case = int(case)
list = []
A = 0
while A < case:
inp = input("")
if inp == result[0] or inp == result[1] or inp == result[2] or inp == result[3]:
list.append(inp)
A = A + 1
A = 0
while A < case:
if list[A] == result[0]:
resu... |
result = ["AC","WA","TLE","RE"]
result_num = [0,0,0,0]
case = input("")
case = int(case)
list = []
A = 0
while A < case:
inp = input("")
if inp == result[0] or inp == result[1] or inp == result[2] or inp == result[3]:
list.append(inp)
A = A + 1
A = 0
while A < case:
if list[A] == result[0]:
resu... | [["-", 0, 57, 75, 665, 15, 666, 0, 206, 206, 612], ["+", 0, 57, 75, 665, 15, 666, 0, 206, 206, 612], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 247 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int n, ac = 0, wa = 0, re = 0, tle = 0;
cin >> n;
string str[n];
for (int i = 0; i < n; i++) {
cin >> str[i];
}
for (int i = 0; i < n; i++) {
if (str[i] == "AC")
ac++;
else if (str[i] == "TLE")
tle++;
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int n, ac = 0, wa = 0, re = 0, tle = 0;
cin >> n;
string str[n];
for (int i = 0; i < n; i++) {
cin >> str[i];
}
for (int i = 0; i < n; i++) {
if (str[i] == "AC")
ac++;
else if (str[i] == "TLE")
tle++;
... | [["+", 75, 76, 0, 57, 64, 1, 0, 27, 17, 29]] | 1 | 181 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define i1 int128_t
#define vi vector<long long>
#define st set<long long>
#define uset unordered_set<long long>
#define si set<long long>::iterator
#define pb push_back
#define mp make_pair
#define f(i, a, b) for (long long i = a; i < b; i++)
#define ... | #include <bits/stdc++.h>
// #include<boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision;
using namespace std;
#define ll long long
#define i1 int128_t
#define vi vector<long long>
#define st set<long long>
#define uset unordered_set<long long>
#define si set<long long>::iterator
#define pb push_... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 185 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll n;
cin >> n;
string a[n];
for (ll i = 0; i < n; i++) {
cin >> a[i];
}
string c;
ll ans[4] = {0};
for (ll i = 0; i < n; i++) {
c = a[i];
if (c == "AC")... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll n;
cin >> n;
string a[n];
for (ll i = 0; i < n; i++) {
cin >> a[i];
}
string c;
ll ans[4] = {0};
for (ll i = 0; i < n; i++) {
c = a[i];
if (c == "AC")... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 226 |
#include <bits/stdc++.h>
using namespace std;
main() {
int n, ac, wa, lte, re;
cin >> n;
string S;
ac = 0;
wa = 0;
lte = 0;
re = 0;
for (int i = 0; i < n; i++) {
cin >> S;
if (S == "AC") {
ac++;
continue;
}
if (S == "WA") {
wa++;
continue;
}
if (S == "LTE"... | #include <bits/stdc++.h>
using namespace std;
main() {
int n, ac, wa, lte, re;
cin >> n;
string S;
ac = 0;
wa = 0;
lte = 0;
re = 0;
for (int i = 0; i < n; i++) {
cin >> S;
if (S == "AC") {
ac++;
continue;
}
if (S == "WA") {
wa++;
continue;
}
if (S == "TLE"... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 165 |
// Tue Jun 30 14:06:52 IST 2020
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define forn(ii, a, b) for (int ii = (int)a; ii < (int)b; ii++)
#define debug(x) cerr << #x << " " << x << " -- \n"
#define I__O ios::sync_with_stdio(false), cin.tie(NULL), cout.tie(NUL... | // Tue Jun 30 14:06:52 IST 2020
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define forn(ii, a, b) for (int ii = (int)a; ii < (int)b; ii++)
#define debug(x) cerr << #x << " " << x << " -- \n"
#define I__O ios::sync_with_stdio(false), cin.tie(NULL), cout.tie(NUL... | [["-", 0, 14, 8, 9, 0, 43, 39, 344, 141, 78], ["+", 0, 14, 8, 9, 0, 43, 39, 344, 141, 78], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 358 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, ac_count = 0, wa_count = 0, tle_count = 0, re_count = 0;
string j;
cin >> N;
while (cin >> j) {
if (equal(j.begin(), j.end(), "AC") == 0) {
ac_count++;
} else if (equal(j.begin(), j.end(), "WA") == 0) {
wa_count++;
} els... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, ac_count = 0, wa_count = 0, tle_count = 0, re_count = 0;
string j;
cin >> N;
while (cin >> j) {
if (equal(j.begin(), j.end(), "AC") == true) {
ac_count++;
} else if (equal(j.begin(), j.end(), "WA") == true) {
wa_count++;
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 146], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 146]] | 1 | 204 |
N = int(input())
S = []
word_list = ["AC","WA","TLE","RE"]
for i in range(N):
array = input()
S.append(array)
for i in range(4):
print(word_list[i] +"×"+str(S.count(word_list[i]))) | N = int(input())
S = []
word_list = ["AC","WA","TLE","RE"]
for i in range(N):
array = input()
S.append(array)
for i in range(4):
print(word_list[i] +" x "+str(S.count(word_list[i]))) | [["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 82 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String[] s = new String[n];
for (int i = 0; i < n; i++) {
s[i] = sc.next();
}
int c0 = 0;
int c1 = 0;
int c2 = 0;
int c3 = 0;
for (i... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String[] s = new String[n];
for (int i = 0; i < n; i++) {
s[i] = sc.next();
}
int c0 = 0;
int c1 = 0;
int c2 = 0;
int c3 = 0;
for (i... | [["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]] | 3 | 219 |
#include <bits/stdc++.h>
// #include<boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision;
using namespace std;
#define ll long long
#define i1 int128_t
#define vi vector<long long>
#define st set<long long>
#define uset unordered_set<long long>
#define si set<long long>::iterator
#define pb push_... | #include <bits/stdc++.h>
// #include<boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision;
using namespace std;
#define ll long long
#define i1 int128_t
#define vi vector<long long>
#define st set<long long>
#define uset unordered_set<long long>
#define si set<long long>::iterator
#define pb push_... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 193 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <list>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (n); ++i)
int main() {
int n;
cin >> n;
vector<string> s(n);
rep(i, n) cin >> s[i];
... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <list>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (n); ++i)
int main() {
int n;
cin >> n;
vector<string> s(n);
rep(i, n) cin >> s[i];
... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 189 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
int n;
cin >> n;
vector<string> S(n);
string test[4] = {"AC", "WA", "TLE", "RE"};
vector<int> count(4);
for (string &e : S)
cin >> e;
for (int j = 0; j < n; j++) {
for (int i = 0; i < 4; i++) {
if (test[i] ==... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
int n;
cin >> n;
vector<string> S(n);
string test[4] = {"AC", "WA", "TLE", "RE"};
vector<int> count(4);
for (string &e : S)
cin >> e;
for (int j = 0; j < n; j++) {
for (int i = 0; i < 4; i++) {
if (test[i] ==... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 165 |
#include <stdio.h>
int main() {
int n, i;
int c[] = {0, 0, 0, 0};
char s[100000][4];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s", s[i]);
if (s[i][0] == 'A' && s[i][1] == 'C')
c[0]++;
else if (s[i][0] == 'W' && s[i][1] == 'A')
c[1]++;
else if (s[i][0] == 'T' && s[i][1]... | #include <stdio.h>
int main() {
int n, i;
int c[] = {0, 0, 0, 0};
char s[100000][4];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s", s[i]);
if (s[i][0] == 'A' && s[i][1] == 'C')
c[0]++;
else if (s[i][0] == 'W' && s[i][1] == 'A')
c[1]++;
else if (s[i][0] == 'T' && s[i][1]... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 272 |
using namespace std;
#include <iostream>
int main() {
int n;
cin >> n;
int ac = 0, wa = 0, tle = 0, re = 0;
while (n--) {
string s;
cin >> s;
if (s == "AC")
ac++;
else if (s == "WA")
wa++;
else if ("TLE" == s)
tle;
else
re++;
}
cout << "AC x " << ac << endl;
... | using namespace std;
#include <iostream>
int main() {
int n;
cin >> n;
int ac = 0, wa = 0, tle = 0, re = 0;
while (n--) {
string s;
cin >> s;
if (s == "AC")
ac++;
else if (s == "WA")
wa++;
else if ("TLE" == s)
tle++;
else
re++;
}
cout << "AC x " << ac << endl;... | [["+", 75, 76, 0, 57, 64, 1, 0, 27, 17, 29]] | 1 | 128 |
#include <bits/stdc++.h>
using namespace std;
#define FASTIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
int main() {
... | #include <bits/stdc++.h>
using namespace std;
#define FASTIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
int main() {
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 190 |
package main
import "fmt"
func main() {
var (
count int
judge string
ac int
wa int
tle int
re int
)
fmt.Scan(&count)
for i := 0; i < count; i++ {
fmt.Scan(&judge)
if judge == "AC" {
ac++
} else if judge == "WA" {
wa++
} else if judge == "TLE" {
tle++
} else {
re++
}... | package main
import "fmt"
func main() {
var (
count int
judge string
ac int
wa int
tle int
re int
)
fmt.Scan(&count)
for i := 0; i < count; i++ {
fmt.Scan(&judge)
if judge == "AC" {
ac++
} else if judge == "WA" {
wa++
} else if judge == "TLE" {
tle++
} else {
re++
}... | [] | 7 | 153 |
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(300000)
def solve(N: int, S: "List[str]"):
s = {'AC': 0, 'WA': 0, 'TLE':0, 'RE':0}
for c in S:
s[c] += 1
for c in ['AC', 'WA', 'TLE', 'RE']:
print('{} X {}'.format(c, s[c]))
return
def main():
def iterate_tokens():
f... | #!/usr/bin/env python3
import sys
sys.setrecursionlimit(300000)
def solve(N: int, S: "List[str]"):
s = {'AC': 0, 'WA': 0, 'TLE':0, 'RE':0}
for c in S:
s[c] += 1
for c in ['AC', 'WA', 'TLE', 'RE']:
print('{} x {}'.format(c, s[c]))
return
def main():
def iterate_tokens():
f... | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 174 |
N = int(input())
S = [0]*N
AC = int(0)
WA = int(0)
TLE = int(0)
RE = int(0)
for i in range(0,N):
S[i] = input()
if(S[i]=='AC'):
AC += 1
if(S[i]=='WA'):
WA += 1
if(S[i]=='TLE'):
TLE += 1
if(S[i]=='RE'):
RE += 1
print('AC *', AC)
print('WA *', WA)
print('TLE *', TLE)
print('RE *', RE) | N = int(input())
S = [0]*N
AC = int(0)
WA = int(0)
TLE = int(0)
RE = int(0)
for i in range(0,N):
S[i] = input()
if(S[i]=='AC'):
AC += 1
if(S[i]=='WA'):
WA += 1
if(S[i]=='TLE'):
TLE += 1
if(S[i]=='RE'):
RE += 1
print('AC x', AC)
print('WA x', WA)
print('TLE x', TLE)
print('RE x', RE) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 149 |
n = int(input())
s = []
for i in range(n):
s.append(input())
out = {"AC":0,"WA":0,"TLE":0,"RE":0}
for i in range(n):
out[s[i]] += 1
for i in ["AC","WA","TLE","RE"]:
print(f"{i} × {out[i]}")
| n = int(input())
s = []
for i in range(n):
s.append(input())
out = {"AC":0,"WA":0,"TLE":0,"RE":0}
for i in range(n):
out[s[i]] += 1
for i in ["AC","WA","TLE","RE"]:
print(f"{i} x {out[i]}")
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 108 |
#include <bits/stdc++.h>
using namespace std;
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define int l... | #include <bits/stdc++.h>
using namespace std;
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define int l... | [["-", 36, 36, 0, 30, 0, 43, 39, 344, 141, 78], ["+", 36, 36, 0, 30, 0, 43, 39, 344, 141, 78], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 134 |
#include <stdio.h>
#include <string.h>
int main() {
long int n, a = 0, b = 0, c = 0, d = 0;
char s[100000][4];
scanf("%ld", &n);
for (int i = 0; i < n; i++) {
scanf("%s", s[i]);
}
for (int i = 0; i < n; i++) {
if (strcmp(s[i], "AC") == 0)
a++;
if (strcmp(s[i], "WA") == 0)
b++;
if... | #include <stdio.h>
#include <string.h>
int main() {
long int n, a = 0, b = 0, c = 0, d = 0;
char s[100000][4];
scanf("%ld", &n);
for (int i = 0; i < n; i++) {
scanf("%s", s[i]);
}
for (int i = 0; i < n; i++) {
if (strcmp(s[i], "AC") == 0)
a++;
if (strcmp(s[i], "WA") == 0)
b++;
if... | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 208 |
import math
import sys
def main():
n = int(input())
s = [input() for i in range(n)]
c0,c1,c2,c3 = 0,0,0,0
for i in range(n):
if "AC" in s[i]:
c0 += 1
if s[i] in 'WA':
c1 += 1
if s[i] in 'TLE':
c2 += 1
if s[i] in 'RE':
... | import math
import sys
def main():
n = int(input())
s = [input() for i in range(n)]
c0,c1,c2,c3 = 0,0,0,0
for i in range(n):
if "AC" in s[i]:
c0 += 1
if s[i] in 'WA':
c1 += 1
if s[i] in 'TLE':
c2 += 1
if s[i] in 'RE':
... | [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 160 |
N = int(input())
lists = []
AC = 0
TLE = 0
WA = 0
RE = 0
for i in range(N):
S = str(input())
lists.append(S)
for o in lists:
if o == "AC":
AC +=1
elif o == "TLE":
TLE +=1
elif o == "WA":
WA +=1
elif o == "RE":
RE +=1
print("AC X "+str(AC))
print("WA X "+str(WA))
p... | N = int(input())
lists = []
AC = 0
TLE = 0
WA = 0
RE = 0
for i in range(N):
S = str(input())
lists.append(S)
for o in lists:
if o == "AC":
AC +=1
elif o == "TLE":
TLE +=1
elif o == "WA":
WA +=1
elif o == "RE":
RE +=1
print("AC x "+str(AC))
print("WA x "+str(WA))
p... | [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 135 |
#include <stdio.h>
int main() {
int n, i, a = 0, b = 0, c = 0, d = 0;
scanf("%d", &n);
char s[n][4];
for (i = 0; i < n; i++) {
scanf("%s", s[i]);
if (s[i][0] == 'A')
a++;
if (s[i][0] == 'W')
b++;
if (s[i][0] == 'T')
c++;
if (s[i][0] == 'R')
d++;
}
printf("AC * %d... | #include <stdio.h>
int main() {
int n, i, a = 0, b = 0, c = 0, d = 0;
scanf("%d", &n);
char s[n][4];
for (i = 0; i < n; i++) {
scanf("%s", s[i]);
if (s[i][0] == 'A')
a++;
if (s[i][0] == 'W')
b++;
if (s[i][0] == 'T')
c++;
if (s[i][0] == 'R')
d++;
}
printf("AC x %d... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 186 |
def main():
N = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for i in range(N):
St = input()
if St == 'AC':
AC += 1
elif St == 'WA':
WA += 1
elif St == 'TLE':
TLE += 1
elif St == 'RE':
RE += 1
else:
... | def main():
N = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for i in range(N):
St = input()
if St == 'AC':
AC += 1
elif St == 'WA':
WA += 1
elif St == 'TLE':
TLE += 1
elif St == 'RE':
RE += 1
else:
... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 118 |
n = int(input())
s=[]
for x in range(n):
s.append(input())
a={"AC":0, "WA":0,"TLE":0,"RE":0}
for x in s:
print(x)
a[x]+=1
print("AC x %s" % a["AC"])
print("WA x %s" % a["WA"])
print("TLE x %s" % a["TLE"])
print("RE x %s" % a["RE"]) | n = int(input())
s=[]
for x in range(n):
s.append(input())
a={"AC":0, "WA":0,"TLE":0,"RE":0}
for x in s:
a[x]+=1
print("AC x %s" % a["AC"])
print("WA x %s" % a["WA"])
print("TLE x %s" % a["TLE"])
print("RE x %s" % a["RE"]) | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 122 |
N=int(input())
a = 0
w = 0
t = 0
r = 0
for i in range(N):
S=input();
if S[0] == "A":
a+=1
elif S[0] == "W":
w+=1
elif S[0] == "T":
t+=1
else:
r+=1
print("AC x",a)
print("WC x",w)
print("TLE x",t)
print("RE x",r)
| N=int(input())
a = 0
w = 0
t = 0
r = 0
for i in range(N):
S=input();
if S[0] == "A":
a+=1
elif S[0] == "W":
w+=1
elif S[0] == "T":
t+=1
else:
r+=1
print("AC x",a)
print("WA x",w)
print("TLE x",t)
print("RE x",r)
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 110 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define fo(i, n) for (ll i = 0; i < n; i++)
#define rfo(i, n) for (ll i = n; i >= 0; i--)
#define fori(it, x) \
for (__typeof((x).begin()) it = (x).begin(); it != (x).end(); it++)
#define... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define fo(i, n) for (ll i = 0; i < n; i++)
#define rfo(i, n) for (ll i = n; i >= 0; i--)
#define fori(it, x) \
for (__typeof((x).begin()) it = (x).begin(); it != (x).end(); it++)
#define... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 242 |
package main
import "fmt"
func judgeStatusSummary(s []string) map[string]int {
c := map[string]int{
"AC": 0,
"WA": 0,
"TLE": 0,
"RE": 0,
}
for _, v := range s {
c[v]++
}
return c
}
func main() {
var n int
fmt.Scan(&n)
s := make([]string, n)
for i := range s {
fmt.Scan(&s[i])
}
ans := judgeS... | package main
import "fmt"
func judgeStatusSummary(s []string) map[string]int {
c := map[string]int{
"AC": 0,
"WA": 0,
"TLE": 0,
"RE": 0,
}
for _, v := range s {
c[v]++
}
return c
}
func main() {
var n int
fmt.Scan(&n)
s := make([]string, n)
for i := range s {
fmt.Scan(&s[i])
}
ans := judgeS... | [["-", 0, 2, 3, 4, 0, 2, 63, 438, 119, 120], ["+", 0, 2, 3, 4, 0, 2, 63, 438, 119, 120]] | 7 | 216 |
n = int(input())
case = []
result = ["AC","WA","TLE","RE"]
for num in range(n):
case.append(input())
for num in range(4):
print("{} × {}".format(result[num],case.count(result[num]))) | n = int(input())
case = []
result = ["AC","WA","TLE","RE"]
for num in range(n):
case.append(input())
for num in range(4):
print("{} x {}".format(result[num],case.count(result[num]))) | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 79 |
#include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define int ll
#define pb push_back
#define setbits(x) __builtin_popcountll(x)
#define endl "\n"
typedef long long ll;
void solve() {
int n;
cin >> n;
map<string, int> mp;
for (int i = 0; i < n; i++) {
string str;
cin >> s... | #include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define int ll
#define pb push_back
#define setbits(x) __builtin_popcountll(x)
#define endl "\n"
typedef long long ll;
void solve() {
int n;
cin >> n;
map<string, int> mp;
for (int i = 0; i < n; i++) {
string str;
cin >> s... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 169 |
list = []
words = ['AC','WA','TLE','RE']
words_count = {'AC':0,'WA':0,'TLE':0,'RE':0}
try:
while True:
val = input()
if val:
list.append(val)
else:
break
except EOFError:
pass
for i in range(1,len(list)):
for word in words:
if list[i] == word:
words_count[word... | list = []
words = ['AC','WA','TLE','RE']
words_count = {'AC':0,'WA':0,'TLE':0,'RE':0}
try:
while True:
val = input()
if val:
list.append(val)
else:
break
except EOFError:
pass
for i in range(1,len(list)):
for word in words:
if list[i] == word:
words_count[word... | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 136 |
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
#define REP(i, n) for (ll i = 0; i < (ll)n; i++)
#define RREP(i, n) for (ll i = (ll)(n - 1); i >= 0; i--)
#define ALL(vector) vector.begin(), vector.end()
int main() {
cin.... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
#define REP(i, n) for (ll i = 0; i < (ll)n; i++)
#define RREP(i, n) for (ll i = (ll)(n - 1); i >= 0; i--)
#define ALL(vector) vector.begin(), vector.end()
int main() {
cin.... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22]] | 1 | 214 |
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
int count_AC = 0, count_WA = 0, count_TLE = 0, count_RE = 0;
while (n--) {
string s;
cin >> s;
if (s == "AC")
count_AC++;
else if (s == "WA")
count_WA++;
else if (s == "TLE")
count_TL... | #include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
int count_AC = 0, count_WA = 0, count_TLE = 0, count_RE = 0;
while (n--) {
string s;
cin >> s;
if (s == "AC")
count_AC++;
else if (s == "WA")
count_WA++;
else if (s == "TLE")
count_TL... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 147 |
n=int(input())
l=[]
keys=['AC','TLE','WA','RE']
for i in range(n):
x=(input())
l.append(x)
s=dict.fromkeys(keys, 0)
for i in l:
if i in s:
s[i]+=1
for k,v in s.items():
print(k,"x",v) | n=int(input())
l=[]
keys=['AC','WA','TLE','RE']
for i in range(n):
x=(input())
l.append(x)
s=dict.fromkeys(keys, 0)
for i in l:
if i in s:
s[i]+=1
for k,v in s.items():
print(k,"x",v) | [["-", 0, 1, 0, 662, 12, 634, 0, 557, 0, 6], ["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 6]] | 5 | 99 |
// B - Judge Status Summary
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int n;
cin >> n;
string s;
int ac = 0, wa = 0, tle = 0, re = 0;
rep(i, n) {
cin >> s;
if (s[0] == 'A')
ac++;
else if (s[0] == 'W')
wa++;
else if (... | // B - Judge Status Summary
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int n;
cin >> n;
string s;
int ac = 0, wa = 0, tle = 0, re = 0;
rep(i, n) {
cin >> s;
if (s[0] == 'A')
ac++;
else if (s[0] == 'W')
wa++;
else if (... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 151 |
n = int(input())
s = [input() for _ in range(n)]
a = 0
w = 0
t = 0
r = 0
for i in range(n):
if s[i] == "AC":
a += 1
elif s[i] == "WA":
w += 1
elif s[i] == "TLE":
t += 1
else:
r += 1
print("AC x" +str(a))
print("WA x" +str(w))
print("TLE x" +str(t))
print("RE x" +str(r)) | n = int(input())
s = [input() for _ in range(n)]
a = 0
w = 0
t = 0
r = 0
for i in range(n):
if s[i] == "AC":
a += 1
elif s[i] == "WA":
w += 1
elif s[i] == "TLE":
t += 1
else:
r += 1
print("AC x",str(a))
print("WA x",str(w))
print("TLE x",str(t))
print("RE x",str(r)) | [["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]] | 5 | 130 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
try (Scanner scanner = new Scanner(System.in)) {
int num = scanner.nextInt();
for (int i = 0; i < num; i++) {
String s = scanner.next();... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
try (Scanner scanner = new Scanner(System.in)) {
int num = scanner.nextInt();
for (int i = 0; i < num; i++) {
String s = scanner.next();... | [["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]] | 3 | 173 |
#include <iostream>
#include <string>
#include <vector>
int main(void) {
int N;
std::cin >> N;
std::vector<std::string> strList;
std::string str;
for (int i = 0; i < N; i++) {
std::cin >> str;
strList.push_back(str);
}
int counta[4] = {0, 0, 0, 0};
for (int i = 0; i < N; i++) {
if (strLi... | #include <iostream>
#include <string>
#include <vector>
int main(void) {
int N;
std::cin >> N;
std::vector<std::string> strList;
std::string str;
for (int i = 0; i < N; i++) {
std::cin >> str;
strList.push_back(str);
}
int counta[4] = {0, 0, 0, 0};
for (int i = 0; i < N; i++) {
if (strLi... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 245 |
from collections import defaultdict
d=defaultdict(int)
for i in range(int(input())):
s=input()
d[s]+=1
print("AC x",d["AC"])
print("WA x",d["WA"])
print("TLE x",d["TLE"])
print("TLE x",d["TLE"]) | from collections import defaultdict
d=defaultdict(int)
for i in range(int(input())):
s=input()
d[s]+=1
print("AC x",d["AC"])
print("WA x",d["WA"])
print("TLE x",d["TLE"])
print("RE x",d["RE"]) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 652, 3, 4, 0, 206, 206, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 206, 206, 557, 0, 6]] | 5 | 86 |
/**
*
*/
/**
* @author Jnaneswar Reddy
*
*/
import java.util.*;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int n;
Scanner scan = new Scanner(System.in);
n = scan.nextInt();
scan.nextLine();
HashMap<String,... | /**
*
*/
/**
* @author Jnaneswar Reddy
*
*/
import java.util.*;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int n;
Scanner scan = new Scanner(System.in);
n = scan.nextInt();
scan.nextLine();
HashMap<String,... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 31, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 31, 5, 0, 491], ["-", 0, 16, 12, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 16, 12, 492, 3, 4, 0, 5, 0, 491]] | 3 | 289 |
N=int(input())
list=[]
for i in range(N):
S=input()
if S:
list.append(S)
C0=list.count("AC")
C1=list.count("WA")
C2=list.count("TLE")
C3=list.count("RE")
print ("AC X ",C0)
print ("WA X ",C1)
print ("TLE X ",C2)
print ("RE X ",C3) | N=int(input())
list=[]
for i in range(N):
S=input()
if S:
list.append(S)
C0=list.count("AC")
C1=list.count("WA")
C2=list.count("TLE")
C3=list.count("RE")
print ("AC x ",C0)
print ("WA x ",C1)
print ("TLE x ",C2)
print ("RE x ",C3) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 106 |
import collections
judgement = []
while True:
try:
judgement.append(input())
except:
break
counter = collections.Counter(judgement)
n_ac = counter.get('AC', 0)
n_ma = counter.get('MA', 0)
n_tle = counter.get('TLE', 0)
n_re = counter.get('RE', 0)
print('AC x {}'.format(n_ac))
print('MA x {}'.format(n_ma)... | import collections
judgement = []
while True:
try:
judgement.append(input())
except:
break
counter = collections.Counter(judgement)
n_ac = counter.get('AC', 0)
n_wa = counter.get('WA', 0)
n_tle = counter.get('TLE', 0)
n_re = counter.get('RE', 0)
print('AC x {}'.format(n_ac))
print('WA x {}'.format(n... | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 0... | 5 | 122 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, ac, wa, tle, re;
ac = 0;
wa = 0;
tle = 0;
re = 0;
string r;
cin >> N;
for (int i = 1; i <= N; i++) {
cin >> r;
if (r == "AC")
ac++;
else if (r == "WA")
wa++;
else if (r == "TLE")
tle++;
else if (r ==... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, ac, wa, tle, re;
ac = 0;
wa = 0;
tle = 0;
re = 0;
string r;
cin >> N;
for (int i = 1; i <= N; i++) {
cin >> r;
if (r == "AC")
ac++;
else if (r == "WA")
wa++;
else if (r == "TLE")
tle++;
else if (r ==... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 169 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
string s;
// vector<string>vt;
long AC = 0, TLE = 0, WA = 0, RE = 0;
while (n--) {
cin >> s;
if (s == "AC")
AC++;
else if (s == "TLE")
TLE++;
else if (s == "WA")
WA++;
else
RE++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
string s;
// vector<string>vt;
int AC = 0, TLE = 0, WA = 0, RE = 0;
while (n--) {
cin >> s;
if (s == "AC")
AC++;
else if (s == "TLE")
TLE++;
else if (s == "WA")
WA++;
else
RE++;
... | [["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 143 |
n = int(input())
s = [input() for i in range(n)]
AC = s.count("AC")
WA = s.count("WA")
TLE = s.count("TLE")
RE = s.count("RE")
AC2 = "AC x " + str(AC)
WA2 = "WA x " + str(WA)
TLE2 = "TLE x " + str(TLE)
RE2 = "RE x " + str(RE)
x
list = [AC2,WA2,TLE2,RE2]
list_n = "\n".join(list)
print(list_n) | n = int(input())
s = [input() for i in range(n)]
AC = s.count("AC")
WA = s.count("WA")
TLE = s.count("TLE")
RE = s.count("RE")
AC2 = "AC x " + str(AC)
WA2 = "WA x " + str(WA)
TLE2 = "TLE x " + str(TLE)
RE2 = "RE x " + str(RE)
list = [AC2,WA2,TLE2,RE2]
list_n = "\n".join(list)
print(list_n) | [["-", 36, 36, 36, 36, 0, 656, 0, 1, 0, 22]] | 5 | 128 |
//#define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n, ac = 0, wa = 0, tle = 0, re = 0;
char ss[5];
cin >> n;
for (int i = 0; i < n; i++) {
cin >> ss;
if (st... | //#define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n, ac = 0, wa = 0, tle = 0, re = 0;
char ss[5];
cin >> n;
for (int i = 0; i < n; i++) {
cin >> ss;
if (st... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 171 |
n=int(input())
c1=0
c2=0
c3=0
c4=0
s1='AC'
s2='WA'
s3='TLE'
s4='RE'
for _ in range(n):
str1=str(input())
if(str1=='AC'):
c1=c1+1
elif(str1=='WA'):
c2=c2+1
elif(str1=='TLE'):
c3=c3+1
elif(str1=='RE'):
c4=c4+1
s1=s1+' ' + '*' + ' ' + str(c1)
s2=s2+' ' + '*' + ' ' + str(c2)
s3=s3+' ' + '*' + ' ' + str(c3)
s4=... | n=int(input())
c1=0
c2=0
c3=0
c4=0
s1='AC'
s2='WA'
s3='TLE'
s4='RE'
for _ in range(n):
str1=str(input())
if(str1=='AC'):
c1=c1+1
elif(str1=='WA'):
c2=c2+1
elif(str1=='TLE'):
c3=c3+1
elif(str1=='RE'):
c4=c4+1
s1=s1+' ' + 'x' + ' ' + str(c1)
s2=s2+' ' + 'x' + ' ' + str(c2)
s3=s3+' ' + 'x' + ' ' + str(c3)
s4=... | [["-", 12, 657, 31, 657, 31, 657, 12, 557, 0, 6], ["+", 12, 657, 31, 657, 31, 657, 12, 557, 0, 6]] | 5 | 208 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> cnt(4, 0);
for (int i = 0; i < N; i++) {
string S;
cin >> S;
if (S == "AC") {
cnt[0]++;
}
if (S == "WA") {
cnt[1]++;
}
if (S == "TLE") {
cnt[2]++;
}
if (S == "RE") {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> cnt(4, 0);
for (int i = 0; i < N; i++) {
string S;
cin >> S;
if (S == "AC") {
cnt[0]++;
}
if (S == "WA") {
cnt[1]++;
}
if (S == "TLE") {
cnt[2]++;
}
if (S == "RE") {
... | [["-", 0, 1, 0, 27, 28, 69, 341, 342, 0, 13], ["+", 0, 1, 0, 27, 28, 69, 341, 342, 0, 13]] | 1 | 169 |
#include <stdio.h>
#include <string.h>
int main(void) {
int n;
scanf("%d", &n);
int ac = 0, wa = 0, tle = 0, re = 0;
for (int i = 0; i < n; i++) {
char s[4];
scanf("%s", s);
if (strcmp(s, "AC") == 0) {
ac++;
}
if (strcmp(s, "WA") == 0) {
wa++;
}
if (strcmp(s, "TLE... | #include <stdio.h>
#include <string.h>
int main(void) {
int n;
scanf("%d", &n);
int ac = 0, wa = 0, tle = 0, re = 0;
for (int i = 0; i < n; i++) {
char s[4];
scanf("%s", s);
if (strcmp(s, "AC") == 0) {
ac++;
}
if (strcmp(s, "WA") == 0) {
wa++;
}
if (strcmp(s, "TLE... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 187 |
x=int(input())
cac=0
cwa=0
tle=0
cre=0
for i in range(0,x):
moji=input()
if(moji=='AC'):
cac+=1
if(moji=='WA'):
cwa+=1
if(moji=='TLE'):
ctle+=1
if(moji=='RE'):
cre+=1
print('AC x ',cac)
print('WA x' ,cwa)
print('TLE x ',ctle)
print('RE x' ,cre) | x=int(input())
cac=0
cwa=0
ctle=0
cre=0
for i in range(0,x):
moji=input()
if(moji=='AC'):
cac+=1
if(moji=='WA'):
cwa+=1
if(moji=='TLE'):
ctle+=1
if(moji=='RE'):
cre+=1
print('AC x ',cac)
print('WA x' ,cwa)
print('TLE x ',ctle)
print('RE x' ,cre) | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22]] | 5 | 115 |
N = int(input())
out = ["AC","WA","TLE","RE"]
output = [0]*4
print(output)
for _ in range(N):
S = input()
if S == out[0]:
output[0] += 1
elif S == out[1]:
output[1] += 1
elif S == out[2]:
output[2] += 1
else:
output[3] += 1
for i in range(4):
print(out[i],"x",ou... | N = int(input())
out = ["AC","WA","TLE","RE"]
output = [0]*4
for _ in range(N):
S = input()
if S == out[0]:
output[0] += 1
elif S == out[1]:
output[1] += 1
elif S == out[2]:
output[2] += 1
else:
output[3] += 1
for i in range(4):
print(out[i],"x",output[i]) | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 125 |
N = int(input())
out = ["AC","WA","TLE","RE"]
output = [0]*4
print(output)
for _ in range(N):
S = input()
if S == out[0]:
output[0] += 1
elif S == out[1]:
output[1] += 1
elif S == out[2]:
output[2] += 1
else:
output[3] += 1
print(out[0],"x",output[0])
print(out[1],"... | N = int(input())
out = ["AC","WA","TLE","RE"]
output = [0]*4
for _ in range(N):
S = input()
if S == out[0]:
output[0] += 1
elif S == out[1]:
output[1] += 1
elif S == out[2]:
output[2] += 1
else:
output[3] += 1
print(out[0],"x",output[0])
print(out[1],"x",output[1])
... | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 170 |
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int n, sum[5] = {0};
string str;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
cin >> str;
if (str == "AC") {
sum[0]++;
} else if (str == "WA") {
sum[1]++;
} else if (str == "TLE") {
su... | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int n, sum[5] = {0};
string str;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
cin >> str;
if (str == "AC") {
sum[0]++;
} else if (str == "WA") {
sum[1]++;
} else if (str == "TLE") {
su... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 180 |
a = int(input())
s = []
for i in range(0,a) :
d = input()
s.append(d)
c1 = 0
c2 = 0
c3 = 0
c4 = 0
for i in range(0,len(s)) :
if s[i] == "AC" :
c1 += 1
elif s[i] == "WA" :
c2 += 1
elif s[i] == "TLE" :
c3 += 1
elif s[i] == "RE" :
c4 += 1
print("AC *",str(c1))... | a = int(input())
s = []
for i in range(0,a) :
d = input()
s.append(d)
c1 = 0
c2 = 0
c3 = 0
c4 = 0
for i in range(0,len(s)) :
if s[i] == "AC" :
c1 += 1
elif s[i] == "WA" :
c2 += 1
elif s[i] == "TLE" :
c3 += 1
elif s[i] == "RE" :
c4 += 1
print("AC x",str(c1))... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 154 |
#include <iostream>
using namespace std;
int main() {
int N;
int c[4] = {};
cin >> N;
string i;
while (1) {
cin >> i;
if (i == "AC")
c[0]++;
else if (i == "WA")
c[1]++;
else if (i == "TLE")
c[2]++;
else if (i == "RE")
c[3]++;
N--;
if (N == 0)
br... | #include <iostream>
using namespace std;
int main() {
int N;
int c[4] = {};
cin >> N;
string i;
while (1) {
cin >> i;
if (i == "AC")
c[0]++;
else if (i == "WA")
c[1]++;
else if (i == "TLE")
c[2]++;
else if (i == "RE")
c[3]++;
N--;
if (N == 0)
br... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 179 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.