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 |
|---|---|---|---|---|
score = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0}
N = int(input())
for _ in range(N):
result = input()
if result == 'AC':
score[result] += 1
elif result == 'WA':
score[result] += 1
elif result == 'TLE':
score[result] += 1
elif result == 'RE':
score[result] += 1
for i in s... | score = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0}
N = int(input())
for _ in range(N):
result = input()
if result == 'AC':
score[result] += 1
elif result == 'WA':
score[result] += 1
elif result == 'TLE':
score[result] += 1
elif result == 'RE':
score[result] += 1
for i in s... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 122 |
n = int(input())
list = [0,0,0,0]
for i in range(n):
judge = input()
if judge == 'AC':
list[0] += 1
elif judge == 'WA':
list[1] += 1
elif judge == 'TLE':
list[2] += 1
elif judge == 'RE':
list[3] += 1
print( 'AC x {}'.format(list[0]) )
print( 'WA x {}'.format(list[1]) )
print( 'TLE x {}'.... | n = int(input())
list = [0,0,0,0]
for i in range(n):
judge = input()
if judge == 'AC':
list[0] += 1
elif judge == 'WA':
list[1] += 1
elif judge == 'TLE':
list[2] += 1
elif judge == 'RE':
list[3] += 1
print( 'AC x {}'.format(list[0]) )
print( 'WA x {}'.format(list[1]) )
print( 'TLE x {}'.... | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 140 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
long N, A = 0, B = 0, C = 0, D = 0;
cin >> N;
vector<string> a(N);
for (int i = 0; i < N; i++) {
cin >> a[i];
if (a[i] == "AC") {
A++;
} else if (a[i] == "WA") {
... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
long N, A = 0, B = 0, C = 0, D = 0;
cin >> N;
vector<string> a(N);
for (int i = 0; i < N; i++) {
cin >> a[i];
if (a[i] == "AC") {
A++;
} else if (a[i] == "WA") {
... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 230 |
import sys
n=int(input())
AC=0
WA=0
TLE=0
RE=0
for i in range(n):
moji=input()
if moji =='AC':
AC+=1
elif moji =='WA':
WA+=1
elif moji =='TLE':
TLE+=1
else:
RE+=1
A=[AC,WA,TLE,RE]
B=['AC','WA','TLE','RE']
for i in range(4):
q=A[i]
print(B[i],end='')
print(... | import sys
n=int(input())
AC=0
WA=0
TLE=0
RE=0
for i in range(n):
moji=input()
if moji =='AC':
AC+=1
elif moji =='WA':
WA+=1
elif moji =='TLE':
TLE+=1
else:
RE+=1
A=[AC,WA,TLE,RE]
B=['AC','WA','TLE','RE']
for i in range(4):
q=A[i]
print(B[i],end='')
print(... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 141 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
int main() {
int n;
cin >> n;
int ac = 0;
int wa = 0;
int tl = 0;
int re = 0;
rep(i, n) {
string s;
cin >> s;
if (s == "AC")
ac++;
else if (s == "WA")
wa++;
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
int main() {
int n;
cin >> n;
int ac = 0;
int wa = 0;
int tl = 0;
int re = 0;
rep(i, n) {
string s;
cin >> s;
if (s == "AC")
ac++;
else if (s == "WA")
wa++;
... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 146 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
private static final BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
private static final int MAX = (int)1e6;
private static boolean isPrime[];
private static final Map<Long,... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
private static final BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
private static final int MAX = (int)1e6;
private static boolean isPrime[];
private static final Map<Long,... | [["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]] | 3 | 1,516 |
#include <bits/stdc++.h>
#include <map>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
long long t;
map<string, int> mp;
cin >> t;
cin.ignore();
while (t--) {
string str;
getline(cin, str);
mp[str]++;
}
cout << "AC x " << mp["AC"] << "\n";
... | #include <bits/stdc++.h>
#include <map>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
long long t;
map<string, int> mp;
cin >> t;
cin.ignore();
while (t--) {
string str;
getline(cin, str);
mp[str]++;
}
cout << "AC x " << mp["AC"] << "\n";
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6], ["+", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6]] | 1 | 148 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
int c = 0, c1 = 0, c2 = 0, c3 = 0;
cin >> t;
while (t--) {
string str;
cin >> str;
if (str.length() == 2) {
if (str[0] == 'A')
c++;
else if (str[0] == 'R')
c1++;
else if (str[0] == 'W')
c2++... | #include <bits/stdc++.h>
using namespace std;
int main() {
int t;
int c = 0, c1 = 0, c2 = 0, c3 = 0;
cin >> t;
while (t--) {
string str;
cin >> str;
if (str.length() == 2) {
if (str[0] == 'A')
c++;
else if (str[0] == 'R')
c1++;
else if (str[0] == 'W')
c2++... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 151 |
package main
import (
"bufio"
"os"
"fmt"
"strconv"
)
var sc = bufio.NewScanner(os.Stdin)
func init() {
sc.Split(bufio.ScanWords)
sc.Buffer(make([]byte, 1024*1024), bufio.MaxScanTokenSize)
}
func nextString() string {
sc.Scan()
return sc.Text()
}
func nextInt() int {
sc.Scan()
i, e := strconv.Atoi(sc.Text... | package main
import (
"bufio"
"os"
"fmt"
"strconv"
)
var sc = bufio.NewScanner(os.Stdin)
func init() {
sc.Split(bufio.ScanWords)
sc.Buffer(make([]byte, 1024*1024), bufio.MaxScanTokenSize)
}
func nextString() string {
sc.Scan()
return sc.Text()
}
func nextInt() int {
sc.Scan()
i, e := strconv.Atoi(sc.Text... | [["-", 0, 1, 0, 2, 3, 4, 0, 437, 71, 433], ["+", 0, 1, 0, 2, 3, 4, 0, 437, 71, 433]] | 7 | 320 |
#include <algorithm>
#include <bitset>
#include <cfloat>
#include <cmath>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stdlib.h>
#include <st... | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <cmath>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stdlib.h>
#include <st... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 393 |
#include <bits/stdc++.h>
using namespace std;
#define sz(x) (int)(x).size()
int main() {
int t, i, j;
cin >> t;
int c = 0, cn = 0, cn1 = 0, cn2 = 0;
while (t--) {
string s, ss;
cin >> s;
if (s == "AC")
c++;
else if (s == "TLE")
cn++;
else if (s == "WA")
cn1++;
else if ... | #include <bits/stdc++.h>
using namespace std;
#define sz(x) (int)(x).size()
int main() {
int t, i, j;
cin >> t;
int c = 0, cn = 0, cn1 = 0, cn2 = 0;
while (t--) {
string s, ss;
cin >> s;
if (s == "AC")
c++;
else if (s == "TLE")
cn++;
else if (s == "WA")
cn1++;
else if ... | [["-", 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 | 146 |
a = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for i in range(0,a) :
b = str(input())
if b == "AC" :
AC = AC + 1
elif b == "WA" :
WA = WA + 1
elif b == TLE :
TLE = TLE + 1
else :
RE = RE + 1
print("AC x",AC)
print("WA x",WA)
print("TLE x",TLE)
print("RE x",RE) | a = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for i in range(0,a) :
b = str(input())
if b == "AC" :
AC = AC + 1
elif b == "WA" :
WA = WA + 1
elif b == "TLE" :
TLE = TLE + 1
else :
RE = RE + 1
print("AC x",AC)
print("WA x",WA)
print("TLE x",TLE)
print("RE x",RE) | [["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 654], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 655]] | 5 | 111 |
#include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define M 998244353
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int t;
cin >> t;
int a = 0, b = 0, c = 0, d = 0;
for (int i0 = 0; i0 < t; i0++) {
string s;
cin >> s;
if (s.size() == 3) {
... | #include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define M 998244353
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int t;
cin >> t;
int a = 0, b = 0, c = 0, d = 0;
for (int i0 = 0; i0 < t; i0++) {
string s;
cin >> s;
if (s.size() == 3) {
... | [["-", 0, 57, 64, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 27, 28, 22]] | 1 | 197 |
//インクルード(アルファベット順)
#include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <cmath> //pow,logなど
#include <complex> //複素数
#include <deque> //両端アクセスのキュー
#include <functional> //sortのgreater
#include <iomanip> //setprecision(浮動小数点の出力の誤差)
#include <iostream> //入出力
#include <iterator>... | //インクルード(アルファベット順)
#include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <cmath> //pow,logなど
#include <complex> //複素数
#include <deque> //両端アクセスのキュー
#include <functional> //sortのgreater
#include <iomanip> //setprecision(浮動小数点の出力の誤差)
#include <iostream> //入出力
#include <iterator>... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22]] | 1 | 313 |
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
long long int n;
cin >> n;
map<string, int> m;
while (n--) {
string s;
cin >> s;
m[s]++;
}
int flag = 0;
for (auto it = m.begin(); it != m.end(); it++) {
if (it->first == "AC") {
flag = 1;
cout... | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
long long int n;
cin >> n;
map<string, int> m;
while (n--) {
string s;
cin >> s;
m[s]++;
}
int flag = 0;
for (auto it = m.begin(); it != m.end(); it++) {
if (it->first == "AC") {
flag = 1;
cout... | [["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35]] | 1 | 359 |
#include <bits/stdc++.h>
#define nl '\n'
#define dbg(a) cout << #a << "=" << a << nl
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
#define nl '\n'
#define dbg(a) cout << #a << "=" << a << nl
#define fast \
ios_base::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 | 165 |
#include <bits/stdc++.h>
#define cina(a, n) \
for (int i = 0; i < n; ++i) { \
cin >> a[i]; \
}
#define ll long long
#define ld long double
usi... | #include <bits/stdc++.h>
#define cina(a, n) \
for (int i = 0; i < n; ++i) { \
cin >> a[i]; \
}
#define ll long long
#define ld long double
usi... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 16, 12, 69, 341, 342, 0, 5, 0, 6], ["+", 0, 16, 12, 69, 341, 342, 0, 5, 0, 6]] | 1 | 152 |
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(void) {
int N;
cin >> N;
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for (int i = 0; i < N; i++) {
string aa;
cin >> aa;
if (aa == "AC")
ac++;
if (aa == "WA")
wa++;
if (aa == "TLE")... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(void) {
int N;
cin >> N;
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for (int i = 0; i < N; i++) {
string aa;
cin >> aa;
if (aa == "AC")
ac++;
if (aa == "WA")
wa++;
if (aa == "TLE")... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 154 |
#define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> C(4, 0);
for (int i = 0; i < N; i++) {
string S;
cin >> S;
if (S == "AC") {
... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> C(4, 0);
for (int i = 0; i < N; i++) {
string S;
cin >> S;
if (S == "AC") {
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 181 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int N;
cin >> N;
string s[110000];
for (int i = 0; i < N; i++)
cin >> s[i];
int j[4] = {};
for (int i = 0; i < N; i++) {
if (s[i] == "AC")
j[0] += 1;
else if (s[i] == "WA")
j[1] += 1;
else if (s[i] == "TLE")
... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int N;
cin >> N;
string s[110000];
for (int i = 0; i < N; i++)
cin >> s[i];
int j[4] = {};
for (int i = 0; i < N; i++) {
if (s[i] == "AC")
j[0] += 1;
else if (s[i] == "WA")
j[1] += 1;
else if (s[i] == "TLE")
... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 247 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(void) {
ll N;
cin >> N;
vector<string> j(N);
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for (int i = 0; i < N; i++) {
cin >> j.at(i);
if (j.at(i) == "AC") {
ac++;
} else if (j.at(i) == "WA") {
wa++... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(void) {
ll N;
cin >> N;
vector<string> j(N);
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for (int i = 0; i < N; i++) {
cin >> j.at(i);
if (j.at(i) == "AC") {
ac++;
} else if (j.at(i) == "WA") {
wa++... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 182 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define pii pair<int, int>
#define vi vector<int>
#define vii vector<std::vector<int>> v;
#define mem(dp, a) memset(dp, a, sizeof dp)
#define sonic \
ios_base::sync_with_stdio(fals... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define pii pair<int, int>
#define vi vector<int>
#define vii vector<std::vector<int>> v;
#define mem(dp, a) memset(dp, a, sizeof dp)
#define sonic \
ios_base::sync_with_stdio(fals... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 370 |
n = int(input())
ac = 0
wa = 0
tle = 0
re = 0
for i in range(n):
s = input()
if s == 'AC':
ac = ac + 1
elif s == 'WA':
wa = wa + 1
elif s == 'TLE':
tle = tle + 1
elif s == 'RE':
ren = re + 1
print('AC x '+str(ac))
print('WA x '+str(wa))
print('TLE x '+str(tle))
print('RE x '+str(re)) | n = int(input())
ac = 0
wa = 0
tle = 0
re = 0
for i in range(n):
s = input()
if s == 'AC':
ac = ac + 1
elif s == 'WA':
wa = wa + 1
elif s == 'TLE':
tle = tle + 1
elif s == 'RE':
re = re + 1
print('AC x '+str(ac))
print('WA x '+str(wa))
print('TLE x '+str(tle))
print('RE x '+str(re)) | [["-", 75, 665, 64, 196, 0, 1, 0, 662, 31, 22], ["+", 75, 665, 64, 196, 0, 1, 0, 662, 31, 22]] | 5 | 125 |
N = int(input())
l = [0]*4
for i in range(N):
S = input()
if S == "AC":
l[0] += 1
elif S == "WA":
l[1] += 1
elif S == "TLE":
l[2] += 1
elif S == "re":
l[3] += 1
print("AC x", l[0])
print("WA x", l[1])
print("TLE x", l[2])
print("RE x", l[3]) | N = int(input())
l = [0]*4
for i in range(N):
S = input()
if S == "AC":
l[0] += 1
elif S == "WA":
l[1] += 1
elif S == "TLE":
l[2] += 1
elif S == "RE":
l[3] += 1
print("AC x", l[0])
print("WA x", l[1])
print("TLE x", l[2])
print("RE x", l[3]) | [["-", 0, 57, 75, 665, 15, 666, 0, 557, 0, 6], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 6]] | 5 | 124 |
#include <bits/stdc++.h>
using namespace std;
int a[5005];
int main() {
int i, j, k, l, t, z, n, r, x, y;
cin >> n;
map<string, int> m;
string s;
for (i = 0; i < n; i++) {
cin >> s;
m[s]++;
}
cout << "AC x " << m["AC"] << endl;
cout << "WA x " << m["WA"] << endl;
cout << "TLE x " << m["TLE"] ... | #include <bits/stdc++.h>
using namespace std;
int a[5005];
int main() {
int i, j, k, l, t, z, n, r, x, y;
cin >> n;
map<string, int> m;
string s;
for (i = 0; i < n; i++) {
cin >> s;
m[s]++;
}
cout << "AC x " << m["AC"] << endl;
cout << "WA x " << m["WA"] << endl;
cout << "TLE x " << m["TLE"] ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6], ["+", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6]] | 1 | 139 |
n = int(input())
s = []
judges = {'AC':0,'WA':0,'TLE':0,'RE':0}
for i in range(n):
s = input().strip()
judges[s] += 1
for judge,count in judges.items():
print(f"{judge} ✖️ {count}") | n = int(input())
s = []
judges = {'AC':0,'WA':0,'TLE':0,'RE':0}
for i in range(n):
s = input().strip()
judges[s] += 1
for judge,count in judges.items():
print(f"{judge} x {count}") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 85 |
n = int(input())
ans = {
'AC': 0,
'WA': 0,
'TLE': 0,
'RE': 0
}
for i in range(n):
x = input()
ans[x] += 1
for i in list(ans.keys()):
print(i +'x'+str(ans[i]))
| n = int(input())
ans = {
'AC': 0,
'WA': 0,
'TLE': 0,
'RE': 0
}
for i in range(n):
x = input()
ans[x] += 1
for i in list(ans.keys()):
print(i + ' x '+str(ans[i]))
| [["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 82 |
#include <bits/stdc++.h>
using namespace std;
// Author: Ezio Sam
/* Shorthands */
#define ll long long
#define pb push_back
#define mp make_pair
#define sp " "
#define cs "Case "
#define fi first
#define sn second
#define po(x) x *x
/* STL */
#define vi vector<int> v
#define pii pair<int, int>
#define pll pair<ll, ll>... | #include <bits/stdc++.h>
using namespace std;
// Author: Ezio Sam
/* Shorthands */
#define ll long long
#define pb push_back
#define mp make_pair
#define sp " "
#define cs "Case "
#define fi first
#define sn second
#define po(x) x *x
/* STL */
#define vi vector<int> v
#define pii pair<int, int>
#define pll pair<ll, ll>... | [["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]] | 1 | 304 |
#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int MAX = 2147483647;
const double PI = 3.14159265358979323846;
int main() {
int n;
string a;
int s[4];
cin >> n;
for (int i = 0; i < n; i++) {
s[i] = 0;
}
for (int i = 0; i < n; i++) {
cin >> a;
if (a == "AC")
... | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int MAX = 2147483647;
const double PI = 3.14159265358979323846;
int main() {
int n;
string a;
int s[4];
cin >> n;
for (int i = 0; i < 4; i++) {
s[i] = 0;
}
for (int i = 0; i < n; i++) {
cin >> a;
if (a == "AC")
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 197 |
#include <bits/stdc++.h>
using namespace std;
#define TRACE(x) x
#define WATCH(x) TRACE(cout << #x " = " << x << endl)
#define PRINT(x) TRACE(printf(x))
#define WATCHR(a, b) \
TRACE(for (auto c = a; c != b;) cout << *(c++) << " "; cout << endl)
#define WATCHC(... | #include <bits/stdc++.h>
using namespace std;
#define TRACE(x) x
#define WATCH(x) TRACE(cout << #x " = " << x << endl)
#define PRINT(x) TRACE(printf(x))
#define WATCHR(a, b) \
TRACE(for (auto c = a; c != b;) cout << *(c++) << " "; cout << endl)
#define WATCHC(... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 365 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--)
#define ALL(x) (x).begin(), (x).end() ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--)
#define ALL(x) (x).begin(), (x).end() ... | [["-", 0, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["+", 0, 16, 31, 16, 12, 69, 341, 342, 0, 13]] | 1 | 233 |
#include <bits/stdc++.h>
#define ll long long
#define f(i, a, b) for (ll i = a; i < b; i++)
#define fi(i, a, b) for (ll i = b; i >= a; i--)
using namespace std;
ll mod(ll a) {
if (a > 0)
return a;
else
return -a;
}
ll min(ll a, ll b) {
if (a > b)
return b;
else
return a;
}
ll gcd(ll a, ll b) {
... | #include <bits/stdc++.h>
#define ll long long
#define f(i, a, b) for (ll i = a; i < b; i++)
#define fi(i, a, b) for (ll i = b; i >= a; i--)
using namespace std;
ll mod(ll a) {
if (a > 0)
return a;
else
return -a;
}
ll min(ll a, ll b) {
if (a > b)
return b;
else
return a;
}
ll gcd(ll a, ll b) {
... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 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 | 291 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
//マクロ
// forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
// Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)
/... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
//マクロ
// forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
// Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)
/... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 410 |
n=int(input())
a=[0]*4
b=""
for i in range(n):
b=input()
if b=="AC":
a[0]+=1
elif b=="WA":
a[1]+=1
elif b=="TLE":
a[2]+=1
elif b==1:
a[3]+=1
print("AC","x",a[0])
print("WA","x",a[1])
print("TLE","x",a[2])
print("RE","x",a[3]) | n=int(input())
a=[0]*4
b=""
for i in range(n):
b=input()
if b=="AC":
a[0]+=1
elif b=="WA":
a[1]+=1
elif b=="TLE":
a[2]+=1
elif b=="RE":
a[3]+=1
print("AC","x",a[0])
print("WA","x",a[1])
print("TLE","x",a[2])
print("RE","x",a[3]) | [["-", 8, 196, 0, 57, 75, 665, 15, 666, 0, 612], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 654], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 6], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 655]] | 5 | 142 |
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
int main() {
int N;
cin >> N;
vector<int> cnt(4);
vector<string> testcase = {"AC", "WA", "TLE", "RE"};
rep(i, N) {
string s;
cin >> s;... | #include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
int main() {
int N;
cin >> N;
vector<int> cnt(4);
vector<string> testcase = {"AC", "WA", "TLE", "RE"};
rep(i, N) {
string s;
cin >> s;... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 168 |
#include <bits/stdc++.h>
using namespace std;
#define SPEED \
ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0)
#define read() f... | #include <bits/stdc++.h>
using namespace std;
#define SPEED \
ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0)
#define read() f... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 325 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
int main() {
ll n, i;
cin >> n;
string s;
map<string, ll> mp;
mp["AC"] = 0;
mp["TLE"] = 0;
mp["RE"] = 0;
mp["WA"] = 0;
for (i = 0; i < n; i++)
cin >> s, mp[s]++;
cout << "AC X " << mp["AC"] << endl;
cou... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
int main() {
ll n, i;
cin >> n;
string s;
map<string, ll> mp;
mp["AC"] = 0;
mp["TLE"] = 0;
mp["RE"] = 0;
mp["WA"] = 0;
for (i = 0; i < n; i++)
cin >> s, mp[s]++;
cout << "AC x " << mp["AC"] << endl;
cou... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 160 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define mod 1000000007
#define mem(arr, x) memset(arr, x, sizeof(arr))
#define fast() \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define mod 1000000007
#define mem(arr, x) memset(arr, x, sizeof(arr))
#define fast() \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 232 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
map<string, int> mp;
mp["AC"] = 0;
mp["WA"] = 0;
mp["TLE"] = 0;
mp["RE"] = 0;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
mp[s]++;
}
cout << "AC X " << mp["AC"] << endl;
cout << "WA X " << mp["WA"] << end... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
map<string, int> mp;
mp["AC"] = 0;
mp["WA"] = 0;
mp["TLE"] = 0;
mp["RE"] = 0;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
mp[s]++;
}
cout << "AC x " << mp["AC"] << endl;
cout << "WA x " << mp["WA"] << end... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 152 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int a = 0, b = 0, c = 0, d = 0;
string s;
for (int i = 0; i < n; i++) {
cin >> s;
if (s == "AC") {
a++;
}
if (s == "TLE") {
c++;
}
if (s == "WA") {
b++;
}
if (s == "RE") {
d++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int a = 0, b = 0, c = 0, d = 0;
string s;
for (int i = 0; i < n; i++) {
cin >> s;
if (s == "AC") {
a++;
}
if (s == "TLE") {
c++;
}
if (s == "WA") {
b++;
}
if (s == "RE") {
d++;
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 151 |
from collections import Counter
n = int(input().strip())
L = [input().strip() for _ in range(n)]
cnt=Counter(L)
for x in ["AC", "WA", "TLE", "RE"]:
print(x+" x "+str(cnt[x])) | from collections import Counter
n = int(input().strip())
L = [input().strip() for _ in range(n)]
cnt=Counter(L)
for x in ["AC", "WA", "TLE", "RE"]:
print(x+" x "+str(cnt[x])) | [["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 77 |
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int n;
cin >> n;
vector<string> s(n);
for... | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int n;
cin >> n;
vector<string> s(n);
for... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 201 |
from collections import Counter
N = int(input())
d = {'AC':0,
'WA':0,
'TLE':0,
'RE:':0}
for key,value in Counter([input() for _ in range(N)]).items():
d[key]=value
for key,value in d.items():
print(key,'x',value) | from collections import Counter
N = int(input())
d = {'AC':0,
'WA':0,
'TLE':0,
'RE':0}
for key,value in Counter([input() for _ in range(N)]).items():
d[key]=value
for key,value in d.items():
print(key,'x',value) | [["-", 0, 662, 12, 680, 0, 569, 448, 557, 0, 6], ["+", 0, 662, 12, 680, 0, 569, 448, 557, 0, 6]] | 5 | 91 |
#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define endl "\n"
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define vll vector<ll>
#define all(x) x.begin(), x.end()
#define fileopen freopen("input.txt", "rt", stdin);
#define fileclose freopen("output.txt", "wt", s... | #include <bits/stdc++.h>
#define ll long long
#define ld long double
#define endl "\n"
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define vll vector<ll>
#define all(x) x.begin(), x.end()
#define fileopen freopen("input.txt", "rt", stdin);
#define fileclose freopen("output.txt", "wt", s... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 178 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
#define debug(x) cerr << #x << ": " << x << endl;
#define MOD 1000000007ULL;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
l... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
#define debug(x) cerr << #x << ": " << x << endl;
#define MOD 1000000007ULL;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
l... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 242 |
from collections import Counter
from math import sqrt
import math
n = int(input())
a = []
b = ["AC" , "TLE" , "WA" , "RE"]
for i in range(n):
a.append(input())
c = Counter(a)
for i in b:
print(i , " x ", c[i]) | from collections import Counter
from math import sqrt
import math
n = int(input())
a = []
b = ["AC" , "WA" , "TLE" , "RE"]
for i in range(n):
a.append(input())
c = Counter(a)
for i in b:
print(i , " x ", c[i]) | [["-", 0, 1, 0, 662, 12, 634, 0, 557, 0, 6], ["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 6]] | 5 | 81 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int max(int a, int b) {
if (a > b)
return a;
else
return b;
}
int min(int a, int b) {
if (a > b)
return b;
else
return a;
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll n, l;
cin >> n;
int a = 0, w... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int max(int a, int b) {
if (a > b)
return a;
else
return b;
}
int min(int a, int b) {
if (a > b)
return b;
else
return a;
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll n, l;
cin >> n;
int a = 0, w... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 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 | 194 |
#include "bits/stdc++.h"
using namespace ::std;
#define all(x) x.begin(), x.end()
#define Unique(x) x.erase(unique(x.begin(), x.end()), x.end())
template <class T> T SQR(T N) { return (T)N * N; }
template <class T> double DIST(T a, T b) {
return 1.0 * sqrt(SQR(double(a)) + SQR(double(b)));
}
template <class T> boo... | #include "bits/stdc++.h"
using namespace ::std;
#define all(x) x.begin(), x.end()
#define Unique(x) x.erase(unique(x.begin(), x.end()), x.end())
template <class T> T SQR(T N) { return (T)N * N; }
template <class T> double DIST(T a, T b) {
return 1.0 * sqrt(SQR(double(a)) + SQR(double(b)));
}
template <class T> boo... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 428 |
#include <bits/stdc++.h>
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
int main() {
int n;
cin >> n;
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
string s;
rep(i, n) {
cin >> s;
if (s == "AC") {
ac++;
} else i... | #include <bits/stdc++.h>
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
int main() {
int n;
cin >> n;
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
string s;
rep(i, n) {
cin >> s;
if (s == "AC") {
ac++;
} else i... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 175 |
ac=0
wa=0
tle=0
re=0
n=int(input())
for _ in range(n):
x=input()
if x=='AC':
ac+=1
elif x=='WA':
wa+=1
elif x=='TLE':
tle+=1
elif x=='RE':
RE+=1
print('AC x',ac)
print('WA x',wa)
print('TLE x',tle)
print('RE x',re) | ac=0
wa=0
tle=0
re=0
n=int(input())
for _ in range(n):
x=input()
if x=='AC':
ac+=1
elif x=='WA':
wa+=1
elif x=='TLE':
tle+=1
elif x=='RE':
re+=1
print('AC x',ac)
print('WA x',wa)
print('TLE x',tle)
print('RE x',re) | [["-", 75, 665, 64, 196, 0, 1, 0, 677, 31, 22], ["+", 75, 665, 64, 196, 0, 1, 0, 677, 31, 22]] | 5 | 105 |
#include <bits/stdc++.h>
using namespace std;
int ac = 0, wa = 0, tle = 0, re = 0;
string s;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.precision(10);
cout << fixed;
#ifdef LOCAL_DEFINE
freopen("input.txt", "r", stdin);
#endif
int n;
cin >> n;
for (int i = 0; i < n; ++i) {
cin >>... | #include <bits/stdc++.h>
using namespace std;
int ac = 0, wa = 0, tle = 0, re = 0;
string s;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.precision(10);
cout << fixed;
#ifdef LOCAL_DEFINE
freopen("input.txt", "r", stdin);
#endif
int n;
cin >> n;
for (int i = 0; i < n; ++i) {
cin >>... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 220 |
#include <bits/stdc++.h>
#define mod 1000000007
#define pi 3.14159265359
#define pb push_back
using namespace std;
vector<long long int> prm;
bool prime[10000001];
int binarySearch(int arr[], int l, int r, int x) {
while (l <= r) {
int m = l + (r - l) / 2;
if (arr[m] == x)
return m;
if (arr[m] < x)
... | #include <bits/stdc++.h>
#define mod 1000000007
#define pi 3.14159265359
#define pb push_back
using namespace std;
vector<long long int> prm;
bool prime[10000001];
int binarySearch(int arr[], int l, int r, int x) {
while (l <= r) {
int m = l + (r - l) / 2;
if (arr[m] == x)
return m;
if (arr[m] < x)
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 696 |
/// mAAria...
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | /// mAAria...
#include <bits/stdc++.h>
using namespace std;
#define int long long
#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 | 416 |
n = int(input())
s = [input() for i in range(n)]
ans = [0] * 4
for i in s:
if i == "AC":
ans[0] += 1
elif i == "WA":
ans[1] += 1
elif i == "TLE":
ans[2] += 1
else:
ans[3] == "RE"
print("AC x",ans[0])
print("WA x",ans[1])
print("TLE x",ans[2])
print("RE x",ans[3]) | n = int(input())
s = [input() for i in range(n)]
ans = [0] * 4
for i in s:
if i == "AC":
ans[0] += 1
elif i == "WA":
ans[1] += 1
elif i == "TLE":
ans[2] += 1
else:
ans[3] += 1
print("AC x",ans[0])
print("WA x",ans[1])
print("TLE x",ans[2])
print("RE x",ans[3]) | [["-", 75, 76, 8, 196, 0, 1, 0, 666, 667, 60], ["-", 8, 196, 0, 1, 0, 666, 0, 557, 0, 654], ["-", 8, 196, 0, 1, 0, 666, 0, 557, 0, 6], ["-", 8, 196, 0, 1, 0, 666, 0, 557, 0, 655], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 127 |
#include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pci pair<char, int>
#define psi pair<string, int>
#define vi vector<int>
#define vll vector<ll>
#define vs vector<string>
#define vc vector<char>
#define pvi vector<pii>
#define pv... | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pci pair<char, int>
#define psi pair<string, int>
#define vi vector<int>
#define vll vector<ll>
#define vs vector<string>
#define vc vector<char>
#define pvi vector<pii>
#define pv... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 184 |
N = int(input())
d = {"AC":0,"WA":0,"TLE":0,"RE":0}
for _ in range(N):
d[input()] += 1
print("AC x",d["AC"])
print("WA x 0",d["WA"] )
print("TLE x 0",d["TLE"])
print("RE x 0",d["RE"]) | N = int(input())
d = {"AC":0,"WA":0,"TLE":0,"RE":0}
for _ in range(N):
d[input()] += 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]] | 5 | 103 |
/**
* author: K.R.Surrya
* created: 05.07.2020 17:32:59
**/
//~ ~~ ~~~~ ~~~~~~~~
#include <bits/stdc++.h>
using namespace std;
using lint = long long int;
using pint = pair<int, int>;
using plint = pair<lint, lint>;
#define arr array
#define vi vector<int>
#define vli vector<lint>
#define pb push_back
#defi... | /**
* author: K.R.Surrya
* created: 05.07.2020 17:32:59
**/
//~ ~~ ~~~~ ~~~~~~~~
#include <bits/stdc++.h>
using namespace std;
using lint = long long int;
using pint = pair<int, int>;
using plint = pair<lint, lint>;
#define arr array
#define vi vector<int>
#define vli vector<lint>
#define pb push_back
#defi... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 975 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
// code
ll t;
cin >> t;
int a[4] = {0};
string s;
while (t--) {
cin >> s;
if (s == "AC")
a[0]++;
else if (s == "WA")
a[1]++;
else if (s == "TLE")
a[2]++;
else
a[3]++;
}
cout << "A... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
// code
ll t;
cin >> t;
int a[4] = {0};
string s;
while (t--) {
cin >> s;
if (s == "AC")
a[0]++;
else if (s == "WA")
a[1]++;
else if (s == "TLE")
a[2]++;
else
a[3]++;
}
cout << "A... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 153 |
n = int(input())
ac, wa, tle, re = 0,0,0,0
for i in range(n):
x = input()
if x == 'AC':
ac += 1
elif x == 'WA':
wa += 1
elif x == 'TLE':
tle += 1
elif x == 're':
re += 1
print('AC x', ac)
print('WA x', wa)
print('TLE x', tle)
print('RE x', re) | n = int(input())
ac, wa, tle, re = 0,0,0,0
for i in range(n):
x = input()
if x == 'AC':
ac += 1
elif x == 'WA':
wa += 1
elif x == 'TLE':
tle += 1
elif x == 'RE':
re += 1
print('AC x', ac)
print('WA x', wa)
print('TLE x', tle)
print('RE x', re) | [["-", 0, 57, 75, 665, 15, 666, 0, 557, 0, 6], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 6]] | 5 | 108 |
#include <bits/stdc++.h>
using namespace std;
void solve() {
int n;
cin >> n;
string s;
map<string, int> m;
m["AC"] = 0;
m["WA"] = 0;
m["TLE"] = 0;
m["RE"] = 0;
for (int i = 0; i < n; i++) {
cin >> s;
m[s]++;
}
cout << "AC X " << m["AC"] << endl;
cout << "WA X " << m["WA"] << endl;
co... | #include <bits/stdc++.h>
using namespace std;
void solve() {
int n;
cin >> n;
string s;
map<string, int> m;
m["AC"] = 0;
m["WA"] = 0;
m["TLE"] = 0;
m["RE"] = 0;
for (int i = 0; i < n; i++) {
cin >> s;
m[s]++;
}
cout << "AC x " << m["AC"] << endl;
cout << "WA x " << m["WA"] << endl;
co... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 178 |
#include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define ss second
#define ff first
#define Mem(x, val) memset(x, val, sizeof x)
#define pb push_back
#define all(v) v.begin(), v.end()
#define unik(v) v.erase(unique(v.begin(), v.end()), v.end())
#define cerr(x) cerr << __LINE__ << " th Line : " <... | #include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define ss second
#define ff first
#define Mem(x, val) memset(x, val, sizeof x)
#define pb push_back
#define all(v) v.begin(), v.end()
#define unik(v) v.erase(unique(v.begin(), v.end()), v.end())
#define cerr(x) cerr << __LINE__ << " th Line : " <... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 301 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<string, string> pss;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<pii> vpi;
typedef map<int, int> mapii;
typedef map<in... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<string, string> pss;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<pii> vpi;
typedef map<int, int> mapii;
typedef map<in... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 393 |
'''
Auther: ghoshashis545 Ashis Ghosh
College: jalpaiguri Govt Enggineering College
'''
from os import path
import sys
from functools import cmp_to_key as ctk
from collections import deque,defaultdict as dd
from bisect import bisect,bisect_left,bisect_right,insort,insort_left,insort_right
from itertools impor... | '''
Auther: ghoshashis545 Ashis Ghosh
College: jalpaiguri Govt Enggineering College
'''
from os import path
import sys
from functools import cmp_to_key as ctk
from collections import deque,defaultdict as dd
from bisect import bisect,bisect_left,bisect_right,insort,insort_left,insort_right
from itertools impor... | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 361 |
#include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
typedef unsigned long long int lu;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef set<ll> sl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
typedef pair<int, int> ii;
typedef pair<ll, ll> il;
#de... | #include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
typedef unsigned long long int lu;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef set<ll> sl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
typedef pair<int, int> ii;
typedef pair<ll, ll> il;
#de... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 1,762 |
#include <bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
#define limit (int)(1005)
#define mod (int)1000000007
using namespace std;
using lli = long long int;
using ulli = unsigned long long int;
using ld = long double;
string st[4] = {"AC", "WA", "TLE", "RE"};
int main() {
// ios_base::sy... | #include <bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
#define limit (int)(1005)
#define mod (int)1000000007
using namespace std;
using lli = long long int;
using ulli = unsigned long long int;
using ld = long double;
string st[4] = {"AC", "WA", "TLE", "RE"};
int main() {
// ios_base::sy... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 187 |
/* Aditya0412 */
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define pb push_back
#define ve vector
#define vii vector<int>
#define vll vector<ll>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vpl vector<pll>
#define fi first
#define all(a) (a).begin(), (a).end()
#define si(x) ... | /* Aditya0412 */
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define pb push_back
#define ve vector
#define vii vector<int>
#define vll vector<ll>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vpl vector<pll>
#define fi first
#define all(a) (a).begin(), (a).end()
#define si(x) ... | [["-", 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 | 485 |
n = int(input())
s = [0]*n
for i in range(n):
s[i] = input()
ac = s.count('AC')
wa = s.count('WA')
tle = s.count('TLE')
re = s.count('RE')
print('AC x',ac)
print('WA x',wa)
print('TLE x',tle)
print('Re x',re)
| n = int(input())
s = [0]*n
for i in range(n):
s[i] = input()
ac = s.count('AC')
wa = s.count('WA')
tle = s.count('TLE')
re = s.count('RE')
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 | 103 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define MP make_pair
#define pb push_back
#define PLL pair<ll, ll>
int main() {
ll n;
cin >> n;
string s[n];
ll i, ca = 0, ct = 0, cr = 0, cw = 0;
for (i = 0; i < n; i++) {
cin >> s[i];
if (s[i][0] == 'A')
ca++;
else ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define MP make_pair
#define pb push_back
#define PLL pair<ll, ll>
int main() {
ll n;
cin >> n;
string s[n];
ll i, ca = 0, ct = 0, cr = 0, cw = 0;
for (i = 0; i < n; i++) {
cin >> s[i];
if (s[i][0] == 'A')
ca++;
else ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 199 |
// By Krishna Yadav
#pragma GCC optimize("-O2")
#include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... | // By Krishna Yadav
#pragma GCC optimize("-O2")
#include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 298 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
String[] s = new String[n];
for (int i = 0; i < n; i++) {
s[i] = sc.next();
}
int ac = 0;
int wa = 0;
int tle = 0;... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
String[] s = new String[n];
for (int i = 0; i < n; i++) {
s[i] = sc.next();
}
int ac = 0;
int wa = 0;
int tle = 0;... | [["-", 15, 15, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 15, 15, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 240 |
#include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define lli l... | #include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define lli l... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 483 |
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cerrno>
#include <clocale>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cwchar>
#include <cwctype>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cerrno>
#include <clocale>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cwchar>
#include <cwctype>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 199 |
#include <bits/stdc++.h>
#include <set>
#define ll long long
#include <string>
#define pb push_back
#define mp make_pair
#define pi 3.14159265358979323846
using namespace std;
int main() {
ll int n;
cin >> n;
map<string, ll int> m;
ll int i;
for (i = 0; i < n; i++) {
string s;
cin >> s;
m[s]++;
... | #include <bits/stdc++.h>
#include <set>
#define ll long long
#include <string>
#define pb push_back
#define mp make_pair
#define pi 3.14159265358979323846
using namespace std;
int main() {
ll int n;
cin >> n;
map<string, ll int> m;
ll int i;
for (i = 0; i < n; i++) {
string s;
cin >> s;
m[s]++;
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 153 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
map<string, int> mp;
int n;
cin >> n;
string s;
for (int i = 0; i < n; i++) {
cin >> s;
mp[s]++;
}
vector<string> v = {"AC", "RE", "TLE", "WA"};
for (int i = 0; i < 4; i++) {
cout << v[i] << " x " << mp[v[i]] <... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
map<string, int> mp;
int n;
cin >> n;
string s;
for (int i = 0; i < n; i++) {
cin >> s;
mp[s]++;
}
vector<string> v = {"AC", "WA", "TLE", "RE"};
for (int i = 0; i < 4; i++) {
cout << v[i] << " x " << mp[v[i]] <... | [["-", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6], ["+", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6]] | 1 | 127 |
#include <bits/stdc++.h>
#define ll long long
#define dl double
#define mp make_pair
#define pb push_back
using namespace std;
//***********************************************************************
// hash struct for unordered_map
struct hash_pair {
template <class T1, class T2> size_t operator()(const pair<T1, ... | #include <bits/stdc++.h>
#define ll long long
#define dl double
#define mp make_pair
#define pb push_back
using namespace std;
//***********************************************************************
// hash struct for unordered_map
struct hash_pair {
template <class T1, class T2> size_t operator()(const pair<T1, ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 366 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
vector<string> s(n);
for (int i = 0; i < n; i++)
cin >> s[i];
int a = 0;
int w = 0;
int t = 0;
int r = 0;
for (int i = 0; i < n; i++) {
if (s[i] == "AC")
a++;
else if (s[i] == "WA")
w++;
else if (s[i] == "TLE")... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<string> s(n);
for (int i = 0; i < n; i++)
cin >> s[i];
int a = 0;
int w = 0;
int t = 0;
int r = 0;
for (int i = 0; i < n; i++) {
if (s[i] == "AC")
a++;
else if (s[i] == "WA")
w++;
else if (s[... | [["+", 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 | 180 |
<?php
fscanf(STDIN,"%d",$n);
$count_case['AC'] = 0;
$count_case['WA'] = 0;
$count_case['TLE'] = 0;
$count_case['RE'] = 0;
for($i=0;$i<$n;$i++){
fscanf(STDIN,"%s",$s);
$count_case[$s]++;
}
//print_r($count_case);
foreach($count_case as $re => $count){
echo $re." × ".$count."\n";
} | <?php
fscanf(STDIN,"%d",$n);
$count_case['AC'] = 0;
$count_case['WA'] = 0;
$count_case['TLE'] = 0;
$count_case['RE'] = 0;
for($i=0;$i<$n;$i++){
fscanf(STDIN,"%s",$s);
$count_case[$s]++;
}
//print_r($count_case);
foreach($count_case as $re => $count){
echo $re." x ".$count."\n";
} | [["-", 0, 16, 31, 16, 31, 16, 12, 609, 0, 610], ["+", 0, 16, 31, 16, 31, 16, 12, 609, 0, 610]] | 6 | 121 |
n=int(input())
c=[0 for i in range(4)]
for i in range(n):
s=input()
if s=="AC":
c[0]+=1
if s=="WA":
c[1]+=1
if s=="TLE":
c[2]+=1
if s=="RE":
c[3]+=1
print("AC x ",c[0])
print("WA x ",c[1])
print("TLEW x ",c[2])
print("RE x ",c[3]) | n=int(input())
c=[0 for i in range(4)]
for i in range(n):
s=input()
if s=="AC":
c[0]+=1
if s=="WA":
c[1]+=1
if s=="TLE":
c[2]+=1
if s=="RE":
c[3]+=1
print("AC x ",c[0])
print("WA x ",c[1])
print("TLE x ",c[2])
print("RE x ",c[3]) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 129 |
N=int(input())
box=[0]*4
for i in range(N):
S=str(input())
if S=="AC":
box[0]+=1
elif S=="WA":
box[1]+=1
elif S=="TLE":
box[2]+=1
else:
box[3]*=1
print("AC x ",box[0])
print("WA x ",box[1])
print("TLE x ",box[2])
print("RE x ",box[3])
| N=int(input())
box=[0]*4
for i in range(N):
S=str(input())
if S=="AC":
box[0]+=1
elif S=="WA":
box[1]+=1
elif S=="TLE":
box[2]+=1
else:
box[3]+=1
print("AC x ",box[0])
print("WA x ",box[1])
print("TLE x ",box[2])
print("RE x ",box[3])
| [["-", 75, 76, 8, 196, 0, 1, 0, 677, 17, 108], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 17, 107]] | 5 | 122 |
#include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <tuple>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)n; i++) // n回繰り返す
#define rrep(i, n) for... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <tuple>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)n; i++) // n回繰り返す
#define rrep(i, n) for... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 294 |
t=int(input())
f=[]
for i in range(t):
s=input()
f.append(s)
print("AC"+' '+'*'+' '+str((f.count("AC"))))
print("WA"+' '+'*'+' '+str((f.count("WA"))))
print("TLE"+' '+'*'+' '+str((f.count("TLE"))))
print("RE"+' '+'*'+' '+str((f.count("RE"))))
| t=int(input())
f=[]
for i in range(t):
s=input()
f.append(s)
print("AC"+' '+'x'+' '+str((f.count("AC"))))
print("WA"+' '+'x'+' '+str((f.count("WA"))))
print("TLE"+' '+'x'+' '+str((f.count("TLE"))))
print("RE"+' '+'x'+' '+str((f.count("RE"))))
| [["-", 0, 657, 31, 657, 31, 657, 12, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 12, 557, 0, 6]] | 5 | 159 |
N = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for i in range(N):
temp = input()
if temp == "AC":
AC = AC + 1
if temp == "WA":
WA = WA + 1
if temp == "TLE":
TLE = TLE + 1
if temp == RE:
RE = RE + 1
print("AC x " + str(AC))
print("WA x " + str(WA))
print("TLE x " + str(... | N = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for i in range(N):
temp = input()
if temp == "AC":
AC = AC + 1
if temp == "WA":
WA = WA + 1
if temp == "TLE":
TLE = TLE + 1
if temp == "RE":
RE = RE + 1
print("AC x " + str(AC))
print("WA x " + str(WA))
print("TLE x " + st... | [["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]] | 5 | 123 |
from collections import defaultdict
n = int(input())
d = defaultdict(int)
for i in range(n):
d[input()] += 1
for i in ['AC', 'WA', 'TLE', 'RE']:
print(i+' X '+str(d[i])) | from collections import defaultdict
n = int(input())
d = defaultdict(int)
for i in range(n):
d[input()] += 1
for i in ['AC', 'WA', 'TLE', 'RE']:
print(i+' x '+str(d[i])) | [["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 71 |
package main
import (
"fmt"
)
func main() {
var n int
fmt.Scanf("%d", &n)
var ac, wa, tle, re int
for i := 0; i < n; i++ {
var tmp string
fmt.Scanf("%s", &tmp)
switch (tmp) {
case "AC":
ac++
case "WA":
wa++
case "TLE":
tle++
case "re":
re++
}
}
fmt.Printf("AC x %d\n", ac);
fmt.Pri... | package main
import (
"fmt"
)
func main() {
var n int
fmt.Scanf("%d", &n)
var ac, wa, tle, re int
for i := 0; i < n; i++ {
var tmp string
fmt.Scanf("%s", &tmp)
switch (tmp) {
case "AC":
ac++
case "WA":
wa++
case "TLE":
tle++
case "RE":
re++
}
}
fmt.Printf("AC x %d\n", ac);
fmt.Pri... | [] | 7 | 161 |
ans = [0 for i in range (4)]
num = int(input())
for i in range (num):
inp = input()
if inp == 'AC':
ans[0] += 1
elif inp =='WA':
ans[1] +=1
elif inp == 'TLE':
ans[2] += 1
elif inp == 'RE':
ans[3] += 3
print ('AC x {}'.format(ans[0]))
print ('WA x {}'.format(ans[1]))
p... | ans = [0 for i in range (4)]
num = int(input())
for i in range (num):
inp = input()
if inp == 'AC':
ans[0] += 1
elif inp =='WA':
ans[1] +=1
elif inp == 'TLE':
ans[2] += 1
elif inp == 'RE':
ans[3] += 1
print ('AC x {}'.format(ans[0]))
print ('WA x {}'.format(ans[1]))
p... | [["-", 75, 665, 64, 196, 0, 1, 0, 677, 12, 612], ["+", 75, 665, 64, 196, 0, 1, 0, 677, 12, 612]] | 5 | 141 |
from collections import Counter
N = int(input())
S = [input() for i in range(N)]
res = Counter(S)
print(f"AC x {res['AC']}")
print(f"AC x {res['WA']}")
print(f"AC x {res['TLE']}")
print(f"AC x {res['RE']}") | from collections import Counter
N = int(input())
S = [input() for i in range(N)]
res = Counter(S)
print(f"AC x {res['AC']}")
print(f"WA x {res['WA']}")
print(f"TLE x {res['TLE']}")
print(f"RE x {res['RE']}") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 88 |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define pii pair<int, int>
typedef long long ll;
int n;
string s;
map<string, int> letak;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin >> n;
for (int ... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define pii pair<int, int>
typedef long long ll;
int n;
string s;
map<string, int> letak;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin >> n;
for (int ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 157 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int a, t, w, r;
a = 0;
t = 0;
w = 0;
r = 0;
while (n--) {
string s;
cin >> s;
if (s == "AC") {
a++;
} else if (s == "WA") {
w++;
} else if (s == "TLE") {
t++;
} else {
r++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int a, t, w, r;
a = 0;
t = 0;
w = 0;
r = 0;
while (n--) {
string s;
cin >> s;
if (s == "AC") {
a++;
} else if (s == "WA") {
w++;
} else if (s == "TLE") {
t++;
} else {
r++;
... | [["-", 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 | 139 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
string res;
map<string, int> result = {{"AC", 0}, {"WA", 0}, {"TLE", 0}, {"RE", 0}};
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> res;
result[res]++;
}
cout << "AC x" << result["AC"] << "\n";
cout << "WA x" << result["WA"] <... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
string res;
map<string, int> result = {{"AC", 0}, {"WA", 0}, {"TLE", 0}, {"RE", 0}};
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> res;
result[res]++;
}
cout << "AC x " << result["AC"] << "\n";
cout << "WA x " << result["WA"]... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 158 |
N=int(input())
a=[]
d=dict(AC=0, WA=0, TLE=0, RE=0)
for _ in range(N):
a=input()
d[a]+=1
for k, v in d.items():
ans=k+" × "+str(v)
print(ans) | N=int(input())
a=[]
d=dict(AC=0, WA=0, TLE=0, RE=0)
for _ in range(N):
a=input()
d[a]+=1
for k, v in d.items():
ans=k+" x "+str(v)
print(ans) | [["-", 0, 662, 12, 657, 31, 657, 12, 557, 0, 6], ["+", 0, 662, 12, 657, 31, 657, 12, 557, 0, 6]] | 5 | 78 |
#include <bits/stdc++.h>
#define ull unsigned long long
#define ll int64_t
#define f(i, s, e) for (i = s; i < e; ++i)
#define endl << "\n"
#define sp << " "
#define INF INFINITY
#define mset(a, b) memset(a, b, sizeof(a))
#define mod 1000000007
#define mp(a, b) make_pair(a, b)
#define F first
#define S second
#define al... | #include <bits/stdc++.h>
#define ull unsigned long long
#define ll int64_t
#define f(i, s, e) for (i = s; i < e; ++i)
#define endl << "\n"
#define sp << " "
#define INF INFINITY
#define mset(a, b) memset(a, b, sizeof(a))
#define mod 1000000007
#define mp(a, b) make_pair(a, b)
#define F first
#define S second
#define al... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 8, 9, 0, 1, 0, 2, 63, 118, 28, 22], ["+", 8, 9, 0, 1, 0, 2, 63, 118, 28, 22], ["-", 8, 9, 0, 1, 0, 27, 28, 69, 28, 22], ["+", 8, 9, 0, 1, 0, 27, 28, 69, 28, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16,... | 1 | 243 |
/// Astalavista Code........~CodeSlayer007
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define Br cout << endl
#define pb push_back
#define mp make_pair
#define fe first
#define se second
#define int long long
#define double long double
#define all(v) v.begin(), v.end()
#define allr(v) v.rbegin(), v... | /// Astalavista Code........~CodeSlayer007
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define Br cout << endl
#define pb push_back
#define mp make_pair
#define fe first
#define se second
#define int long long
#define double long double
#define all(v) v.begin(), v.end()
#define allr(v) v.rbegin(), v... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 590 |
/* **********************************JAI SAI RAM
* ************************************* */
// HELP IN CODEFORCES ROUND 641
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll P = 1000000007;
ll MAX = 1e15;
ll MIN = -1 * (1e15);
ll a[3020], f[3020];
void solve() {
ll n, i, j, k, l, m, o, q, r,... | /* **********************************JAI SAI RAM
* ************************************* */
// HELP IN CODEFORCES ROUND 641
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll P = 1000000007;
ll MAX = 1e15;
ll MIN = -1 * (1e15);
ll a[3020], f[3020];
void solve() {
ll n, i, j, k, l, m, o, q, r,... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 198 |
l = []
for i in range(int(input())):
l.append(input())
ac = 0
wa = 0
tle = 0
re = 0
for i in l:
if i == "AC":
ac+=1
if i == "TLE":
tle+=1
if i == "WA":
wa+=1
if i == "RE":
re+=1
print("AC X "+str(ac))
print("WA X "+str(wa))
print("TLE X "+str(tle))
print("RE X "+str(re... | l = []
for i in range(int(input())):
l.append(input())
ac = 0
wa = 0
tle = 0
re = 0
for i in l:
if i == "AC":
ac+=1
if i == "TLE":
tle+=1
if i == "WA":
wa+=1
if i == "RE":
re+=1
print("AC x "+str(ac))
print("WA x "+str(wa))
print("TLE x "+str(tle))
print("RE x "+str(re... | [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 126 |
n = gets.to_i
results = []
n.times do |i|
s = gets.chomp
results << s
end
puts "AC x #{results.count("AC")}"
puts "WA x #{results.count("WA")}"
puts "TLE x #{results.count("TLE")}"
puts "REx #{results.count("RE")}" | n = gets.to_i
results = []
n.times do |i|
s = gets.chomp
results << s
end
puts "AC x #{results.count("AC")}"
puts "WA x #{results.count("WA")}"
puts "TLE x #{results.count("TLE")}"
puts "RE x #{results.count("RE")}" | [["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6]] | 4 | 81 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
template <typename T> T gcd(T x, T y) { return (y ? gcd(y, x % y) : x); }
template <typename T> T lcm(T x, T y) { return (x / gcd(x, y) * y); }
template <typename T> void printVec(vector<T> &vec) {
cout << "";
for (auto i... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
template <typename T> T gcd(T x, T y) { return (y ? gcd(y, x % y) : x); }
template <typename T> T lcm(T x, T y) { return (x / gcd(x, y) * y); }
template <typename T> void printVec(vector<T> &vec) {
cout << "";
for (auto i... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 287 |
#include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define all(a) a.begin(), a.end()
#define pb push_back
#define mp make_pair
typedef long long ll;
typedef pair<ll, ll> P;
typedef pair<ll, int> pli;
typedef pair<int, int> pii;
#define rep(i, a, b) for (ll i = a; i < b; i++)
#define qrep(q... | #include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define all(a) a.begin(), a.end()
#define pb push_back
#define mp make_pair
typedef long long ll;
typedef pair<ll, ll> P;
typedef pair<ll, int> pli;
typedef pair<int, int> pii;
#define rep(i, a, b) for (ll i = a; i < b; i++)
#define qrep(q... | [["-", 0, 57, 75, 76, 0, 1, 0, 27, 28, 22], ["+", 0, 57, 75, 76, 0, 1, 0, 27, 28, 22]] | 1 | 974 |
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int n;
cin >> n;
int count_1 = 0, count_2 = 0, count_3 = 0, count_4 = 0;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC") {
count_1++;
}
if (s == "WA") {
count_2++;
}
if (... | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int n;
cin >> n;
int count_1 = 0, count_2 = 0, count_3 = 0, count_4 = 0;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC") {
count_1++;
}
if (s == "WA") {
count_2++;
}
if (... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 152 |
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_upper... | import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_upper... | [["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 0, 14, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 324 |
//...Bismillahir Rahmanir Rahim...
// Code by Asad Bin Saber
#include <bits/stdc++.h>
using namespace std;
// typedefs...
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<int, pii> piii;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<ll, ll> pll;
// cons... | //...Bismillahir Rahmanir Rahim...
// Code by Asad Bin Saber
#include <bits/stdc++.h>
using namespace std;
// typedefs...
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<int, pii> piii;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<ll, ll> pll;
// cons... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 419 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.