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
n = int(input()) k = [input() for i in range(n)] ac = 0 wa = 0 tle = 0 re = 0 for j in range(n): if k[j] == 'AC': ac += 1 elif k[j] == 'WA': wa += 1 elif k[j] == 'TLE': tle += 1 elif k[j] == 'RE': re += 1 print("AC *",ac) print("WA *",wa) print("TLE *",tle) print("RE *",re)
n = int(input()) k = [input() for i in range(n)] ac = 0 wa = 0 tle = 0 re = 0 for j in range(n): if k[j] == 'AC': ac += 1 elif k[j] == 'WA': wa += 1 elif k[j] == 'TLE': tle += 1 elif k[j] == 'RE': re += 1 print("AC x",ac) print("WA x",wa) print("TLE x",tle) print("RE x",re)
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
126
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; string str; unordered_map<string, int> result{ {"AC", 0}, {"WA", 0}, {"TLE", 0}, {"LE", 0}, }; for (int i = 0; i < n; i++) { cin >> str; result.at(str)++; } cout << "AC x " << result.at("AC") << ...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; string str; unordered_map<string, int> result{ {"AC", 0}, {"WA", 0}, {"TLE", 0}, {"RE", 0}, }; for (int i = 0; i < n; i++) { cin >> str; result.at(str)++; } cout << "AC x " << result.at("AC") << ...
[["-", 49, 50, 51, 83, 0, 83, 0, 5, 0, 6], ["+", 49, 50, 51, 83, 0, 83, 0, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 31, 16, 12, 2, 3, 4, 0, 5, 0, 6], ["+", 31, 16, 12, 2, 3, 4, 0, 5, 0, 6]]
1
160
#include <bits/stdc++.h> using namespace std; int main() { long long int n, a = 0, b = 0, c = 0, d = 0, i; cin >> n; string s[100000]; for (i = 0; i < n; i++) cin >> s[i]; for (i = 0; i < n; i++) { if (s[i] == "AC") a++; else if (s[i] == "WA") b++; else if (s[i] == "TLE") c++...
#include <bits/stdc++.h> using namespace std; int main() { long long int n, a = 0, b = 0, c = 0, d = 0, i; cin >> n; string s[100000]; for (i = 0; i < n; i++) cin >> s[i]; for (i = 0; i < n; i++) { if (s[i] == "AC") a++; else if (s[i] == "WA") b++; else if (s[i] == "TLE") c++...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
182
#include <iostream> using namespace std; int main() { int t; cin >> t; string str; int c1 = 0, c2 = 0, c3 = 0, c4 = 0; while (t--) { cin >> str; if (str == "AC") { c1++; } if (str == "WA") { c2++; } if (str == "TLE") { c3++; } if (str == "RE") { c4++; ...
#include <iostream> using namespace std; int main() { int t; cin >> t; string str; int c1 = 0, c2 = 0, c3 = 0, c4 = 0; while (t--) { cin >> str; if (str == "AC") { c1++; } if (str == "WA") { c2++; } if (str == "TLE") { c3++; } if (str == "RE") { c4++; ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
142
N = int(input()) C = [ 0 for i in range(4) ] s2num = {"AC":0, "WA":1, "TLE":2, "RE":3} num2s = {0:"AC", 1:"WA", 2:"TLE", 3:"RE"} # read for i in range(N): num = s2num[ input() ] C[num] += 1 #print(num) # print for i in range(4): print("{} × {}".format( num2s[i], C[i] ))
N = int(input()) C = [ 0 for i in range(4) ] s2num = {"AC":0, "WA":1, "TLE":2, "RE":3} num2s = {0:"AC", 1:"WA", 2:"TLE", 3:"RE"} # read for i in range(N): num = s2num[ input() ] C[num] += 1 #print(num) # print for i in range(4): print("{} x {}".format( num2s[i], C[i] ))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
126
#include <stdio.h> void ac(char *str, int *a) { if (str[0] == 'A' && str[1] == 'C') { *a = *a + 1; } } void wa(char *str, int *w) { if (str[0] == 'W' && str[1] == 'A') { *w = *w + 1; } } void tle(char *str, int *t) { if (str[0] == 'T' && str[1] == 'L' && str[2] == 'E') { *t = *t + 1; } } voi...
#include <stdio.h> void ac(char *str, int *a) { if (str[0] == 'A' && str[1] == 'C') { *a = *a + 1; } } void wa(char *str, int *w) { if (str[0] == 'W' && str[1] == 'A') { *w = *w + 1; } } void tle(char *str, int *t) { if (str[0] == 'T' && str[1] == 'L' && str[2] == 'E') { *t = *t + 1; } } void...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
325
import sys sys.setrecursionlimit(10**6) def main(input, print): n = int(input()) ac = 0 wa = 0 tle = 0 re = 0 for i in range(n): s = input() if s == 'AC': ac += 1 if s == 'WA': wa += 1 if s == 'TLE': tle += 1 if s == '...
import sys sys.setrecursionlimit(10**6) def main(input, print): n = int(input()) ac = 0 wa = 0 tle = 0 re = 0 for i in range(n): s = input().strip() if s == 'AC': ac += 1 if s == 'WA': wa += 1 if s == 'TLE': tle += 1 i...
[["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
152
#include <bits/stdc++.h> using namespace std; int main() { int N; int C0, C1, C2, C3; C0 = C1 = C2 = C3 = 0; cin >> N; vector<string> S(N); for (int i = 0; i < N; i++) { cin >> S.at(i); } for (int j = 0; j < N; j++) { if (S.at(j) == "AC") { C0 = C0 + 1; } else if (S.at(j) == "WA")...
#include <bits/stdc++.h> using namespace std; int main() { int N; int C0, C1, C2, C3; C0 = C1 = C2 = C3 = 0; cin >> N; vector<string> S(N); for (int i = 0; i < N; i++) { cin >> S.at(i); } for (int j = 0; j < N; j++) { if (S.at(j) == "AC") { C0 = C0 + 1; } else if (S.at(j) == "WA")...
[["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]]
1
263
// Created by sahim on 7/3/2020. #include "bits/stdc++.h" using namespace std; #define ll unsigned long long #define IOS \ ios_base::sync_with_stdio(false); \ cin.tie(0); ...
// Created by sahim on 7/3/2020. #include "bits/stdc++.h" using namespace std; #define ll unsigned long long #define IOS \ 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
252
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; int a = 0, w = 0, t = 0, r = 0; for (int i = 0; i < x; i++) { string n; cin >> n; if (n == "AC") a++; else if (n == "WA") w++; else if (n == "TLE") t++; else if (n == "RE") r++; } co...
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; int a = 0, w = 0, t = 0, r = 0; for (int i = 0; i < x; i++) { string n; cin >> n; if (n == "AC") a++; else if (n == "WA") w++; else if (n == "TLE") t++; else if (n == "RE") r++; } co...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
146
#include <iostream> using namespace std; int main() { int N = 0; int AC = 0; int WA = 0; int TLE = 0; int RE = 0; cin >> N; string S[N]; for (int i = 0; i < N; i++) { cin >> S[i]; } for (int i = 0; i < N; i++) { if (S[i].compare("AC") == 0) { AC++; } else if (S[i].compare("WA"...
#include <iostream> using namespace std; int main() { int N = 0; int AC = 0; int WA = 0; int TLE = 0; int RE = 0; cin >> N; string S[N]; for (int i = 0; i < N; i++) { cin >> S[i]; } for (int i = 0; i < N; i++) { if (S[i].compare("AC") == 0) { AC++; } else if (S[i].compare("WA"...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
220
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { List<String> stlst = new ArrayList<>(); stlst.add("AC"); stlst.add("WA"); stlst.add("TLE"); stlst.add("RE"); ...
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { List<String> stlst = new ArrayList<>(); stlst.add("AC"); stlst.add("WA"); stlst.add("TLE"); stlst.add("RE"); ...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
229
n=int(input()) a = [input() for i in range(n)] A=str(a.count("AC")) B=str(a.count("WA")) C=str(a.count("TLE")) D=str(a.count("RE")) print("AC x"+ A) print("WA x"+ B) print("TLE x"+ C) print("RE x"+ D)
n=int(input()) a = [input() for i in range(n)] A=str(a.count("AC")) B=str(a.count("WA")) C=str(a.count("TLE")) D=str(a.count("RE")) print("AC x "+ A) print("WA x "+ B) print("TLE x "+ C) print("RE x "+ D)
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
106
#coding: utf-8 i = 0 AC = 0 WA = 0 TLE = 0 RE = 0 num = int(input()) print(num) while i <num: line = input() #print(line) if line == "AC": AC += 1 if line == "WA": WA += 1 if line == "TLE": TLE += 1 if line == "RE": RE += 1 i += 1 print("AC x " + str(AC)) print("WA x " + str(WA)) print("TL...
#coding: utf-8 i = 0 AC = 0 WA = 0 TLE = 0 RE = 0 num = int(input()) #print(num) while i <num: line = input() #print(line) if line == "AC": AC += 1 if line == "WA": WA += 1 if line == "TLE": TLE += 1 if line == "RE": RE += 1 i += 1 print("AC x " + str(AC)) print("WA x " + str(WA)) print("T...
[["-", 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
126
#include <bits/stdc++.h> using namespace std; #define ll long long #define MOD 1000000007 #define pb push_back #define mp make_pair #define preeti \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define MOD 1000000007 #define pb push_back #define mp make_pair #define preeti \ 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
424
package main import ( "fmt" ) func main() { var n, ac, wa, tle, re, i int32 _, _ = fmt.Scan(&n) s := make([]string, n) for i=0; i<n; i++ { _, _ = fmt.Scan(&s[i]) } for i=0; i<n; i++{ if s[i]=="AC"{ ac += 1 }else if s[i]=="WA"{ wa += 1 }else if s[i]=="TLE"{ tle += 1 }else if s[i]=="RE" { ...
package main import ( "fmt" ) func main() { var n, ac, wa, tle, re, i int32 _, _ = fmt.Scan(&n) s := make([]string, n) for i=0; i<n; i++ { _, _ = fmt.Scan(&s[i]) } for i=0; i<n; i++{ if s[i]=="AC"{ ac += 1 }else if s[i]=="WA"{ wa += 1 }else if s[i]=="TLE"{ tle += 1 }else if s[i]=="RE" { r...
[["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 429], ["-", 0, 1, 0, 2, 3, 4, 0, 429, 0, 44], ["+", 8, 196, 0, 1, 0, 2, 3, 4, 0, 429], ["+", 0, 1, 0, 2, 3, 4, 0, 429, 0, 44], ["+", 36, 36, 36, 36, 36, 36, 0, 434, 0, 165]]
7
209
n = int(input()) verdict = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0} for _ in range(n): S = input() verdict[S.upper()] += 1 for i, j in verdict: print(f'{i} x {j}')
n = int(input()) verdict = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0} for _ in range(n): S = input() verdict[S.upper()] += 1 for i, j in verdict.items(): print(f'{i} x {j}')
[["+", 0, 656, 0, 7, 12, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 7, 12, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 25]]
5
77
N = int(input()) l = [] for i in range(N): text = input() l.append(text) print("AC" + " x " + str(l.count("AC"))) print("AC" + " x " + str(l.count("WA"))) print("TLE" + " x " + str(l.count("TLE"))) print("RE" + " x " + str(l.count("RE")))
N = int(input()) l = [] for i in range(N): text = input() l.append(text) print("AC" + " x " + str(l.count("AC"))) print("WA" + " x " + str(l.count("WA"))) print("TLE" + " x " + str(l.count("TLE"))) print("RE" + " x " + str(l.count("RE")))
[["-", 3, 4, 0, 657, 31, 657, 31, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 31, 557, 0, 6]]
5
119
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int c0 = 0, c1 = 0, c2 = 0, c3 = 0; for (int i = 0; i < n; i++) { string s; cin >> s; if (s == "AC") c0++; else if (s == "WA") c1++; else if (s == "TLE") c2++; else if (s == "RE") c3++; ...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int c0 = 0, c1 = 0, c2 = 0, c3 = 0; for (int i = 0; i < n; i++) { string s; cin >> s; if (s == "AC") c0++; else if (s == "WA") c1++; else if (s == "TLE") c2++; else if (s == "RE") c3++; ...
[["-", 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> #include <iostream> #include <math.h> using namespace std; #define IOS \ ios_base::sync_with_stdio(false); \ cin.tie(0); ...
#include <bits/stdc++.h> #include <iostream> #include <math.h> using namespace std; #define IOS \ ios_base::sync_with_stdio(false); \ cin.tie(0); ...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
409
#include <bits/stdc++.h> #define ll long long int #define vec vector<ll> #define pb push_back #define vecit vector<ll>::iterator #define vecp vector<pair<ll, ll>> #define vecpit vector<pair<ll, ll>>::iterator #define mapp map<ll, ll> #define mapit map<ll, ll>::iterator #define mod 1000000007 #define db double using nam...
#include <bits/stdc++.h> #define ll long long int #define vec vector<ll> #define pb push_back #define vecit vector<ll>::iterator #define vecp vector<pair<ll, ll>> #define vecpit vector<pair<ll, ll>>::iterator #define mapp map<ll, ll> #define mapit map<ll, ll>::iterator #define mod 1000000007 #define db double using nam...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
145
#include <bits/stdc++.h> using namespace std; int main() { int n, ac = 0, re = 0, tle = 0, wa = 0; string s; cin >> n; while (n--) { cin >> s; if (s == "AC") { ac++; } else if (s == "WA") { wa++; } else if (s == "TLE") { tle++; } else { re++; } } cout << "AC" ...
#include <bits/stdc++.h> using namespace std; int main() { long long n, ac = 0, re = 0, tle = 0, wa = 0; string s; cin >> n; while (n--) { cin >> s; if (s == "AC") { ac++; } else if (s == "WA") { wa++; } else if (s == "TLE") { tle++; } else { re++; } } cout <<...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 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
156
N=int(input()) inp=[] for i in range(N): inp.append(int(input())) c0=N.count("AC") c1=N.count("WA") c2=N.count("TLE") c3=N.count("RE") print("AC x "+str(c0)) print("WA x "+str(c1)) print("TLE x "+str(c2)) print("RE x "+str(c3))
N=int(input()) inp=[] for i in range(N): inp.append((input())) c0=inp.count("AC") c1=inp.count("WA") c2=inp.count("TLE") c3=inp.count("RE") print("AC x "+str(c0)) print("WA x "+str(c1)) print("TLE x "+str(c2)) print("RE x "+str(c3))
[["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22]]
5
115
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a, b, c, d; a = b = c = d = 0; for (int i = 0; i < n; ++i) { string s; cin >> s; if (s == "AC") a++; if (s == "WA") b++; if (s == "RE") c++; if (s == "TLE") d++; } cout << "AC...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a, b, c, d; a = b = c = d = 0; for (int i = 0; i < n; ++i) { string s; cin >> s; if (s == "AC") a++; if (s == "WA") b++; if (s == "RE") c++; if (s == "TLE") d++; } cout << "AC...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
148
#include <bits/stdc++.h> using namespace std; #define max(a, b) (a < b ? b : a) #define min(a, b) ((a > b) ? b : a) #define mod 1e9 + 7 #define FOR(a, c) for (int(a) = 0; (a) < (c); (a)++) #define FORL(a, b, c) for (int(a) = (b); (a) <= (c); (a)++) #define FORR(a, b, c) for (int(a) = (b); (a) >= (c); (a)--) #define INF...
#include <bits/stdc++.h> using namespace std; #define max(a, b) (a < b ? b : a) #define min(a, b) ((a > b) ? b : a) #define mod 1e9 + 7 #define FOR(a, c) for (int(a) = 0; (a) < (c); (a)++) #define FORL(a, b, c) for (int(a) = (b); (a) <= (c); (a)++) #define FORR(a, b, c) for (int(a) = (b); (a) >= (c); (a)--) #define INF...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
285
#include <bits/stdc++.h> #include <iostream> #include <string> using namespace std; int main() { int n; cin >> n; int ac = 0, tle = 0, wa = 0, re = 0; while (n--) { string s; cin >> s; if (s[0] == 'A') ac++; if (s[0] == 'T') tle++; if (s[0] == 'R') re++; if (s[0] == 'W...
#include <bits/stdc++.h> #include <iostream> #include <string> using namespace std; int main() { int n; cin >> n; int ac = 0, tle = 0, wa = 0, re = 0; while (n--) { string s; cin >> s; if (s[0] == 'A') ac++; if (s[0] == 'T') tle++; if (s[0] == 'R') re++; if (s[0] == 'W...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
153
C0=0 C1=0 C2=0 C3=0 N=int(input()) S=list(range(N)) for i in range(N): S[i] = input() for i in range(N): if S[i]==AC: C0 += 1 elif S[i]==WA: C1 += 1 elif S[i]==TLE: C2 += 1 else: C3 += 1 print("AC","x",C0) print("WA","x",C1) print("TLE","x",C2) print("RE","x",C3)
C0=0 C1=0 C2=0 C3=0 N=int(input()) S=list(range(N)) for i in range(N): S[i] = input() for i in range(N): if S[i]=="AC": C0 += 1 elif S[i]=="WA": C1 += 1 elif S[i]=="TLE": C2 += 1 else: C3 += 1 print("AC","x",C0) print("WA","x",C1) print("TLE","x",C2) print("RE","x",C3)
[["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 654], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 655]]
5
139
n = int(input()) s = [input() for i in range(n)] nac = 0 nwa = 0 ntle = 0 nre = 0 print(s) for i in s: if i == 'AC': nac += 1 if i == 'WA': nwa += 1 if i == 'TLE': ntle += 1 if i == 'RE': nre += 1 print("AC x ", nac) print("WA x ", nwa) print("TLE x ", ntle) print("RE ...
n = int(input()) s = [input() for i in range(n)] nac = 0 nwa = 0 ntle = 0 nre = 0 for i in s: if i == 'AC': nac += 1 if i == 'WA': nwa += 1 if i == 'TLE': ntle += 1 if i == 'RE': nre += 1 print("AC x ", nac) print("WA x ", nwa) print("TLE x ", ntle) print("RE x ", nre)...
[["-", 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
115
package main import ( "fmt" "strconv" ) func main() { var N int fmt.Scan(&N) list := make([]string, N) for i := 0; i < N; i++ { fmt.Scan(&list[i]) } count := make([]int, N) for i := 0; i < N; i++ { switch list[i] { case "AC": count[0] += 1 case "WA": count[1] += 1 case "TLE": count[2] +=...
package main import ( "fmt" "strconv" ) func main() { var N int fmt.Scan(&N) list := make([]string, N) for i := 0; i < N; i++ { fmt.Scan(&list[i]) } count := make([]int, 4) for i := 0; i < N; i++ { switch list[i] { case "AC": count[0] += 1 case "WA": count[1] += 1 case "TLE": count[2] +=...
[["-", 0, 431, 12, 432, 0, 2, 3, 4, 0, 22], ["+", 0, 431, 12, 432, 0, 2, 3, 4, 0, 433], ["-", 0, 435, 8, 196, 0, 7, 8, 196, 0, 165], ["+", 0, 435, 8, 196, 0, 7, 8, 196, 0, 165], ["+", 0, 435, 8, 196, 0, 7, 8, 196, 0, 46], ["+", 36, 36, 0, 434, 0, 435, 8, 196, 0, 165], ["-", 0, 435, 8, 196, 0, 7, 8, 196, 0, 46]]
7
226
#include <bits/stdc++.h> #define arep(a, i, n) for (int i = (a); i < (n); i++) #define rep(i, n) for (int i = 0; i < (n); i++) #define cinf(x, n) \ for (int i = 0; i < (n); i++) \ cin >> x[i]; #define coutf(...
#include <bits/stdc++.h> #define arep(a, i, n) for (int i = (a); i < (n); i++) #define rep(i, n) for (int i = 0; i < (n); i++) #define cinf(x, n) \ for (int i = 0; i < (n); i++) \ cin >> x[i]; #define coutf(...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
219
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; string ans, input; int arr[4] = {0, 0, 0, 0}; while (n--) { cin >> input; if (input == "AC") arr[0] += 1; else if (input == "WA") arr[1] += 1; else if (input == "TLE") arr[2] += 1; else ar...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; string input; int arr[4] = {0, 0, 0, 0}; while (n--) { cin >> input; if (input == "AC") arr[0] += 1; else if (input == "WA") arr[1] += 1; else if (input == "TLE") arr[2] += 1; else arr[3]...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 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
156
#pragma GCC optimize("O2") #include <bits/stdc++.h> using namespace std; #define all(x) (x).begin(), (x).end() #define YES() printf("YES\n") #define NO() printf("NO\n") #define Yes() printf("Yes\n") #define No() printf("No\n") #define ll long long #define vll vector<ll> #define vi vector<int> #define pi pair<int, int> ...
#pragma GCC optimize("O2") #include <bits/stdc++.h> using namespace std; #define all(x) (x).begin(), (x).end() #define YES() printf("YES\n") #define NO() printf("NO\n") #define Yes() printf("Yes\n") #define No() printf("No\n") #define ll long long #define vll vector<ll> #define vi vector<int> #define pi pair<int, int> ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 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
254
n = int(input()) ac = 0 wa = 0 tle = 0 re = 0 for i in range(n): s = input() if s == "AC": ac += 1 if s == "WA": wa += 1 if s == "TLE": tle += 1 if s == "RE": 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 += 1 if s == "WA": wa += 1 if s == "TLE": tle += 1 if s == "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
117
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int n, s1 = 0, s2 = 0, s3 = 0, s4 = 0; string s; cin >> n; for (int i = 0; i < n; i++) { cin >> s; if (s == "AC") { s1++; } if (s == "WA") { s2++; } if (s == "TLE") { ...
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int n, s1 = 0, s2 = 0, s3 = 0, s4 = 0; string s; cin >> n; for (int i = 0; i < n; i++) { cin >> s; if (s == "AC") { s1++; } if (s == "WA") { s2++; } if (s == "TLE") { ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
175
#include <stdio.h> #include <string.h> int main() { int x, cnt = 0, cnt1 = 0, cnt2 = 0, cnt3 = 0; char str1[] = "AC", str2[] = "TLE", str3[] = "WA", str4[] = "RE"; char ch[5]; scanf("%d%*c", &x); while (x--) { gets(ch); if (strcmp(str1, ch) == 0) cnt++; else if (strcmp(str2, ch) == 0) ...
#include <stdio.h> #include <string.h> int main() { int x, cnt = 0, cnt1 = 0, cnt2 = 0, cnt3 = 0; char str1[] = "AC", str3[] = "TLE", str2[] = "WA", str4[] = "RE"; char ch[5]; scanf("%d%*c", &x); while (x--) { gets(ch); if (strcmp(str1, ch) == 0) cnt++; else if (strcmp(str2, ch) == 0) ...
[["-", 8, 9, 0, 43, 49, 50, 49, 80, 49, 22], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 49, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
192
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> int main() { int i; int ary[4] = {0, 0, 0, 0}; int n; char str[10]; char name[4][4] = {"AC", "WA", "TLE", "RE"}; i = scanf("%d", &n); while (n > 0) { i = scanf("%s", str); if (strcmp(str, name[0]) == 0) ary[0]++...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> int main() { int i; int ary[4] = {0, 0, 0, 0}; int n; char str[10]; char name[4][4] = {"AC", "WA", "TLE", "RE"}; i = scanf("%d", &n); while (n > 0) { i = scanf("%s", str); if (strcmp(str, name[0]) == 0) ary[0]++...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
222
n = int(input()) s = [input() for _ in range(n)] c = collections.Counter(s) print('AC x ', c['AC']) print('WA x ', c['WA']) print('TLE x ', c['TLE']) print('RE x ', c['RE'])
import collections n = int(input()) s = [input() for _ in range(n)] c = collections.Counter(s) print('AC x ', c['AC']) print('WA x ', c['WA']) print('TLE x ', c['TLE']) print('RE x ', c['RE'])
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]]
5
82
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { map<string, ll> mp; mp["AC"] = 0; mp["WA"] = 0; mp["TLE"] = 0; mp["RE"] = 0; ll n; cin >> n; while (n--) { string s; cin >> s; mp[s]++; } cout << "AC X " << mp["AC"] << endl; cout << "WA X " << mp["WA"] ...
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { map<string, ll> mp; mp["AC"] = 0; mp["WA"] = 0; mp["TLE"] = 0; mp["RE"] = 0; ll n; cin >> n; while (n--) { string s; cin >> s; mp[s]++; } cout << "AC x " << mp["AC"] << endl; cout << "WA x " << mp["WA"] ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
146
using namespace std; #include <bits/stdc++.h> #define fi first #define se second #define pb push_back #define mp make_pair #define maxn 500005 #define inf int(21e8) #define mod int(1e9 + 7) #define db double #define ll long long #define si stack<int> #define qi queue<int> #define vi vector<int> #define pi pair<int, int...
using namespace std; #include <bits/stdc++.h> #define fi first #define se second #define pb push_back #define mp make_pair #define maxn 500005 #define inf int(21e8) #define mod int(1e9 + 7) #define db double #define ll long long #define si stack<int> #define qi queue<int> #define vi vector<int> #define pi pair<int, int...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
197
<?php $num = intval(fgets(STDIN)); $AC = 0; $WA = 0; $TLE = 0; $RE = 0; for($i = 0;$i < $num;$i++){ $str = fgets(STDIN); if($str == "AC"){ $AC += 1; }else if($str == "WA"){ $WA += 1; }else if($str == "TLE"){ $TLE += 1; }else{ $RE += 1; } } echo "AC x...
<?php $num = intval(fgets(STDIN)); $AC = 0; $WA = 0; $TLE = 0; $RE = 0; for($i = 0;$i < $num;$i++){ $str = rtrim(fgets(STDIN)); if($str == "AC"){ $AC += 1; }else if($str == "WA"){ $WA += 1; }else if($str == "TLE"){ $TLE += 1; }else{ $RE += 1; } } echo...
[["+", 0, 9, 0, 1, 0, 11, 12, 613, 63, 141], ["+", 0, 1, 0, 11, 12, 613, 3, 3, 0, 24], ["+", 3, 3, 0, 28, 0, 613, 3, 3, 0, 25]]
6
162
/***** author : C0d1ngPhenomena *****/ #include <bits/stdc++.h> #define endl "\n" #define ll long long int #define TestCases \ int T; \ cin >> T; ...
/***** author : C0d1ngPhenomena *****/ #include <bits/stdc++.h> #define endl "\n" #define ll long long int #define TestCases \ int T; \ cin >> T; ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
258
N = int(input()) n = [input() for i in range(N)] count_AC = 0 count_WA = 0 count_TLE = 0 count_RE = 0 for i in n: if i == 'AC': count_AC += 1 elif i == 'WA': count_WA += 1 elif i == 'TLE': count_WA += 1 elif i == 'RE': count_WA += 1 print('AC x {0}\nWA x {1}\nTLE x {2}\nR...
N = int(input()) n = [input() for i in range(N)] count_AC = 0 count_WA = 0 count_TLE = 0 count_RE = 0 for i in n: if i == 'AC': count_AC += 1 elif i == 'WA': count_WA += 1 elif i == 'TLE': count_TLE += 1 elif i == 'RE': count_RE += 1 print('AC x {0}\nWA x {1}\nTLE x {2}\n...
[["-", 75, 665, 64, 196, 0, 1, 0, 677, 31, 22], ["+", 75, 665, 64, 196, 0, 1, 0, 677, 31, 22]]
5
102
#include <algorithm> #include <iostream> #include <map> #include <string> #include <utility> #include <vector> typedef long long ll; int main() { int n; std::cin >> n; std::map<std::string, ll> m = { {"AC", 0}, {"WA", 0}, {"TEL", 0}, {"RE", 0}, }; std::string judge[4] = {"AC", "WA", ...
#include <algorithm> #include <iostream> #include <map> #include <string> #include <utility> #include <vector> typedef long long ll; int main() { int n; std::cin >> n; std::map<std::string, ll> m = { {"AC", 0}, {"WA", 0}, {"TLE", 0}, {"RE", 0}, }; std::string judge[4] = {"AC", "WA",...
[["-", 49, 50, 51, 83, 0, 83, 0, 5, 0, 6], ["+", 49, 50, 51, 83, 0, 83, 0, 5, 0, 6], ["-", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6], ["+", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
182
N,*S = $<.read.split.tally %w(AC WA TLE RE).each {|c| puts "#{c} x #{S[c]||0}"}
gets S = $<.read.split.tally %w(AC WA TLE RE).each {|c| puts "#{c} x #{S[c]||0}"}
[["-", 36, 36, 0, 493, 0, 662, 31, 761, 0, 743], ["-", 36, 36, 0, 493, 0, 662, 31, 761, 0, 21], ["-", 0, 493, 0, 662, 31, 761, 0, 776, 0, 48], ["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 22]]
4
40
#include <bits/stdc++.h> #define LOCAL using namespace std; template <typename A, typename B> ostream &operator<<(ostream &out, const pair<A, B> &a) { out << "(" << a.first << "," << a.second << ")"; return out; } template <typename T, size_t N> ostream &operator<<(ostream &out, const array<T, N> &a) { out << "["...
#include <bits/stdc++.h> #define LOCAL using namespace std; template <typename A, typename B> ostream &operator<<(ostream &out, const pair<A, B> &a) { out << "(" << a.first << "," << a.second << ")"; return out; } template <typename T, size_t N> ostream &operator<<(ostream &out, const array<T, N> &a) { out << "["...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
694
import java.util.HashMap; import java.util.Scanner; public class Main { public void countFrequency(String[] verdict) { HashMap<String, Integer> frequency = new HashMap(); String[] key = new String[] {"AC", "WC", "TLE", "RE"}; for (String v : verdict) { frequency.put(v, frequency.getOrDefault(v, 0...
import java.util.HashMap; import java.util.Scanner; public class Main { public void countFrequency(String[] verdict) { HashMap<String, Integer> frequency = new HashMap(); String[] key = new String[] {"AC", "WA", "TLE", "RE"}; for (String v : verdict) { frequency.put(v, frequency.getOrDefault(v, 0...
[["-", 49, 200, 51, 227, 51, 518, 0, 5, 0, 491], ["+", 49, 200, 51, 227, 51, 518, 0, 5, 0, 491], ["-", 8, 196, 0, 1, 0, 11, 12, 492, 141, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 492, 141, 22]]
3
285
dic={'AC':0,'WA':0,'TLE':0,'RE':0} for _ in range(int(input())) : dic[input()]+=1 for key,val in dic.items() : print(key+" X " +str(val))
dic={'AC':0,'WA':0,'TLE':0,'RE':0} for _ in range(int(input())) : dic[input()]+=1 for key,val in dic.items() : print(key+" x " +str(val))
[["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]]
5
72
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); HashMap<String, Integer> hm = new HashMap<String, Integer>(); hm.put("AC", 0); hm.put("WA", 0); hm.put("TLE", 0); hm.put("RE", 0); while (n-- > 0) { ...
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); HashMap<String, Integer> hm = new HashMap<String, Integer>(); hm.put("AC", 0); hm.put("WA", 0); hm.put("TLE", 0); hm.put("RE", 0); while (n-- > 0) { ...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
235
#include <bits/stdc++.h> using namespace std; int N; int main() { cin >> N; int a = 0, b = 0, c = 0, d = 0; vector<string> S(100000); for (int i = 0; i < N; i++) cin >> S.at(i); for (int i = 0; i < N; i++) { if (S.at(i) == "AC") a++; else if (S.at(i) == "WA") b++; else if (S.at(i...
#include <bits/stdc++.h> using namespace std; int N; int main() { cin >> N; int a = 0, b = 0, c = 0, d = 0; vector<string> S(100000); for (int i = 0; i < N; i++) cin >> S.at(i); for (int i = 0; i < N; i++) { if (S.at(i) == "AC") a++; else if (S.at(i) == "WA") b++; else if (S.at(i...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
178
import sys stdin = sys.stdin sys.setrecursionlimit(10 ** 7) def LI(): return list(map(int, stdin.readline().split())) def LS(): return list(stdin.readline()) import collections n = int(input()) s = [input() for i in range(n)] c = collections.Counter(s) print(f'AC x {c["AC"]}') print(f'WA x {c["WA"]}') print(f'LTE x ...
import sys stdin = sys.stdin sys.setrecursionlimit(10 ** 7) def LI(): return list(map(int, stdin.readline().split())) def LS(): return list(stdin.readline()) import collections n = int(input()) s = [input() for i in range(n)] c = collections.Counter(s) print(f'AC x {c["AC"]}') print(f'WA x {c["WA"]}') print(f'TLE x ...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
140
#include <bits/stdc++.h> using namespace std; int main() { long long int n; int c = 0, d = 0, e = 0, f = 0; cin >> n; string s; while (n--) { cin >> s; if (s[0] == 'A' && s[1] == 'C') { c++; } else if (s[0] == 'W' && s[1] == 'A') { d++; } else if (s[0] == 'T' && s[1] == 'L' && s[2...
#include <bits/stdc++.h> using namespace std; int main() { long long int n; int c = 0, d = 0, e = 0, f = 0; cin >> n; string s; while (n--) { cin >> s; if (s[0] == 'A' && s[1] == 'C') { c++; } else if (s[0] == 'W' && s[1] == 'A') { d++; } else if (s[0] == 'T' && s[1] == 'L' && s[2...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
207
N = int(input()) s = [input() for i in range(N)] a = s.count("AC") b = s.count("WA") c = s.count("TLE") d = s.count("RE") print("AC * {}".format(a)) print("WA * {}".format(b)) print("TLE * {}".format(c)) print("RE * {}".format(d))
N = int(input()) s = [input() for i in range(N)] a = s.count("AC") b = s.count("WA") c = s.count("TLE") d = s.count("RE") print("AC x {}".format(a)) print("WA x {}".format(b)) print("TLE x {}".format(c)) print("RE x {}".format(d))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
106
#include <bits/stdc++.h> using namespace std; #define ll long long int #define f(i, n) for (int i = 0; i < n; i++) #define fo(i, k, n) for (int i = k; i < n; i++) #define forr(i, a, b) for (int i = a; i <= b; i++) #define rf(i, n) for (int i = n; i >= 0; i--) typedef unsigned long long ull; typedef pair<int, int> pr; ...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define f(i, n) for (int i = 0; i < n; i++) #define fo(i, k, n) for (int i = k; i < n; i++) #define forr(i, a, b) for (int i = a; i <= b; i++) #define rf(i, n) for (int i = n; i >= 0; i--) typedef unsigned long long ull; typedef pair<int, int> pr; ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
285
#include <bits/stdc++.h> using namespace std; #define hell 1000000007 #define PI acos(-1.0) #define S second #define F first #define lli long long int #define li long int #define ld long double #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() #define run(j, n) for (auto ii = j; ii != n; ...
#include <bits/stdc++.h> using namespace std; #define hell 1000000007 #define PI acos(-1.0) #define S second #define F first #define lli long long int #define li long int #define ld long double #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() #define run(j, n) for (auto ii = j; ii != n; ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
259
#include <iostream> #include <stdio.h> using namespace std; int main() { int n, ac = 0, wa = 0, tle = 0, re = 0; cin >> n; string a[n]; for (int i = 0; i < n; i++) { cin >> a[i]; if (a[i] == "AC") ac++; if (a[i] == "WA") wa++; if (a[i] == "TLE") tle++; if (a[i] == "RE") ...
#include <iostream> #include <stdio.h> using namespace std; int main() { int n, ac = 0, wa = 0, tle = 0, re = 0; cin >> n; string a[n]; for (int i = 0; i < n; i++) { cin >> a[i]; if (a[i] == "AC") ac++; if (a[i] == "WA") wa++; if (a[i] == "TLE") tle++; if (a[i] == "RE") ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
162
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { int n, index; String s; HashMap<String, Integer> hashMap = new HashMap<String...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { int n, index; String s; HashMap<String, Integer> hashMap = new HashMap<String...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
305
#include <bits/stdc++.h> using namespace std; int main() { int n, a, b, c, d; string r; cin >> n; a = b = c = d = 0; while (n--) { cin >> r; if (r == "AC") a++; else if (r == "WA") b++; else if (r == "TLE") c++; else d++; } cout << "AC x " << a << endl; cout...
#include <bits/stdc++.h> using namespace std; int main() { int n, a, b, c, d; string r; cin >> n; a = b = c = d = 0; while (n--) { cin >> r; if (r == "AC") a++; else if (r == "WA") b++; else if (r == "TLE") c++; else d++; } cout << "AC x " << a << endl; cout...
[["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
131
#include <bits/stdc++.h> #define ll long long #define dd double #define scl(n) scanf("%lld", &n) #define scd(n) scanf("%lf", &n) #define ptl(n) printf("%lld", n) #define ptd(n) printf("%lf", n) #define nline printf("\n") #define vld vector<ll> #define vbd vector<bool> #define eb emplace_back #define FOR(i, n) for (ll ...
#include <bits/stdc++.h> #define ll long long #define dd double #define scl(n) scanf("%lld", &n) #define scd(n) scanf("%lf", &n) #define ptl(n) printf("%lld", n) #define ptd(n) printf("%lf", n) #define nline printf("\n") #define vld vector<ll> #define vbd vector<bool> #define eb emplace_back #define FOR(i, n) for (ll ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
187
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ll n, t = 0, a = 0, w = 0, r = 0; cin >> n; string ar[n]; for (int i = 0; i < n; i++) { cin >> ar[i]; if (ar[i] == "AC") { a++; } else if (ar[i] == "TLE") { t++; } else if (ar[i] == "WA") { w++; ...
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ll n, t = 0, a = 0, w = 0, r = 0; cin >> n; string ar[n]; for (int i = 0; i < n; i++) { cin >> ar[i]; if (ar[i] == "AC") { a++; } else if (ar[i] == "TLE") { t++; } else if (ar[i] == "WA") { w++; ...
[["-", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125]]
1
225
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <set> #include <string> #include <vector> using namespace std; int main(void) { int N; scanf("%d", &N); vector<string> S(N); for (int i = 0; i < N; i++) { cin >> S.at(i); } int ac = 0; int wa = 0; int tle = 0; int ...
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <set> #include <string> #include <vector> using namespace std; int main(void) { int N; scanf("%d", &N); vector<string> S(N); for (int i = 0; i < N; i++) { cin >> S.at(i); } int ac = 0; int wa = 0; int tle = 0; int ...
[["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]]
1
223
n = int(input()) j_dic = {"AC":0,"WA":0,"TLE":0,"RE":0} for i in range(n): j_dic[input()]+=1 for k, v in j_dic.items(): print(k,"×",v)
n = int(input()) j_dic = {"AC":0,"WA":0,"TLE":0,"RE":0} for i in range(n): j_dic[input()]+=1 for k, v in j_dic.items(): print(k,"x",v)
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
72
#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<int, int>; int main() { long n; cin >> n; long ac = 0, wa = 0, tle = 0, re = 0; for (long i = 0; i < n; i++) { string sbuff; cin >> sbuff; if (sbuff == "AC") { ...
#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<int, int>; int main() { long n; cin >> n; long ac = 0, wa = 0, tle = 0, re = 0; for (long i = 0; i < n; i++) { string sbuff; cin >> sbuff; if (sbuff == "AC") { ...
[["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]]
1
181
import java.util.Random; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int ac = 0; int wa = 0; int tle = 0; int re = 0; String b = ""; for (int i = 0; i < a; i++) { b = sc.nextLin...
import java.util.Random; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int ac = 0; int wa = 0; int tle = 0; int re = 0; String b = ""; for (int i = 0; i <= a; i++) { b = sc.nextLi...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
3
215
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MAXN = 300 + 5; bool a[MAXN][MAXN]; int main() { int n; string s; int a[4] = {0}; cin >> n; while (n--) { cin >> s; if ("AC" == s) a[0]++; else if ("WA" == s) a[1]++; else if ("TLE" == s) a[2]++...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MAXN = 300 + 5; bool a[MAXN][MAXN]; int main() { int n; string s; int a[4] = {0}; cin >> n; while (n--) { cin >> s; if ("AC" == s) a[0]++; else if ("WA" == s) a[1]++; else if ("TLE" == s) a[2]++...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
171
n = int(input()) ac = 0 wa = 0 tel = 0 re = 0 for y in range(0,n): x = input() if x[0] == 'A': ac += 1 elif x[0] == 'W': wa += 1 elif x[0] == 'T': tel += 1 else: re += 1 print("AC x " + str(ac)) print("WA x " + str(wa)) print("TEL x " + str(tel)) print("RE x " + str(re))
n = int(input()) ac = 0 wa = 0 tel = 0 re = 0 for y in range(0,n): x = input() if x[0] == 'A': ac += 1 elif x[0] == 'W': wa += 1 elif x[0] == 'T': tel += 1 else: re += 1 print("AC x " + str(ac)) print("WA x " + str(wa)) print("TLE x " + str(tel)) 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
123
#include <bits/stdc++.h> using namespace std; #define ll long long int void solution() { ll n; cin >> n; string s; ll ac = 0, wa = 0, tle = 0, re = 0; for (ll i = 0; i < n; ++i) { cin >> s; if (s == "AC") ac++; else if (s == "WA") wa++; else if (s == "TLE") tle++; else ...
#include <bits/stdc++.h> using namespace std; #define ll long long int void solution() { ll n; cin >> n; string s; ll ac = 0, wa = 0, tle = 0, re = 0; for (ll i = 0; i < n; ++i) { cin >> s; if (s == "AC") ac++; else if (s == "WA") wa++; else if (s == "TLE") tle++; else ...
[["-", 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
175
#include <bits/stdc++.h> #include <stdint.h> #define mod 1000000007 #define ull unsigned ll #define ll long long int #define ld long double #define pb push_back #define mp make_pair #define pi 3.1415926535897932 #define nui 100 using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0...
#include <bits/stdc++.h> #include <stdint.h> #define mod 1000000007 #define ull unsigned ll #define ll long long int #define ld long double #define pb push_back #define mp make_pair #define pi 3.1415926535897932 #define nui 100 using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
219
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vec; #define PI 3.14159265359 int main() { int n; cin >> n; string mo[n]; int sum[] = {0, 0, 0, 0}; for (int i = 0; i < n; ++i) { cin >> mo[i]; } for (int i = 0; i < n; ++i) { if (mo[i] == "AC") { sum[0]...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vec; #define PI 3.14159265359 int main() { int n; cin >> n; string mo[n]; int sum[] = {0, 0, 0, 0}; for (int i = 0; i < n; ++i) { cin >> mo[i]; } for (int i = 0; i < n; ++i) { if (mo[i] == "AC") { sum[0]...
[["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
232
S=input() S=int(S) a = [input() for i in range(S)] AC=0 WA=0 TLE=0 RE=0 print(a) for a in a: if a=="AC": AC+=1 if a=="WA": WA+=1 if a=="TLE": TLE+=1 if a=="RE": RE+=1 print("AC x "+str(AC) ) print("WA x "+str(WA)) print("TLE x "+str(TLE)) print("RE x "+str(RE))
S=input() S=int(S) a = [input() for i in range(S)] AC=0 WA=0 TLE=0 RE=0 for a in a: if a=="AC": AC+=1 if a=="WA": WA+=1 if a=="TLE": TLE+=1 if a=="RE": RE+=1 print("AC x "+str(AC) ) print("WA x "+str(WA)) print("TLE x "+str(TLE)) print("RE x "+str(RE))
[["-", 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
130
/**Bismillahir Rahmanir Rahim.**/ /* Md.Fagun Molla 18ICTCSE006 BSMRSTU(SHIICT) */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; using ll = long long; using db = double; ///**************...
/**Bismillahir Rahmanir Rahim.**/ /* Md.Fagun Molla 18ICTCSE006 BSMRSTU(SHIICT) */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; using ll = long long; using db = double; ///**************...
[["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
431
#include <bits/stdc++.h> typedef long long ll; typedef long double ld; using namespace std; // Binary exponent ll Bin_pow(ll a, ll b) { ll res = 1; while (b > 0) { if (b & 1) { res = res * a; } a = a * a; b >>= 1; } return res; } // GCD ll gcd(ll a, ll b) { if (b == 0) return a; ...
#include <bits/stdc++.h> typedef long long ll; typedef long double ld; using namespace std; // Binary exponent ll Bin_pow(ll a, ll b) { ll res = 1; while (b > 0) { if (b & 1) { res = res * a; } a = a * a; b >>= 1; } return res; } // GCD ll gcd(ll a, ll b) { if (b == 0) return a; ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
256
N = int(input()) S = [] for i in range(N): s = str(input()) S.append(s) result = ['AC', 'WA', 'TLE', 'RE'] C = [S.count(r) for r in result] for (re, c) in zip(result, C): print(re + 'x' + str(c))
N = int(input()) S = [] for i in range(N): s = str(input()) S.append(s) result = ['AC', 'WA', 'TLE', 'RE'] C = [S.count(r) for r in result] for (re, c) in zip(result, C): print(re + ' x ' + str(c))
[["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]]
5
94
#include <bits/stdc++.h> using namespace std; int main() { int T; int ac, re, wa, tle; cin >> T; ac = re = tle = wa = 0; string status; while (cin >> status) { if (status == "AC") ac++; if (status == "TLE") tle++; if (status == "WA") wa++; if (status == "RE") re++; ...
#include <bits/stdc++.h> using namespace std; int main() { int T; int ac, re, wa, tle; cin >> T; ac = re = tle = wa = 0; string status; while (cin >> status) { if (status == "AC") ac++; if (status == "TLE") tle++; if (status == "WA") wa++; if (status == "RE") re++; ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
161
// package atcoder; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); String S[] = new Strin...
// package atcoder; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); String S[] = new Strin...
[["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]]
3
280
# -*- coding: utf-8 -*- N = int(input()) S = [] for i in range(N): S.append(input()) count_map = {"AC": 0, "WA": 0, "TLE": 0, "RE": 0} for s in S: count_map[s] += 1 print(count_map) for count_key, count in count_map.items(): print(count_key + " x " + str(count))
# -*- coding: utf-8 -*- N = int(input()) S = [] for i in range(N): S.append(input()) count_map = {"AC": 0, "WA": 0, "TLE": 0, "RE": 0} for s in S: count_map[s] += 1 for count_key, count in count_map.items(): print(count_key + " x " + str(count))
[["-", 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
95
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define fi first #define se second #define mp make_pair #define pb push_back #define fbo find_by_order #define ook order_of_key typedef long long ll; typedef pair<ll...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define fi first #define se second #define mp make_pair #define pb push_back #define fbo find_by_order #define ook order_of_key typedef long long ll; typedef pair<ll...
[["-", 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
199
/* -------------------- | LOSER | | ~NOOBOSS~ | -------------------- */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define inl(x) scanf("%lld", &x) #define in(x) scanf("%d", ...
/* -------------------- | LOSER | | ~NOOBOSS~ | -------------------- */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define inl(x) scanf("%lld", &x) #define in(x) scanf("%d", ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
697
#include <bits/stdc++.h> using namespace std; int main() { int N, a, b, c, d; a = 0; b = 0; c = 0; d = 0; cin >> N; string C; for (int i = 0; i < N; i++) { cin >> C; if (C == "AC") { a++; } if (C == "WA") { b++; } if (C == "TLE") { c++; } if (C == "RE")...
#include <bits/stdc++.h> using namespace std; int main() { int N, a, b, c, d; a = 0; b = 0; c = 0; d = 0; cin >> N; string C; for (int i = 0; i < N; i++) { cin >> C; if (C == "AC") { a++; } if (C == "WA") { b++; } if (C == "TLE") { c++; } if (C == "RE")...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
206
#include <bits/stdc++.h> #define ll long long #define nl "\n" #define pi acos(-1) #define fast ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL) #define pcase printf("Case %d:\n", ca) int ca = 1; using namespace std; int main() { int n; cin >> n; cin.ignore(); int ac = 0, wa = 0, tle = 0, re = 0; ...
#include <bits/stdc++.h> #define ll long long #define nl "\n" #define pi acos(-1) #define fast ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL) #define pcase printf("Case %d:\n", ca) int ca = 1; using namespace std; int main() { int n; cin >> n; cin.ignore(); int ac = 0, wa = 0, tle = 0, re = 0; ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
171
#include <iostream> using namespace std; int main() { int N; string str; int cnt[4] = {0}; cin >> N; for (int i = 0; i < N; i++) { cin >> str; if (str == "AC") { cnt[0]++; } else if (str == "WA") { cnt[1]++; } else if (str == "TLE") { cnt[2]++; } else if (str == "RE") {...
#include <iostream> using namespace std; int main() { int N; string str; int cnt[4] = {0}; cin >> N; for (int i = 0; i < N; i++) { cin >> str; if (str == "AC") { cnt[0]++; } else if (str == "WA") { cnt[1]++; } else if (str == "TLE") { cnt[2]++; } else if (str == "RE") {...
[["-", 0, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["+", 0, 16, 31, 16, 12, 69, 341, 342, 0, 13]]
1
171
//#include<bits/stdc++.h> #include <iostream> #include <string> #define ll long long int using namespace std; int main() { ll T, i, j, c, d, p, q, n, a, b, m; string s1, s2, s3, s4; cin >> T; a = b = c = d = 0; while (T--) { cin >> s1; if (s1 == "AC") a++; else if (s1 == "WA") b++; ...
//#include<bits/stdc++.h> #include <iostream> #include <string> #define ll long long int using namespace std; int main() { ll T, i, j, c, d, p, q, n, a, b, m; string s1, s2, s3, s4; cin >> T; a = b = c = d = 0; while (T--) { cin >> s1; if (s1 == "AC") a++; else if (s1 == "WA") b++; ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
162
#include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; int ac = 0, tle = 0, wa = 0, re = 0; string s[t]; for (int i = 0; i < t; i++) { cin >> s[i]; } for (int i = 0; i < t; i++) { if (s[i] == "AC") { ac++; } else if (s[i] == "WA") { wa++; } else if (s[i] =...
#include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; int ac = 0, tle = 0, wa = 0, re = 0; string s[t]; for (int i = 0; i < t; i++) { cin >> s[i]; } for (int i = 0; i < t; i++) { if (s[i] == "AC") { ac++; } else if (s[i] == "WA") { wa++; } else if (s[i] =...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
180
#include <bits/stdc++.h> using namespace std; // Optimisations #pragma GCC target("avx2") #pragma GCC optimization("unroll-loops") #pragma GCC optimize("O2") // shortcuts for functions #define pb push_back #define mp make_pair #define ff first #define ss second #define all(v) v.begin(), v.end() #define prec(n) fixed <<...
#include <bits/stdc++.h> using namespace std; // Optimisations #pragma GCC target("avx2") #pragma GCC optimization("unroll-loops") #pragma GCC optimize("O2") // shortcuts for functions #define pb push_back #define mp make_pair #define ff first #define ss second #define all(v) v.begin(), v.end() #define prec(n) fixed <<...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
430
#include <bits/stdc++.h> using namespace std; int main() { int n, ac = 0, wa = 0, tle = 0, re = 0; cin >> n; string s; for (int i = 1; i <= n; i++) { cin >> s; if (s[0] == 'A') ac++; if (s[0] == 'W') wa++; if (s[0] == 'T') tle++; if (s[0] == 'R') re++; } cout << ...
#include <bits/stdc++.h> using namespace std; int main() { int n, ac = 0, wa = 0, tle = 0, re = 0; cin >> n; string s; for (int i = 1; i <= n; i++) { cin >> s; if (s[0] == 'A') ac++; if (s[0] == 'W') wa++; if (s[0] == 'T') tle++; if (s[0] == 'R') re++; } cout << ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
173
#include <bits/stdc++.h> #define ll long long int #define pb push_back #define mp make_pair #define endl "\n" using namespace std; int main() { ll n, ac = 0, tle = 0, wa = 0, re = 0; cin >> n; for (ll i = 0; i < n; i++) { string s; cin >> s; if (s == "AC") ac++; else if (s == "WA") wa...
#include <bits/stdc++.h> #define ll long long int #define pb push_back #define mp make_pair #define endl "\n" using namespace std; int main() { ll n, ac = 0, tle = 0, wa = 0, re = 0; cin >> n; for (ll i = 0; i < n; i++) { 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
151
#include <bits/stdc++.h> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < n; i++) #define rep1(i, n) for (int i = 1; i <= n; i++) #define rep2(i, n) for (int i = 0; i <= n; i++) #define repr(i, a, n) for (int i = a; i < n; i++) #define all(a) a.begin(), a.end() #define P pair<long long, ...
#include <bits/stdc++.h> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < n; i++) #define rep1(i, n) for (int i = 1; i <= n; i++) #define rep2(i, n) for (int i = 0; i <= n; i++) #define repr(i, a, n) for (int i = a; i < n; i++) #define all(a) a.begin(), a.end() #define P pair<long long, ...
[["-", 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
363
import java.io.*; import java.util.*; /* * To execute Java, please define "static void main" on a class * named Solution. * * If you need more classes, simply define them inline. */ class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.n...
import java.io.*; import java.util.*; /* * To execute Java, please define "static void main" on a class * named Solution. * * If you need more classes, simply define them inline. */ class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.n...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
165
#include <bits/stdc++.h> using namespace std; string words[4] = {"AC", "WA", "TLE", "RTE"}; int main() { int n; cin >> n; vector<int> v(4); for (int i = 0; i < n; i++) { string s; cin >> s; for (int id = 0; id < 4; id++) { if (words[id] != s) continue; v[id]++; } } for...
#include <bits/stdc++.h> using namespace std; string words[4] = {"AC", "WA", "TLE", "RE"}; int main() { int n; cin >> n; vector<int> v(4); for (int i = 0; i < n; i++) { string s; cin >> s; for (int id = 0; id < 4; id++) { if (words[id] != s) continue; v[id]++; } } for ...
[["-", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6], ["+", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6]]
1
147
import os N = int(input()) S = [0] * N for i in range(0, N): S[i] = input() AC = 0 WA = 0 TLE = 0 RE = 0 for i in S: if i == "AC": AC+=1 elif i == "WA": WA+=1 elif i == "TLE": TLE+=1 elif i == "RE": RE+=1 print("AC x",AC) print("WA x",WA) print("TLE ×",TLE) print...
import os N = int(input()) S = [0] * N for i in range(0, N): S[i] = input() AC = 0 WA = 0 TLE = 0 RE = 0 for i in S: if i == "AC": AC+=1 elif i == "WA": WA+=1 elif i == "TLE": TLE+=1 elif i == "RE": RE+=1 print("AC x",AC) print("WA x",WA) print("TLE x",TLE) print...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
124
#include <bits/stdc++.h> using namespace std; int main() { int a; int b = 0; int c = 0; int d = 0; int e = 0; cin >> a; for (int i = 0; i < a; i++) { string f; cin >> f; if (f == "AC") { b += 1; } if (f == "WA") { c += 1; } if (f == "TLE") { d += 1; } ...
#include <bits/stdc++.h> using namespace std; int main() { int a; int b = 0; int c = 0; int d = 0; int e = 0; cin >> a; for (int i = 0; i < a; i++) { string f; cin >> f; if (f == "AC") { b += 1; } if (f == "WA") { c += 1; } if (f == "TLE") { d += 1; } ...
[["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]]
1
158
#include <iostream> #include <sstream> using namespace std; #include <algorithm> #include <bits/stdc++.h> #include <iterator> #include <utility> #define go return 0 #define rep(i, n) for (int i = 0; i < n; ++i) #define rep(j, m) for (int j = 0; j < m; ++j) #define REP(i, n) for (int i = 1; i <= n; ++i) #define all(v) (...
#include <iostream> #include <sstream> using namespace std; #include <algorithm> #include <bits/stdc++.h> #include <iterator> #include <utility> #define go return 0 #define rep(i, n) for (int i = 0; i < n; ++i) #define rep(j, m) for (int j = 0; j < m; ++j) #define REP(i, n) for (int i = 1; i <= n; ++i) #define all(v) (...
[["-", 0, 134, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 134, 39, 344, 3, 347, 0, 77, 39, 78], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
299
N = gets.to_i ac = wa = tle = re = 0 s = [] N.times do |i| s << gets.to_s.chomp end for i in s if i == "AC" ac +=1 elsif i == "WA" wa += 1 elsif i == "TLE" tle += 1 elsif i == "RE" re += 1 end end puts "AC x #{ac}" puts "WA x #{wa}" puts "TLE × #{tle}" puts "RE × #{re}"
N = gets.to_i ac = wa = tle = re = 0 s = [] N.times do |i| s << gets.to_s.chomp end for i in s if i == "AC" ac +=1 elsif i == "WA" wa += 1 elsif i == "TLE" tle += 1 elsif i == "RE" re += 1 end end puts "AC x #{ac}" puts "WA x #{wa}" puts "TLE x #{tle}" puts "RE x #{re}"
[["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6]]
4
103
n = int(input()) p = [] for i in range(n): a = input() p.append(a) ac = 0 wa = 0 tle = 0 re = 0 for i in range(n): if p[i] == 'AC': ac += 1 elif p[i] == 'WA': wa += 1 elif p[i] == 'TLE': tle += 1 else: re += 1 ans = 'AC X' print(ans,str(ac), sep = ' ',) ans = 'WA ...
n = int(input()) p = [] for i in range(n): a = input() p.append(a) ac = 0 wa = 0 tle = 0 re = 0 for i in range(n): if p[i] == 'AC': ac += 1 elif p[i] == 'WA': wa += 1 elif p[i] == 'TLE': tle += 1 else: re += 1 ans = 'AC x' print(ans,str(ac), sep = ' ',) ans = 'WA ...
[["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6]]
5
176
n = int(input()) result = {} l = ['AC','WA','TLE','RE'] for i in l: result[i] = 0 for _ in range(n): result[input()] += 1 for i in l: print(f'AC x {result[i]}')
n = int(input()) result = {} l = ['AC','WA','TLE','RE'] for i in l: result[i] = 0 for _ in range(n): result[input()] += 1 for i in l: print(f'{i} x {result[i]}')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 557, 0, 284, 0, 45], ["+", 0, 652, 3, 4, 0, 557, 0, 284, 205, 22], ["+", 0, 652, 3, 4, 0, 557, 0, 284, 0, 46], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
75
#include <bits/stdc++.h> #include <math.h> using namespace std; const double pi = acos(-1.0); #define rep(i, n) for (int i = 0; i < (int)(n); i++) int max(int a, int b) { if (a > b) { return a; } return b; } int min(int a, int b) { if (a < b) { return a; } return b; } int main(void) { long int n;...
#include <bits/stdc++.h> #include <math.h> using namespace std; const double pi = acos(-1.0); #define rep(i, n) for (int i = 0; i < (int)(n); i++) int max(int a, int b) { if (a > b) { return a; } return b; } int min(int a, int b) { if (a < b) { return a; } return b; } int main(void) { long int n;...
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
249
#include <bits/stdc++.h> using namespace std; int main() { // your code goes here int n; cin >> n; string p; vector<string> v; for (int i = 0; i < n; i++) { cin >> p; v.push_back(p); } string s = "AC"; cout << s << " "; cout << "X" << " "; cout << count(v.begin(), v.end(), s) << "\...
#include <bits/stdc++.h> using namespace std; int main() { // your code goes here int n; cin >> n; string p; vector<string> v; for (int i = 0; i < n; i++) { cin >> p; v.push_back(p); } string s = "AC"; cout << s << " "; cout << "x" << " "; cout << count(v.begin(), v.end(), s) << "\...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
247
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (li i = 0; i < n; i++) #define li long long int #define ll long long int #define pb push_back #define all(v) sort(v.begin(), v.end()) const int N = 40043; const ll mod = 1e9 + 7; #define FAST_IO ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (li i = 0; i < n; i++) #define li long long int #define ll long long int #define pb push_back #define all(v) sort(v.begin(), v.end()) const int N = 40043; const ll mod = 1e9 + 7; #define FAST_IO ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
562
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ll long long #define ld long double #define fo(i, v, e) for (v = i; v < e; v++) #define rfo(i, v, e) for (v = i; v > e; v--) #define pb(x) push_back(x) #define ...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ll long long #define ld long double #define fo(i, v, e) for (v = i; v < e; v++) #define rfo(i, v, e) for (v = i; v > e; v--) #define pb(x) push_back(x) #define ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
677
#include <bits/stdc++.h> //#include<boost/multiprecision/cpp_int.hpp> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ull unsigned long long int #define ll long long #define vi vector<int> #define mii map<int, int> #define all(x) x.begin(), x.end() #define fast_io ...
#include <bits/stdc++.h> //#include<boost/multiprecision/cpp_int.hpp> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ull unsigned long long int #define ll long long #define vi vector<int> #define mii map<int, int> #define all(x) x.begin(), x.end() #define fast_io ...
[["-", 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
250
#include <iostream> #include <string> #define ll long long int #define ld long double #define pi acos(-1) #define pb push_back using namespace std; int main() { ll i, j, k, a, b, c, n, t, m, p, q, d, e, f, x, y, g, z, h; ld aa, bb, cc, dd, ee, ff, kk, gg; // vector<ll > v,s,vv; // vector<string> vs; // ...
#include <iostream> #include <string> #define ll long long int #define ld long double #define pi acos(-1) #define pb push_back using namespace std; int main() { ll i, j, k, a, b, c, n, t, m, p, q, d, e, f, x, y, g, z, h; ld aa, bb, cc, dd, ee, ff, kk, gg; // vector<ll > v,s,vv; // vector<string> vs; // ...
[["-", 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
233