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 <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<long long> vii;
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<long long> vii;
#define fast \
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 | 176 |
#include <cstdio>
using namespace std;
int main(void) {
int n, i, j, a, b, c, d;
char s[1000000];
scanf("%d", &n);
a = 0;
b = 0;
c = 0;
d = 0;
for (i = 0; i < n; i++) {
scanf("%s", s);
if (s[0] == 'A') {
a += 1;
} else if (s[0] == 'W') {
b += 1;
} else if (s[0] == 'T') {
... | #include <cstdio>
using namespace std;
int main(void) {
int n, i, j, a, b, c, d;
char s[1000000];
scanf("%d", &n);
a = 0;
b = 0;
c = 0;
d = 0;
for (i = 0; i < n; i++) {
scanf("%s", s);
if (s[0] == 'A') {
a += 1;
} else if (s[0] == 'W') {
b += 1;
} else if (s[0] == 'T') {
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 187 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for (int i = 0; i < n; ++i) {
String curr = in.nextLine();
if (curr.equals("AC"))
... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for (int i = 0; i <= n; ++i) {
String curr = in.nextLine();
if (curr.equals("AC"))
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 197 |
class kazoe:
def __init__(self,b):
b.sort()
self.b = b
print(self.b)
def sum(self):
c = [0] *4
for i in range(len(self.b)):
if(self.b[i] == "AC"):
c[0] += 1
else:
if(self.b[i] == "TLE"):
c[1] +=... | class kazoe:
def __init__(self,b):
b.sort()
self.b = b
def sum(self):
c = [0] *4
for i in range(len(self.b)):
if(self.b[i] == "AC"):
c[0] += 1
else:
if(self.b[i] == "TLE"):
c[1] += 1
els... | [["-", 0, 14, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 319, 500, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 319, 0, 131], ["-", 0, 1, 0, 652, 3, 4, 0, 319, 319, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 208 |
n = int(input())
n_apperances = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0}
for i in range(n):
s = input()
n_apperances[s] += 1
for key in n_apperances:
print('{} × {}'.format(key, n_apperances[key]))
| n = int(input())
n_apperances = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0}
for i in range(n):
s = input()
n_apperances[s] += 1
for key in n_apperances:
print('{} x {}'.format(key, n_apperances[key]))
| [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 75 |
from collections import Counter
a = int(input())
b = [input() for _ in range(a)]
for v in ["AC", "WA", "TLE", "RE"]:
print(f"{v} x {s.count(v)}") | from collections import Counter
a = int(input())
b = [input() for _ in range(a)]
for v in ["AC", "WA", "TLE", "RE"]:
print(f"{v} x {b.count(v)}")
| [["-", 0, 557, 0, 284, 205, 652, 63, 319, 500, 22], ["+", 0, 557, 0, 284, 205, 652, 63, 319, 500, 22]] | 5 | 64 |
#include <iostream>
using namespace std;
int main(void) {
// Your code here!
int N;
string s;
cin >> N;
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for (int i = 0; i < N; i++) {
cin >> s;
if (s == "AC")
AC++;
if (s == "WA")
WA++;
if (s == "TLE")
TLE++;
if (... | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
int N;
string s;
cin >> N;
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for (int i = 0; i < N; i++) {
cin >> s;
if (s == "AC")
AC++;
if (s == "WA")
WA++;
if (s == "TLE")
TLE++;
if (... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 148 |
num = int(input())
count = {"AC":0, "WA":0, "TLE":0, "RE":0}
for i in range(num):
word = input()
for (key , n) in count.items():
if word == key:
count[key] += 1
for (key , n) in count.items():
print(key + " × " + str(n)) | num = int(input())
count = {"AC":0, "WA":0, "TLE":0, "RE":0}
for i in range(num):
word = input()
for (key , n) in count.items():
if word == key:
count[key] += 1
for (key , n) in count.items():
print(key + " x " + str(n)) | [["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 98 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mp make_pair
#define ios \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mp make_pair
#define ios \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 160 |
import math
def main():
mp = {
"AC": 0,
"TLE": 0,
"WA": 0,
"RE": 0
}
n = int(input())
for _ in range(n):
s = input()
mp[s]+=1
for key in mp.keys():
print(key, "x", mp[key])
main() | import math
def main():
mp = {
"AC": 0,
"WA": 0,
"TLE": 0,
"RE": 0
}
n = int(input())
for _ in range(n):
s = input()
mp[s]+=1
for key in mp.keys():
print(key, "x", mp[key])
main() | [["-", 0, 662, 12, 680, 0, 569, 448, 557, 0, 6], ["+", 0, 662, 12, 680, 0, 569, 448, 557, 0, 6]] | 5 | 86 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
int[] arr = new int[4];
while (t-- > 0) {
String s = sc.next();
if (s.equals("AC")) {
arr[0]++;
} else if (s.equals("WA")) {
a... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
int[] arr = new int[4];
while (t-- > 0) {
String s = sc.next();
if (s.equals("AC")) {
arr[0]++;
} else if (s.equals("WA")) {
a... | [["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]] | 3 | 205 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
ll GetDigit(ll num) { return log10(num) + 1; } // numの桁数を求める
int main() {
string c0, c1, c2, c3;
c0 = "AC";
c1 = "WA";
c2 = "TLE";
c3 = "RE";
int nc0, nc1, nc2, nc3;
nc0 = 0;
nc1 = 0... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
ll GetDigit(ll num) { return log10(num) + 1; } // numの桁数を求める
int main() {
string c0, c1, c2, c3;
c0 = "AC";
c1 = "WA";
c2 = "TLE";
c3 = "RE";
int nc0, nc1, nc2, nc3;
nc0 = 0;
nc1 = 0... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 204 |
from collections import defaultdict
def b173(n, slist):
countdict = defaultdict(int)
for s in slist:
countdict[s] += 1
return countdict
def main():
tlist = ["AC", "WA", "TLE", "RE"]
n = int(input())
slist = [str(input())for i in range(n)]
countdict = b173(n, slist)
for t in... | from collections import defaultdict
def b173(n, slist):
countdict = defaultdict(int)
for s in slist:
countdict[s] += 1
return countdict
def main():
tlist = ["AC", "WA", "TLE", "RE"]
n = int(input())
slist = [str(input())for i in range(n)]
countdict = b173(n, slist)
for t in... | [["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 123 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
int main() {
int N;
cin >> N;
vector<string> vec(N);
vector<int> count = {0, 0, 0, 0};
vector<string> dic = {"AC", "WA", "TLE", "RE"};
rep(i, N) {
string s;
cin >> s;
rep(i, 4) {
if (dic.at(... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
int main() {
int N;
cin >> N;
vector<string> vec(N);
vector<int> count = {0, 0, 0, 0};
vector<string> dic = {"AC", "WA", "TLE", "RE"};
rep(i, N) {
string s;
cin >> s;
rep(i, 4) {
if (dic.at(... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 156 |
#include <bits/stdc++.h>
#define endl '\n'
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
unordered_map<char, int> mapa;
while (n--) {
string s;
cin >> s;
++mapa[s[0]];
}
cout << "AC x " << mapa['A'] << endl;
cout << "WA... | #include <bits/stdc++.h>
#define endl '\n'
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
unordered_map<char, int> mapa;
while (n--) {
string s;
cin >> s;
++mapa[s[0]];
}
cout << "AC x " << mapa['A'] << endl;
cout << "WA... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 137 |
#include <cstdio>
#include <cstring>
using namespace std;
int main() {
int n;
scanf("%d", &n);
char str[5];
int map[4] = {0, 0, 0, 0};
while (n--) {
scanf("%s", str);
if (!strcmp(str, "AC")) {
map[0]++;
} else if (!strcmp(str, "WA")) {
map[1]++;
} else if (!strcmp(str, "TLE")) {
... | #include <cstdio>
#include <cstring>
using namespace std;
int main() {
int n;
scanf("%d", &n);
char str[5];
int map[4] = {0, 0, 0, 0};
while (n--) {
scanf("%s", str);
if (!strcmp(str, "AC")) {
map[0]++;
} else if (!strcmp(str, "WA")) {
map[1]++;
} else if (!strcmp(str, "TLE")) {
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 200 |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
String[] S = new String[N];
int[] C = {0, 0, 0, 0};
for (int i = 0; i < N; i++) {
S[i] = scan.nextLine();
}
for (int i = 0; i < N; i++) {
swi... | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
String[] S = new String[N + 1];
int[] C = {0, 0, 0, 0};
for (int i = 0; i < N + 1; i++) {
S[i] = scan.nextLine();
}
for (int i = 0; i < N + 1; i++)... | [["+", 49, 200, 51, 227, 497, 505, 0, 16, 17, 72], ["+", 49, 200, 51, 227, 497, 505, 0, 16, 12, 499], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 499]] | 3 | 240 |
def main():
N = int(input())
di = {"AC": 0, "WA": 0, "TLE": 0, "RE": 0}
for _ in range(N):
di[input()] += 1
for k, v in di.items():
print(f"{k} × {v}")
if __name__ == "__main__":
main()
| def main():
N = int(input())
di = {"AC": 0, "WA": 0, "TLE": 0, "RE": 0}
for _ in range(N):
di[input()] += 1
for k, v in di.items():
print(f"{k} x {v}")
if __name__ == "__main__":
main()
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 89 |
#include <stdio.h>
#include <string.h>
int main() {
int i, n, ac, wa, tle, re;
ac = wa = tle = re = 0;
char s[4];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s", s);
if (s[0] == 'A') {
ac++;
} else if (s[0] == 'W') {
wa++;
} else if (s[0] == 'T') {
tle++;
} else... | #include <stdio.h>
#include <string.h>
int main() {
int i, n, ac, wa, tle, re;
ac = wa = tle = re = 0;
char s[4];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s", s);
if (s[0] == 'A') {
ac++;
} else if (s[0] == 'W') {
wa++;
} else if (s[0] == 'T') {
tle++;
} else... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 233 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string AC, WA, TLE, RE;
int N;
int a = 0, b = 0, c = 0, d = 0;
cin >> N;
string str;
for (int i = 0; i < N; i++) {
cin >> str;
if (str == AC)
a++;
else if (str == WA)
b++;
else if (str == TLE)
c++;
else
d+... | #include <bits/stdc++.h>
using namespace std;
int main() {
string AC, WA, TLE, RE;
int N;
int a = 0, b = 0, c = 0, d = 0;
cin >> N;
string str;
for (int i = 0; i < N; i++) {
cin >> str;
if (str == "AC")
a++;
else if (str == "WA")
b++;
else if (str == "TLE")
c++;
else
... | [["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 62]] | 1 | 141 |
n = int(input())
ac,wa,tle,re = 0,0,0,0
for i in range(n):
inp = input()
if inp == 'AC':
ac += 1
elif inp == 'WA':
wa += 1
elif inp == 'TLE':
tle += 1
else :
RE += 1
print('AC x {}\nWA x {}\nTLE x {}\nRE x {}'.format(ac,wa,tle,re)) | n = int(input())
ac,wa,tle,re = 0,0,0,0
for i in range(n):
inp = input()
if inp == 'AC':
ac += 1
elif inp == 'WA':
wa += 1
elif inp == 'TLE':
tle += 1
else:
re += 1
print('AC x {}\nWA x {}\nTLE x {}\nRE x {}'.format(ac,wa,tle,re)) | [["-", 75, 76, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 31, 22]] | 5 | 94 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
string s;
cin >> n;
int ca = 0, cw = 0, ct = 0, cr = 0;
while (n--) {
cin >> s;
if (s == "AC")
ca++;
if (s == "WA")
cw++;
if (s == "TLE")
ct++;
if (s == "RE")
cr++;
}
cout << "AC x " << ca << "\... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
string s;
cin >> n;
int ca = 0, cw = 0, ct = 0, cr = 0;
while (n--) {
cin >> s;
if (s == "AC")
ca++;
if (s == "WA")
cw++;
if (s == "TLE")
ct++;
if (s == "RE")
cr++;
}
cout << "AC x " << ca << "\... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 136 |
#include <stdio.h>
#include <string.h>
int main(void) {
char N[10];
int accounter = 0;
int wacounter = 0;
int tlecounter = 0;
int recounter = 0;
int n;
int num = 6;
scanf("%d", &n);
for (int i = 0; i < num; i++) {
scanf("%s", N);
if (strcmp(N, "AC") == 0) {
accounter++;
} else if (s... | #include <stdio.h>
#include <string.h>
int main(void) {
char N[10];
int accounter = 0;
int wacounter = 0;
int tlecounter = 0;
int recounter = 0;
int n;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%s", N);
if (strcmp(N, "AC") == 0) {
accounter++;
} else if (strcmp(N, "WA") ==... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 0 | 198 |
N = int(input())
Si = [input for i in range(N)]
C0 = 0
C1 = 0
C2 = 0
C3 = 0
for in1 in Si:
if in1 == "AC":
C0 +=1
elif in1 == "WA":
C1 += 1
elif in1 == "TLE":
C2 += 1
elif in1 == "RE":
C3 += 1
print("AC x {}".format(C0))
print("WA x {}".format(C1))
print("TLE x {}".f... | N = int(input())
Si = [input() for i in range(N)]
C0 = 0
C1 = 0
C2 = 0
C3 = 0
for in1 in Si:
if in1 == "AC":
C0 +=1
elif in1 == "WA":
C1 += 1
elif in1 == "TLE":
C2 += 1
elif in1 == "RE":
C3 += 1
print("AC x {}".format(C0))
print("WA x {}".format(C1))
print("TLE x {}".f... | [["+", 0, 662, 12, 658, 8, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 658, 8, 652, 3, 4, 0, 25]] | 5 | 121 |
#include <iostream>
using namespace std;
int main() {
int n, c = 0, c1 = 0, c2 = 0, c3 = 0;
string str;
cin >> n;
for (int i = 1; i <= n; i++) {
getline(cin, str);
if (str == "AC")
c++;
else if (str == "WA")
c1++;
else if (str == "TLE")
c2++;
else if (str == "RE")
c3+... | #include <iostream>
using namespace std;
int main() {
int n, c = 0, c1 = 0, c2 = 0, c3 = 0;
string str;
cin >> n;
cin.ignore();
for (int i = 1; i <= n; i++) {
getline(cin, str);
if (str == "AC")
c++;
else if (str == "WA")
c1++;
else if (str == "TLE")
c2++;
else if (str ==... | [["+", 8, 9, 0, 1, 0, 2, 63, 118, 28, 22], ["+", 8, 9, 0, 1, 0, 2, 63, 118, 17, 131], ["+", 8, 9, 0, 1, 0, 2, 63, 118, 119, 120], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 162 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int arr[4];
int main() {
int n;
cin >> n;
string s;
for (int i = 0; i < n; i++) {
cin >> s;
if (s[0] == 'A')
arr[0]++;
else if (s[0] == 'W')
arr[1]++;
else if (s[0] == ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int arr[4];
int main() {
int n;
cin >> n;
string s;
for (int i = 0; i < n; i++) {
cin >> s;
if (s[0] == 'A')
arr[0]++;
else if (s[0] == 'W')
arr[1]++;
else if (s[0] == ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 179 |
/*
________
|\ ____\ _____ _ ___ ___
\ \ \___|_ ___ _|_ _|__ _ _ ___| |_ _ / _ V _ \
\ \_____ V _ \/ __; |/ _ \ | | / __; | | | | | |_| | |_| |
\|____|\ \ _/| | | | |_| |_| \__ \ | |_| | | _ | _ |
____\_\ \_||_|_| |\___/\__,_|___/_|\__, |0|_| |_|_| |_|
|... | /*
________
|\ ____\ _____ _ ___ ___
\ \ \___|_ ___ _|_ _|__ _ _ ___| |_ _ / _ V _ \
\ \_____ V _ \/ __; |/ _ \ | | / __; | | | | | |_| | |_| |
\|____|\ \ _/| | | | |_| |_| \__ \ | |_| | | _ | _ |
____\_\ \_||_|_| |\___/\__,_|___/_|\__, |0|_| |_|_| |_|
|... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 466 |
#include <bits/stdc++.h>
#include <vector>
#define maxx 1000000
#define ll long long
#define boostUP \
ios::sync_with_stdio(false); \
cin.tie(0); ... | #include <bits/stdc++.h>
#include <vector>
#define maxx 1000000
#define ll long long
#define boostUP \
ios::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 | 184 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
string s;
int cAC = 0;
int cRE = 0;
int cTLE = 0;
int cWA = 0;
while (t--) {
cin >> s;
if (s.compare("AC") == 0) {
cAC++;
continue;
}
if (s.compare("TLE") == 0) {
cAC++;
continue;
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
string s;
int cAC = 0;
int cRE = 0;
int cTLE = 0;
int cWA = 0;
while (t--) {
cin >> s;
if (s.compare("AC") == 0) {
cAC++;
continue;
}
if (s.compare("TLE") == 0) {
cTLE++;
continue;
}
... | [["-", 0, 57, 64, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 27, 28, 22]] | 1 | 225 |
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
int t;
cin >> t;
vector<string> vec;
for (int i = 0; i < t; i++) {
string x;
cin >> x;
vec.push_back(x);
}
string a = "AC ", b = "TLE ", d = "WA ", e = "RE ";
int a1 = 0, b1 = 0, d1 = 0, e1 = 0;
for ... | #include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
int t;
cin >> t;
vector<string> vec;
for (int i = 0; i < t; i++) {
string x;
cin >> x;
vec.push_back(x);
}
string a = "AC", b = "TLE", d = "WA", e = "RE";
int a1 = 0, b1 = 0, d1 = 0, e1 = 0;
for (int... | [["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6]] | 1 | 228 |
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ll;
#define mod 1000000007
#define all(x) (x).begin(), (x).end()
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
ll t;
cin >> t;
ll a = 0, w = 0, tl = 0, re = 0;
vector<string> str(t);
for (string &s : str) {
cin >> ... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ll;
#define mod 1000000007
#define all(x) (x).begin(), (x).end()
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
ll t;
cin >> t;
ll a = 0, w = 0, tl = 0, re = 0;
vector<string> str(t);
for (string &s : str) {
cin >> ... | [["-", 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 | 172 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int arr[] = {0, 0, 0, 0};
int n;
cin >> n;
for (int i = 0; i < n; i++) {
string str;
getline(cin, str);
if (str.compare("AC") == 0) {
arr[0] = arr[0] + 1;
}
if (str.compare("WA") == 0) {
arr[1] = arr[1] + 1;
}
i... | #include <bits/stdc++.h>
using namespace std;
int main() {
int arr[] = {0, 0, 0, 0};
int n;
cin >> n;
for (int i = 0; i <= n; i++) {
string str;
getline(cin, str);
if (str.compare("AC") == 0) {
arr[0] = arr[0] + 1;
}
if (str.compare("WA") == 0) {
arr[1] = arr[1] + 1;
}
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 228 |
#include <iostream>
#include <unordered_map>
using namespace std;
int main() {
unordered_map<string, int> um;
int n;
cin >> n;
string s;
for (int i = 0; i < n; i++) {
cin >> s;
um[s]++;
}
cout << "AC"
<< " x " << um["AC"] << endl;
cout << "WA"
<< " x " << um["WA"] << endl;
cout <... | #include <iostream>
#include <unordered_map>
using namespace std;
int main() {
unordered_map<string, int> um;
int n;
cin >> n;
string s;
for (int i = 0; i < n; i++) {
cin >> s;
um[s]++;
}
cout << "AC"
<< " x " << um["AC"] << endl;
cout << "WA"
<< " x " << um["WA"] << endl;
cout <... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 132 |
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
ArrayList<String> test_case = new ArrayList<>();
int n = sc.nextInt();
for (int i = 0; i < n + 1; i++) {
test_case.add(sc.nextLine());
}
Map<String, Integer> sum = new Ha... | import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
ArrayList<String> test_case = new ArrayList<>();
int n = sc.nextInt();
for (int i = 0; i < n + 1; i++) {
test_case.add(sc.nextLine());
}
Map<String, Integer> sum = new Ha... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 391 |
#include <stdio.h>
int main() {
int i;
int n;
char tmp[64];
int ans[4] = {0};
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s", tmp);
if (tmp[0] == "A") {
ans[0]++;
}
if (tmp[0] == "W") {
ans[1]++;
}
if (tmp[0] == "T") {
ans[2]++;
}
if (tmp[0] == "R") ... | #include <stdio.h>
int main() {
int i;
int n;
char tmp[64];
int ans[4] = {0};
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s", tmp);
if (tmp[0] == 'A') {
ans[0]++;
}
if (tmp[0] == 'W') {
ans[1]++;
}
if (tmp[0] == 'T') {
ans[2]++;
}
if (tmp[0] == 'R') ... | [["-", 0, 57, 15, 23, 0, 16, 12, 5, 0, 62], ["+", 0, 57, 15, 23, 0, 16, 12, 103, 0, 104]] | 0 | 176 |
#include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ordered_set \
tree<int, null_type, less<int>, rb_tree_tag, \
... | #include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ordered_set \
tree<int, null_type, less<int>, rb_tree_tag, \
... | [["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 183 |
#include <stdio.h>
#include <string.h>
int main(void) {
char nstr[7], jd[5];
int n, i, count[4] = {0, 0, 0, 0};
fgets(nstr, sizeof(nstr), stdin);
sscanf(nstr, "%d", &n);
for (i = 0; i < n; i++) {
fgets(jd, sizeof(jd), stdin);
if (strcmp(jd, "AC") == 0) {
count[0]++;
} else if (strcmp(jd, ... | #include <stdio.h>
#include <string.h>
int main(void) {
char nstr[8], jd[5];
int n, i, count[4] = {0, 0, 0, 0};
fgets(nstr, sizeof(nstr), stdin);
sscanf(nstr, "%d", &n);
for (i = 0; i < n; i++) {
fgets(jd, sizeof(jd), stdin);
if (strcmp(jd, "AC\n") == 0) {
count[0]++;
} else if (strcmp(jd... | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 16, 31, 2, 3, 4, 0, 5, 0, 44]] | 0 | 235 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
string s;
vector<int> c(4, 0);
for (int i = 0; i < N; ++i) {
cin >> s;
if (s == "AC")
++c[0];
else if (s == "WA")
++c[1];
else if (s == "TLE")
++c[2];
else if (s == "Re")
++c[3];
}
cout... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
string s;
vector<int> c(4, 0);
for (int i = 0; i < N; ++i) {
cin >> s;
if (s == "AC")
++c[0];
else if (s == "WA")
++c[1];
else if (s == "TLE")
++c[2];
else if (s == "RE")
++c[3];
}
cout... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 167 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, ac, wa, tle, re;
ac = 0;
wa = 0;
tle = 0;
re = 0;
cin >> N;
vector<string> score(N);
for (int i = 0; i < N; i++) {
cin >> score.at(i);
if (score.at(i) == "AC")
ac++;
else if (score.at(i) == "WA")
wa++;
else i... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, ac, wa, tle, re;
ac = 0;
wa = 0;
tle = 0;
re = 0;
cin >> N;
vector<string> score(N);
for (int i = 0; i < N; i++) {
cin >> score.at(i);
if (score.at(i) == "AC")
ac++;
else if (score.at(i) == "WA")
wa++;
else i... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 171 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, c1 = 0, c2 = 0, c3 = 0, c4 = 0;
string s, t;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> s;
t = s;
if (t == "AC") {
c1++;
} else if (t == "WA") {
c2++;
} else if (t == "TLE") {
c3++;
} else {
c4... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, c1 = 0, c2 = 0, c3 = 0, c4 = 0;
string s, t;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> s;
t = s;
if (t == "AC") {
c1++;
} else if (t == "WA") {
c2++;
} else if (t == "TLE") {
c3++;
} else {
c4... | [["-", 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() {
int N;
string str[100001];
int cnt1 = 0, cnt2 = 0, cnt3 = 0, cnt4 = 0;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> str[i];
if (str[i] == "AC") {
cnt1++;
} else if (str[i] == "WA") {
cnt2++;
} else if (str[i] ==... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
string str[100001];
int cnt1 = 0, cnt2 = 0, cnt3 = 0, cnt4 = 0;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> str[i];
if (str[i] == "AC") {
cnt1++;
} else if (str[i] == "WA") {
cnt2++;
} else if (str[i] ==... | [["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 1 | 175 |
#include <stdio.h>
#include <string.h>
int main() {
int t;
char sent[10];
int num[4] = {0};
scanf("%d", &t);
while (t--) {
scanf("%s", sent);
if (strcmp(sent, "AC") == 0)
num[0]++;
else if (strcmp(sent, "WA") == 0)
num[1]++;
else if (strcmp(sent, "TLE") == 0)
num[2]++;
e... | #include <stdio.h>
#include <string.h>
int main() {
int t;
char sent[10];
int num[4] = {0};
scanf("%d", &t);
while (t--) {
scanf("%s", sent);
if (strcmp(sent, "AC") == 0)
num[0]++;
else if (strcmp(sent, "WA") == 0)
num[1]++;
else if (strcmp(sent, "TLE") == 0)
num[2]++;
e... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 189 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int N = 2e5 + 10, mod = 1e9 + 7;
void solve() {
int n;
cin >> n;
map<string, int> mp;
while (n--) {
string s;
cin >> s;
++mp[s];
}
cout << "AC x" << mp["AC"] << endl;
cout << "WA x" << mp[... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int N = 2e5 + 10, mod = 1e9 + 7;
void solve() {
int n;
cin >> n;
map<string, int> mp;
while (n--) {
string s;
cin >> s;
++mp[s];
}
cout << "AC x " << mp["AC"] << endl;
cout << "WA x " << m... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 179 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int N;
int count[4];
cin >> N;
string judge;
for (int i = 0; i < N; i++) {
string t;
cin >> t;
judge += t[0];
}
for (int i = 0; i < 4; i++) {
count[i] = 0;
}
for (int i = 0; i < N; i++) {
if (judge[i] == 'A')
c... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int N;
int count[4];
cin >> N;
string judge;
for (int i = 0; i < N; i++) {
string t;
cin >> t;
judge += t[0];
}
for (int i = 0; i < 4; i++) {
count[i] = 0;
}
for (int i = 0; i < N; i++) {
if (judge[i] == 'A')
c... | [["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 223 |
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main() {
int n;
cin >> n;
map<string, int> m;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
m[s]++;
}
cout << "AC x " << m["AC"] << "\n";
cout << "AC x " << m["WA"] << "\n";
cout << "AC x " << m["TLE"] << "\n";
co... | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main() {
int n;
cin >> n;
map<string, int> m;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
m[s]++;
}
cout << "AC x " << m["AC"] << "\n";
cout << "WA x " << m["WA"] << "\n";
cout << "TLE x " << m["TLE"] << "\n";
c... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 129 |
#include <bits/stdc++.h>
using namespace std;
int n, arr[26];
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cin >> n;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
arr[s[0] - 'A']++;
}
cout << "AC x " << arr['A' - 'A'] << " \n";
cout << "WA x " << arr['W' - 'A'] << " \n";
... | #include <bits/stdc++.h>
using namespace std;
int n, arr[26];
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cin >> n;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
arr[s[0] - 'A']++;
}
cout << "AC x " << arr['A' - 'A'] << " \n";
cout << "WA x " << arr['W' - 'A'] << " \n";
... | [["-", 12, 69, 341, 342, 0, 16, 31, 103, 0, 125], ["+", 12, 69, 341, 342, 0, 16, 31, 103, 0, 125]] | 1 | 162 |
import pandas as pd
n_entradas = int(input())
contador = 0
vetor=[]
while (contador<n_entradas):
situacao = str(input())
vetor.append(situacao)
contador=contador+1
print('AC x',vetor.count('AC'))
print('WA x',vetor.count('WA'))
print('TLE x',vetor.count('TLE'))
print('RE x',vetor.count('RE')) | n_entradas = int(input())
contador = 0
vetor=[]
while (contador<n_entradas):
situacao = str(input())
vetor.append(situacao)
contador=contador+1
print('AC x',vetor.count('AC'))
print('WA x',vetor.count('WA'))
print('TLE x',vetor.count('TLE'))
print('RE x',vetor.count('RE')) | [["-", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["-", 0, 656, 0, 596, 141, 704, 141, 673, 0, 22], ["-", 36, 36, 0, 656, 0, 596, 141, 704, 0, 272], ["-", 36, 36, 0, 656, 0, 596, 141, 704, 705, 22]] | 5 | 105 |
N = int(input())
result = [input() for _ in range(N)]
C_AC,C_TLE,C_WA,C_RE = [0,0,0,0]
for i in result:
if i == "AC":
C_AC += 1
elif i == "WA":
C_WA += 1
elif i == "TLE":
C_TLE += 1
elif i == "RE":
C_RE += 1
print("AC x " + str(C_AC))
print("WA x " + str(C_WA))
print("TLE x " + str(C_TLE))
p... | N = int(input())
result = [input() for _ in range(N)]
C_AC,C_TLE,C_WA,C_RE = [0,0,0,0]
for i in result:
if i == "AC":
C_AC += 1
elif i == "WA":
C_WA += 1
elif i == "TLE":
C_TLE += 1
elif i == "RE":
C_RE += 1
print("AC x " + str(C_AC))
print("WA x " + str(C_WA))
print("TLE x " + str(C_TLE))
p... | [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 128 |
#include <iostream>
using namespace std;
int main() {
int a;
cin >> a;
string s[a];
for (int i = 0; i < a; i++) {
cin >> s[i];
}
int AC = 0, WA = 0, TLE = 0, RE = 0;
for (int i = 0; i < a; i++) {
if (s[i] == "AC")
AC++;
else if (s[i] == "WA")
WA++;
else if (s[i] == "TLE")
... | #include <iostream>
using namespace std;
int main() {
int a;
cin >> a;
string s[a];
for (int i = 0; i < a; i++) {
cin >> s[i];
}
int AC = 0, WA = 0, TLE = 0, RE = 0;
for (int i = 0; i < a; i++) {
if (s[i] == "AC")
AC++;
else if (s[i] == "WA")
WA++;
else if (s[i] == "TLE")
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 180 |
#include <bits/stdc++.h>
#define F first
#define S second
#define ll long long
#define pb push_back
using namespace std;
map<string, int> mp;
int n;
string s;
int main() {
cin >> n;
for (int i = 0; i < n; i++) {
cin >> s;
mp[s]++;
}
cout << "AC x " << mp["AC"] << endl;
cout << "WA x " << mp["WA"] ... | #include <bits/stdc++.h>
#define F first
#define S second
#define ll long long
#define pb push_back
using namespace std;
map<string, int> mp;
int n;
string s;
int main() {
cin >> n;
for (int i = 0; i < n; i++) {
cin >> s;
mp[s]++;
}
cout << "AC x " << mp["AC"] << endl;
cout << "WA x " << mp["WA"] ... | [["-", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6], ["+", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6]] | 1 | 131 |
#include <bits/stdc++.h>
using namespace std;
int main() {
map<string, int> judge;
judge["AC"] = 0;
judge["WA"] = 0;
judge["TLE"] = 0;
judge["RE"] == 0;
int N;
cin >> N;
for (int i = 0; i < N; i++) {
string tmp;
cin >> tmp;
if (tmp == "AC") {
judge["AC"]++;
} else if (tmp == "... | #include <bits/stdc++.h>
using namespace std;
int main() {
map<string, int> judge;
judge["AC"] = 0;
judge["WA"] = 0;
judge["TLE"] = 0;
judge["RE"] == 0;
int N;
cin >> N;
for (int i = 0; i < N; i++) {
string tmp;
cin >> tmp;
if (tmp == "AC") {
judge["AC"]++;
} else if (tmp == "... | [["+", 0, 57, 64, 9, 0, 1, 0, 27, 17, 29]] | 1 | 220 |
from sys import stdin,stdout
import math
from collections import Counter,defaultdict
LI=lambda:list(map(int,input().split()))
MAP=lambda:map(int,input().split())
IN=lambda:int(input())
S=lambda:input()
def case():
a=b=c=d=0
for i in range(IN()):
s=S()
if s=="AC":a+=1
elif s=="TLE":b+=1
... | from sys import stdin,stdout
import math
from collections import Counter,defaultdict
LI=lambda:list(map(int,input().split()))
MAP=lambda:map(int,input().split())
IN=lambda:int(input())
S=lambda:input()
def case():
a=b=c=d=0
for i in range(IN()):
s=S()
if s=="AC":a+=1
elif s=="TLE":b+=1
... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 189 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int i;
map<string, int> cnt;
string S;
for (i = 0; i < N; i++) {
cin >> S;
cnt[S]++;
}
for (string s : {"AC", "WA", "TLE", "RE"}) {
cout << s << " × " << cnt[s] << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int i;
map<string, int> cnt;
string S;
for (i = 0; i < N; i++) {
cin >> S;
cnt[S]++;
}
for (string s : {"AC", "WA", "TLE", "RE"}) {
cout << s << " x " << cnt[s] << endl;
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 101 |
N = int(input())
a=b=c=d = 0
for i in range(N):
char = input()
if char =='AC':
a += 1
if char =='WA':
b += 1
if char =='TLE':
c += 1
if char =='RE':
c += 1
print("AC x " +str(a))
print("WA x " +str(b))
print("TLE x " +str(c))
print("RE x " +str(d)) | N = int(input())
a=b=c=d = 0
for i in range(N):
char = input()
if char =='AC':
a += 1
if char =='WA':
b += 1
if char =='TLE':
c += 1
if char =='RE':
d += 1
print("AC x " +str(a))
print("WA x " +str(b))
print("TLE x " +str(c))
print("RE x " +str(d)) | [["-", 0, 57, 64, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 31, 22]] | 5 | 114 |
#include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define MOD 1000000007
#define MAX 1000000007
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define ub upper_bound
#define lb lower_bound
#define zoom ... | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define MOD 1000000007
#define MAX 1000000007
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define ub upper_bound
#define lb lower_bound
#define zoom ... | [["-", 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 | 233 |
import java.lang.*;
import java.util.*;
import javax.sound.midi.Soundbank;
public class Main {
static boolean isThere(int[] a, int x) {
for (int i = 0; i < a.length; i++) {
if (a[i] == x)
return true;
}
return false;
}
public static void main(String[] args) {
// your code goes here
... | import java.lang.*;
import java.util.*;
import javax.sound.midi.Soundbank;
public class Main {
static boolean isThere(int[] a, int x) {
for (int i = 0; i < a.length; i++) {
if (a[i] == x)
return true;
}
return false;
}
public static void main(String[] args) {
// your code goes here
... | [["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]] | 3 | 261 |
n = int(input())
lis = [input() for _ in range(n)]
dic = {"AC":0, "WA":0, "TLE":0, "RE":0}
for x in lis:
dic[x] += 1
for y in dic.keys():
print(y, "×", dic[y]) | n = int(input())
lis = [input() for _ in range(n)]
dic = {"AC":0, "WA":0, "TLE":0, "RE":0}
for x in lis:
dic[x] += 1
for y in dic.keys():
print(y, "x", dic[y]) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 82 |
N = int(input())
S = []
for i in range(N):
S.append((input()))
ac = str(S.count('AC'))
wa = str(S.count('WA'))
tle = str(S.count('TLE'))
re = str(S.count('TLE'))
ans = 'AC x'+' '+ ac + "\n"+'WA x'+' '+ wa + "\n"+'TLE x' +' '+ tle +"\n" + 'RE x'+' '+re
print(ans) | N = int(input())
S = []
for i in range(N):
S.append((input()))
ac = str(S.count('AC'))
wa = str(S.count('WA'))
tle = str(S.count('TLE'))
re = str(S.count('RE'))
ans = 'AC x'+' '+ ac + "\n"+'WA x'+' '+ wa + "\n"+'TLE x' +' '+ tle +"\n" + 'RE x'+' '+re
print(ans) | [["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 139 |
N = int(input())
X = []
for i in range(N):
X.append(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for s in X:
print(s)
if s == 'AC':
AC += 1
elif s == 'WA':
WA += 1
elif s == 'TLE':
TLE += 1
elif s == 'RE':
RE += 1
print('AC x ' + str(AC))
print('WA x ' + str(WA))
pri... | N = int(input())
X = []
for i in range(N):
X.append(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for s in X:
if s == 'AC':
AC += 1
elif s == 'WA':
WA += 1
elif s == 'TLE':
TLE += 1
elif s == 'RE':
RE += 1
print('AC x ' + str(AC))
print('WA x ' + str(WA))
print('TLE x ' +... | [["-", 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 | 133 |
#include <bits/stdc++.h>
#include <string>
//#include <boost/multiprecision/cpp_int.hpp>
#define FAST \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define llu long long
#define fp cout << fixed << se... | #include <bits/stdc++.h>
#include <string>
//#include <boost/multiprecision/cpp_int.hpp>
#define FAST \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define llu long long
#define fp cout << fixed << se... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 271 |
#include <bits/stdc++.h>
using namespace std;
#define pfi(a) printf("%d", a);
#define pfl(a) printf("%lld", a);
#define pfin(a) printf("%d\n", a);
#define pfln(a) printf("%lld\n", a);
#define sfi(a) scanf("%d", &a);
#define sfl(a) scanf("%lld", &a);
#define pb push_back
#define F first
#define S second
#define vi vecto... | #include <bits/stdc++.h>
using namespace std;
#define pfi(a) printf("%d", a);
#define pfl(a) printf("%lld", a);
#define pfin(a) printf("%d\n", a);
#define pfln(a) printf("%lld\n", a);
#define sfi(a) scanf("%d", &a);
#define sfl(a) scanf("%lld", &a);
#define pb push_back
#define F first
#define S second
#define vi vecto... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 369 |
#include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp> // Common file
//#include <ext/pb_ds/tree_policy.hpp>
#define int long long
#define pb push_back
#define ff first
#define ss second
#define ii insert
#define ld long double
#define ppb pop_back
#define nuenxfiu ... | #include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp> // Common file
//#include <ext/pb_ds/tree_policy.hpp>
#define int long long
#define pb push_back
#define ff first
#define ss second
#define ii insert
#define ld long double
#define ppb pop_back
#define nuenxfiu ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 373 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
int n = sc.nextInt();
for (int i = 0; i < n; i++) {
String str = sc.next();
if (str.equals("AC")) {
... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
int n = sc.nextInt();
for (int i = 0; i < n; i++) {
String str = sc.next();
if (str.equals("AC")) {
... | [["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]] | 3 | 197 |
N = int(input())
count_AC = 0
count_WA = 0
count_TLE = 0
count_RE = 0
for i in range(N):
x = input()
if x == "AC":
count_AC += 1
elif x == "WA":
count_WA += 1
elif x == "TLE":
count_TLE += 1
elif x == "count_RE":
count_RE += 0
print("AC", "x", count_AC)
print("WA"... | N = int(input())
count_AC = 0
count_WA = 0
count_TLE = 0
count_RE = 0
for i in range(N):
x = input()
if x == "AC":
count_AC += 1
elif x == "WA":
count_WA += 1
elif x == "TLE":
count_TLE += 1
elif x == "RE":
count_RE += 1
print("AC", "x", count_AC)
print("WA", "x",... | [["-", 0, 57, 75, 665, 15, 666, 0, 557, 0, 6], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 6], ["-", 75, 665, 64, 196, 0, 1, 0, 677, 12, 612], ["+", 75, 665, 64, 196, 0, 1, 0, 677, 12, 612]] | 5 | 121 |
d = {"AC":0,"WA":0,"TLE":0,"RE":0}
for _ in range(int(input())):
s = input()
d[s] = d[s]+1
print("AC *",d["AC"])
print("WA *",d["WA"])
print("TLE *",d["TLE"])
print("RE *",d["RE"]) | d = {"AC":0,"WA":0,"TLE":0,"RE":0}
for _ in range(int(input())):
s = input()
d[s] = 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]] | 5 | 108 |
ac = 0
wa = 0
tle = 0
re = 0
n = gets.to_i
results = n.times.map { gets.chomp }
results.each do |e|
case e
when 'AC'
ac += 1
when 'WA'
wa += 1
when 'TLE'
tle += 1
when 'RE'
re += 1
end
end
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 = gets.to_i
results = n.times.map { gets.chomp }
results.each do |e|
case e
when 'AC'
ac += 1
when 'WA'
wa += 1
when 'TLE'
tle += 1
when 'RE'
re += 1
end
end
print "AC x #{ac}\n"
print "WA x #{wa}\n"
print "TLE x #{tle}\n"
print "RE x #{re}\n" | [["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 44]] | 4 | 96 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] c = new int[4];
String[] str = {"AC", "WA", "TLE", "RE"};
for (int i = 0; i < n; i++) {
String s = sc.next();
for (int j = 0; j < 4; j++) ... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] c = new int[4];
String[] str = {"AC", "WA", "TLE", "RE"};
for (int i = 0; i < n; i++) {
String s = sc.next();
for (int j = 0; j < 4; j++) ... | [["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]] | 3 | 178 |
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int n, ac, wa, tle, re;
ac = 0;
wa = tle = re = 0;
cin >> n;
cin.ignore(256, '\n');
for (int i = 0; i < n; i++) {
string s;
getline(cin, s);
if (s == "AC")
ac++;
if (s == "WA")
wa++;
if (s =... | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int n, ac, wa, tle, re;
ac = 0;
wa = tle = re = 0;
cin >> n;
cin.ignore(256, '\n');
for (int i = 0; i < n; i++) {
string s;
getline(cin, s);
if (s == "AC")
ac++;
if (s == "WA")
wa++;
if (s =... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 173 |
gets
s = readlines.map(&:chomp).tally
["AC", "WA", "TLE", "RE"].each do |w|
puts "#{w} × #{s[w] || 0}"
end | gets
s = readlines.map(&:chomp).tally
["AC", "WA", "TLE", "RE"].each do |w|
puts "#{w} x #{s[w] || 0}"
end | [["-", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6]] | 4 | 51 |
#include <bits/stdc++.h>
#define ll long long int
#define l(i, a, b) for (ll i = a; i < b; i++)
using namespace std;
int main() {
ll n, tle = 0, wa = 0, re = 0, ac = 0;
cin >> n;
string s[n];
l(i, 0, n) {
cin >> s[i];
if (s[i] == "TLE")
tle++;
else if (s[i] == "WA")
wa++;
else if (s[... | #include <bits/stdc++.h>
#define ll long long int
#define l(i, a, b) for (ll i = a; i < b; i++)
using namespace std;
int main() {
ll n, tle = 0, wa = 0, re = 0, ac = 0;
cin >> n;
string s[n];
l(i, 0, n) {
cin >> s[i];
if (s[i] == "TLE")
tle++;
else if (s[i] == "WA")
wa++;
else if (s[... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 179 |
#include <bits/stdc++.h>
using namespace std;
using UL = unsigned int;
using ULL = unsigned long long;
using LL = long long;
#define rep(i, n) for (UL i = 0; i < (n); i++)
int main() {
UL N;
cin >> N;
UL ans[4] = {};
string vd[4] = {"AC", "WA", "TLE", "RE"};
rep(i, N) {
string S;
cin >> S;
rep(j,... | #include <bits/stdc++.h>
using namespace std;
using UL = unsigned int;
using ULL = unsigned long long;
using LL = long long;
#define rep(i, n) for (UL i = 0; i < (n); i++)
int main() {
UL N;
cin >> N;
UL ans[4] = {};
string vd[4] = {"AC", "WA", "TLE", "RE"};
rep(i, N) {
string S;
cin >> S;
rep(j,... | [["+", 31, 16, 31, 16, 12, 69, 341, 342, 0, 70], ["+", 31, 16, 31, 16, 12, 69, 341, 342, 0, 22], ["+", 31, 16, 31, 16, 12, 69, 341, 342, 0, 73]] | 1 | 143 |
#include <iostream>
#include <map>
#define ll long long
using namespace std;
const int N = 2e5 + 10;
map<string, int> m;
void io() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
}
int main(int argc, char const *argv[]) {
io();
int n;
cin >> n;
string temp;
for (int i = 0; i < n; i++... | #include <iostream>
#include <map>
#define ll long long
using namespace std;
const int N = 2e5 + 10;
map<string, int> m;
void io() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
}
int main(int argc, char const *argv[]) {
io();
int n;
cin >> n;
string temp;
for (int i = 0; i < n; i++... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 172 |
#include <bits/stdc++.h>
#define rep(i, n) for (long long i = 0; i < (n); i++)
using namespace std;
int main() {
long N;
cin >> N;
long long AC = 0, WA = 0, TLE = 0, RE = 0;
rep(i, N) {
string a;
cin >> a;
if (a == "AC")
AC++;
if (a == "WA")
WA++;
if (a == "TLE")
TLE++;
... | #include <bits/stdc++.h>
#define rep(i, n) for (long long i = 0; i < (n); i++)
using namespace std;
int main() {
long N;
cin >> N;
long long AC = 0, WA = 0, TLE = 0, RE = 0;
rep(i, N) {
string a;
cin >> a;
if (a == "AC")
AC++;
if (a == "WA")
WA++;
if (a == "TLE")
TLE++;
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 144 |
N = int(input())
array = []
for _ in range(N):
array.append(int(input()))
AC = 0
WA = 0
TLE = 0
RE = 0
for test in array:
if 'AC' == test:
AC += 1
elif 'WA' == test:
WA += 1
elif 'TLE' == test:
TLE += 1
elif 'RE' == test:
RE += 1
print(f'AC x {AC}')
print(f'WA x {WA}')
print(f'TLE x {TLE}')
pr... | N = int(input())
array = []
for _ in range(N):
array.append(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for test in array:
if 'AC' == test:
AC += 1
elif 'WA' == test:
WA += 1
elif 'TLE' == test:
TLE += 1
elif 'RE' == test:
RE += 1
print(f'AC x {AC}')
print(f'WA x {WA}')
print(f'TLE x {TLE}')
print(f... | [["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 124 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] counter = new int[4];
int N = sc.nextInt();
for (int i = 0; i < N; i++) {
String s = sc.next();
if (s.equals("AC")) {
counter[0] = ++counter[0];
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] counter = new int[4];
int N = sc.nextInt();
for (int i = 0; i < N; i++) {
String s = sc.next();
if (s.equals("AC")) {
counter[0] = ++counter[0];
... | [["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]] | 3 | 243 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long t;
cin >> t;
long long ac = 0, tle = 0, re = 0, wa = 0;
while (t--) {
string s;
cin >> s;
if (s == "AC") {
ac++;
}
if (s == "TLE") {
tle++;
}
if (s == "re") {
re++;
}
if (s == "WA") {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long t;
cin >> t;
long long ac = 0, tle = 0, re = 0, wa = 0;
while (t--) {
string s;
cin >> s;
if (s == "AC") {
ac++;
}
if (s == "TLE") {
tle++;
}
if (s == "RE") {
re++;
}
if (s == "WA") {
... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 144 |
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int ac = 0, wa = 0, tle = 0, re = 0;
while (n-- != 0) {
string s;
cin >> s;
if (s[0] == 'A') {
ac++;
} else if (s[0] == 'W') {
wa++;
} else if (s[0] == 'T') {
tle++;
} else {
re++;
}
... | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int ac = 0, wa = 0, tle = 0, re = 0;
while (n-- != 0) {
string s;
cin >> s;
if (s[0] == 'A') {
ac++;
} else if (s[0] == 'W') {
wa++;
} else if (s[0] == 'T') {
tle++;
} else {
re++;
}
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 172 |
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
int count_ac = 0;
int count_wa = 0;
int count_tle = 0;
int count_re = 0;
int i;
string ans;
cin >> n;
for (i = 0; i < n; i++) {
cin >> ans;
if (ans == "AC") {
count_ac++;
} else if (ans == "WA") {
... | #include <iostream>
#include <string>
using namespace std;
int main() {
int n;
int count_ac = 0;
int count_wa = 0;
int count_tle = 0;
int count_re = 0;
int i;
string ans;
cin >> n;
for (i = 0; i < n; i++) {
cin >> ans;
if (ans == "AC") {
count_ac++;
} else if (ans == "WA") {
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 153 |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
String x = "";
// ac
// wa
// tle
// re
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
... | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
String x = "";
// ac
// wa
// tle
// re
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
... | [["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]] | 3 | 224 |
#include <stdio.h>
int main() {
int x;
scanf("%d", &x);
int a[4] = {0};
char s[4];
for (int i = 0; i < x; i++) {
gets(s);
if (s[0] == 'A')
a[0]++;
else if (s[0] == 'W')
a[1]++;
else if (s[0] == 'T')
a[2]++;
else if (s[0] == 'R')
a[3]++;
}
printf("AC x %d\n", a[... | #include <stdio.h>
int main() {
int x;
scanf("%d", &x);
int a[4] = {0};
char s[4];
for (int i = 0; i < x; i++) {
scanf("%s", s);
if (s[0] == 'A')
a[0]++;
else if (s[0] == 'W')
a[1]++;
else if (s[0] == 'T')
a[2]++;
else if (s[0] == 'R')
a[3]++;
}
printf("AC x %d... | [["-", 0, 7, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21]] | 0 | 181 |
#! python3
# coding:utf-8
n = int(input())
s = [input() for _ in range(n)]
print(s)
c0=0
c1=0
c2=0
c3=0
for i in s:
if i == "AC":
c0+=1
elif i == "WA":
c1+=1
elif i == "TLE":
c2+=1
else:
c3+=1
print("AC x",c0)
print("WA x",c1)
print("TLE x",c2)
print("RE x",c3)
| #! python3
# coding:utf-8
n = int(input())
s = [input() for _ in range(n)]
# print(s)
c0=0
c1=0
c2=0
c3=0
for i in s:
if i == "AC":
c0+=1
elif i == "WA":
c1+=1
elif i == "TLE":
c2+=1
else:
c3+=1
print("AC x",c0)
print("WA x",c1)
print("TLE x",c2)
print("RE x",c3)
| [["-", 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 | 112 |
N = gets.to_i
a = 0
w = 0
t = 0
r = 0
N.times do
s=gets.chomp
case s
when "AC"
a += 1
when "WA"
w += 1
when "TLE"
t += 1
when "Re"
r += 1
end
end
puts"AC x #{a}"
puts"WA x #{w}"
puts"TLE x #{t}"
puts"RE x #{r}" | N = gets.to_i
a = 0
w = 0
t = 0
r = 0
N.times do
str=gets.chomp
case str
when "AC"
a += 1
when "WA"
w += 1
when "TLE"
t += 1
when "RE"
r += 1
end
end
puts"AC x #{a}"
puts"WA x #{w}"
puts"TLE x #{t}"
puts"RE x #{r}" | [["-", 0, 652, 196, 737, 8, 736, 0, 662, 31, 22], ["+", 0, 652, 196, 737, 8, 736, 0, 662, 31, 22], ["-", 0, 652, 196, 737, 8, 736, 0, 173, 51, 22], ["+", 0, 652, 196, 737, 8, 736, 0, 173, 51, 22], ["-", 0, 173, 0, 763, 374, 374, 0, 557, 0, 6], ["+", 0, 173, 0, 763, 374, 374, 0, 557, 0, 6]] | 4 | 86 |
#include <bits/stdc++.h>
#include <string>
using namespace std;
int ac = 0, wa = 0, tle = 0, re = 0;
void sol() {
string n;
cin >> n;
if ((n == "AC")) {
ac++;
}
if (n == "WA") {
wa++;
}
if (n == "TLE") {
tle++;
}
if (n == " RE") {
re++;
}
}
int main() {
int t;
cin >> t;
while... | #include <bits/stdc++.h>
#include <string>
using namespace std;
int ac = 0, wa = 0, tle = 0, re = 0;
void sol() {
string n;
cin >> n;
if ((n == "AC")) {
ac++;
}
if (n == "WA") {
wa++;
}
if (n == "TLE") {
tle++;
}
if (n == "RE") {
re++;
}
}
int main() {
int t;
cin >> t;
while ... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 172 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<long long> vl;
#define all(x) x.begin(), x.end()
#define pb push_back
#define forn(i, n) for (int i = 0; i < (int)(n); ++i)
#define ford(i, n) for (int i = 1; i <= (int)(n); ++i)
#define ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<long long> vl;
#define all(x) x.begin(), x.end()
#define pb push_back
#define forn(i, n) for (int i = 0; i < (int)(n); ++i)
#define ford(i, n) for (int i = 1; i <= (int)(n); ++i)
#define ... | [["-", 0, 16, 31, 16, 12, 16, 31, 5, 0, 6], ["+", 0, 16, 31, 16, 12, 16, 31, 5, 0, 6]] | 1 | 227 |
def judge_status_summary():
# 入力
N = int(input())
S = [input() for _ in range(N)]
# 判別処理
# リスト初期化
result_list = ['AC', 'WA', 'TLE', 'RE']
count_list = [0, 0, 0, 0]
# 集計
for i in range(N):
one_count_up_inxex = result_list.index(S[i])
count_list[one_count_up_inxex] += ... | def judge_status_summary():
# 入力
N = int(input())
S = [input() for _ in range(N)]
# 判別処理
# リスト初期化
result_list = ['AC', 'WA', 'TLE', 'RE']
count_list = [0, 0, 0, 0]
# 集計
for i in range(N):
one_count_up_inxex = result_list.index(S[i])
count_list[one_count_up_inxex] += ... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 114 |
//*****Jai Mata di*****//
#include <bits/stdc++.h>
using namespace std;
#define Nitroboost \
ios_base::sync_with_stdio(0); \
cin.tie(NULL); \
co... | //*****Jai Mata di*****//
#include <bits/stdc++.h>
using namespace std;
#define Nitroboost \
ios_base::sync_with_stdio(0); \
cin.tie(NULL); \
co... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 208 |
n = int(input())
s = [input() for _ in range(n)]
l = ["AC","WA","TLE","RE"]
for i in range(4): print(l[i],"X",s.count(l[i])) | n = int(input())
s = [input() for _ in range(n)]
l = ["AC","WA","TLE","RE"]
for i in range(4): print(l[i],"x",s.count(l[i]))
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 70 |
n = int(input())
ac = 0
wa = 0
tle = 0
re = 0
for _ in range(n):
s = input()
if s == 'AC':
ac += 1
elif s == 'WA':
wa += 1
elif s == 'TLE':
tle += 1
else:
re += re
print('AC x {}'.format(ac))
print('WA x {}'.format(wa))
print('TLE x {}'.format(tle))
print('RE x {}'.format(re)) | n = int(input())
ac = 0
wa = 0
tle = 0
re = 0
for _ 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 {}'.format(ac))
print('WA x {}'.format(wa))
print('TLE x {}'.format(tle))
print('RE x {}'.format(re)) | [["-", 75, 76, 8, 196, 0, 1, 0, 677, 12, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 112 |
#include <bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision;
#define ll long long int
#define ar array
#define ld long double
#define bigint int64_t
#define vll vector<ll>
#define pll ar<ll, 2>
#define vpll vector<pll>
#define pb push_back
#define MOD 1000000007
#defi... | #include <bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision;
#define ll long long int
#define ar array
#define ld long double
#define bigint int64_t
#define vll vector<ll>
#define pll ar<ll, 2>
#define vpll vector<pll>
#define pb push_back
#define MOD 1000000007
#defi... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 2,102 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i <= n; i++)
#define REP(i, n) for (int i = 0; i <= n; i++)
#define ll long long
using namespace std;
int keta(int n) {
int res;
for (int i = 0; i < 100; i++) {
n = n / 10;
if (n == 0) {
res = i + 1;
break;
}
}
return res;
}
i... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i <= n; i++)
#define REP(i, n) for (int i = 0; i <= n; i++)
#define ll long long
using namespace std;
int keta(int n) {
int res;
for (int i = 0; i < 100; i++) {
n = n / 10;
if (n == 0) {
res = i + 1;
break;
}
}
return res;
}
i... | [["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]] | 1 | 207 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
string a[N + 1];
for (int i = 1; i <= N; i++) {
cin >> a[i];
}
int h = 0, k = 0, g = 0, b = 0;
for (int i = 1; i <= N; i++) {
if (a[i] == "AC")
h++;
if (a[i] == "WA")
k++;
if (a[i] == "TLE")
g++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
string a[N + 1];
for (int i = 1; i <= N; i++) {
cin >> a[i];
}
int h = 0, k = 0, g = 0, b = 0;
for (int i = 1; i <= N; i++) {
if (a[i] == "AC")
h++;
if (a[i] == "WA")
k++;
if (a[i] == "TLE")
g++;
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 179 |
#include <stdio.h>
#include <string.h>
int main() {
int i, n, ac = 0, wa = 0, tle = 0, re = 0;
char s[5];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s", s);
if (strcmp(s, "AC") == 0)
ac++;
if (strcmp(s, "WA") == 0)
wa++;
if (strcmp(s, "TLE") == 0)
tle++;
if (strcmp(... | #include <stdio.h>
#include <string.h>
int main() {
int i, n, ac = 0, wa = 0, tle = 0, re = 0;
char s[5];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s", s);
if (strcmp(s, "AC") == 0)
ac++;
if (strcmp(s, "WA") == 0)
wa++;
if (strcmp(s, "TLE") == 0)
tle++;
if (strcmp(... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 178 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int n;
cin >> n;
map<string, int> cnt;
rep(i, n) {
string s;
cin >> s;
cnt[s]++;
}
for (string s : {"AC", "WA", "TLE", "RE"}) {
cout <<... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int n;
cin >> n;
map<string, int> cnt;
rep(i, n) {
string s;
cin >> s;
cnt[s]++;
}
for (string s : {"AC", "WA", "TLE", "RE"}) {
cout <<... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 112 |
#include <stdio.h>
#include <string.h>
int main(void) {
int size;
char n[4];
int A = 0;
int B = 0;
int C = 0;
int D = 0;
scanf("%d", &size);
for (int i = 0; i < size; i++) {
scanf("%s", n);
if (strcmp("AC", n) == 0) {
A++;
} else if (strcmp("WA", n) == 0) {
B++;
} else if... | #include <stdio.h>
#include <string.h>
int main(void) {
int size;
char n[4];
int A = 0;
int B = 0;
int C = 0;
int D = 0;
scanf("%d", &size);
for (int i = 0; i < size; i++) {
scanf("%s", n);
if (strcmp("AC", n) == 0) {
A++;
} else if (strcmp("WA", n) == 0) {
B++;
} else if... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 193 |
n = int(input())
s = [str(input()) for _ in range(n)]
dic = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0}
for i in s:
if i == 'AC':
dic['AC'] += 1
elif i == 'WA':
dic['WA'] += 1
elif i == 'TLE':
dic['TLE'] += 1
else:
dic['RE'] += 1
for i in dic:
# print(i)
print("{0} ×... | n = int(input())
s = [str(input()) for _ in range(n)]
dic = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0}
for i in s:
if i == 'AC':
dic['AC'] += 1
elif i == 'WA':
dic['WA'] += 1
elif i == 'TLE':
dic['TLE'] += 1
else:
dic['RE'] += 1
for i in dic:
# print(i)
print("{0} x... | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 134 |
#include <bits/stdc++.h>
using namespace std;
#define fio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define lli l... | #include <bits/stdc++.h>
using namespace std;
#define fio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define lli l... | [["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]] | 1 | 202 |
import itertools
import math
import fractions
import functools
import copy
from collections import deque
from functools import reduce
from decimal import Decimal
def main():
n = int(input())
s = []
c = [0, 0, 0, 0]
for _ in range(n):
s.append(input())
for result in s:
if result == ... | import itertools
import math
import fractions
import functools
import copy
from collections import deque
from functools import reduce
from decimal import Decimal
def main():
n = int(input())
s = []
c = [0, 0, 0, 0]
for _ in range(n):
s.append(input())
for result in s:
if result == ... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612]] | 5 | 205 |
n=int(input("Test cases"))
d={"AC":0,"WA":0,"TLE":0,"RE":0}
for i in range(n):
x=input()
d[x]=d[x]+1
for k,v in d.items():
print(k,"x",v) | n=int(input())
d={"AC":0,"WA":0,"TLE":0,"RE":0}
for i in range(n):
x=input()
d[x]=d[x]+1
for k,v in d.items():
print(k,"x",v) | [["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 83 |
#include <algorithm>
#include <complex>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
#define rep(i, a) for (int i = 0; i < (a); i++)
using namespace std;
void doProblem173B() {
int N;
cin >> N;
string a[100010]... | #include <algorithm>
#include <complex>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
#define rep(i, a) for (int i = 0; i < (a); i++)
using namespace std;
void doProblem173B() {
int N;
cin >> N;
string a[100010... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 232 |
n = int(intput())
a = []
for i in range(n):
a.append(input())
print('AC x ' + str(a.count('AC')))
print('WA x ' + str(a.count('WA')))
print('TLE x ' + str(a.count('TLE')))
print('RE x ' + str(a.count('RE'))) | n = int(input())
a = []
for i in range(n):
a.append(input())
print('AC x ' + str(a.count('AC')))
print('WA x ' + str(a.count('WA')))
print('TLE x ' + str(a.count('TLE')))
print('RE x ' + str(a.count('RE'))) | [["-", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22]] | 5 | 100 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.