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; int main() { int t, coun = 0, coun2 = 0, coun3 = 0, coun4 = 0; string s; cin >> t; while (t--) { cin >> s; if (s[0] == 'A') { coun++; } if (s[0] == 'W') { coun2++; } if (s[0] == 'R') { coun3++; } if (s[0] == 'T') { ...
#include <bits/stdc++.h> using namespace std; int main() { int t, coun = 0, coun2 = 0, coun3 = 0, coun4 = 0; string s; cin >> t; while (t--) { cin >> s; if (s[0] == 'A') { coun++; } if (s[0] == 'W') { coun2++; } if (s[0] == 'R') { coun3++; } if (s[0] == 'T') { ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
153
#include <algorithm> #include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int N; cin >> N; vector<string> S(N); for (int i = 0; i < N; i++) { cin >> S.at(i); } int a = 0; int b = 0; int c = 0; int d = 0; for (int i = 0; i < N; i++) { if (S.at(i) == "AC") { a...
#include <algorithm> #include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int N; cin >> N; vector<string> S(N); for (int i = 0; i < N; i++) { cin >> S.at(i); } int a = 0; int b = 0; int c = 0; int d = 0; for (int i = 0; i < N; i++) { if (S.at(i) == "AC") { a...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
195
n=int(input()) s=[input() for i in range(n)] x=["AC","WA","TLE","RE"] for i in x: print("{} × ".format(i)+str(s.count(i)))
n=int(input()) s=[input() for i in range(n)] x=["AC","WA","TLE","RE"] for i in x: print("{} x ".format(i)+str(s.count(i)))
[["-", 0, 657, 31, 652, 63, 319, 500, 557, 0, 6], ["+", 0, 657, 31, 652, 63, 319, 500, 557, 0, 6]]
5
67
n=int(input()) word_list = ['AC','WA','TLE','RE'] A = 0 W = 0 T = 0 R = 0 for i in range(n): s = input() if s == 'AC': A = A + 1 elif s == 'WA': W = W + 1 elif s == 'TLE': T = T + 1 else: R = R + 1 Ans_list = [A,W,T,R] for i in range(4): print(str(word_list[i])+ ...
n=int(input()) word_list = ['AC','WA','TLE','RE'] A = 0 W = 0 T = 0 R = 0 for i in range(n): s = input() if s == 'AC': A = A + 1 elif s == 'WA': W = W + 1 elif s == 'TLE': T = T + 1 else: R = R + 1 Ans_list = [A,W,T,R] for i in range(4): print(str(word_list[i])+ ...
[["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]]
5
136
#include <iostream> #include <string> using namespace std; typedef long long ll; int main() { ll n; cin >> n; string b[4]; b[0] = "AC"; b[1] = "WA"; b[2] = "TLE"; b[3] = "RE"; ll c[4]; fill(c, c + 4, 0); string a; for (ll i = 0; i < n; i++) { cin >> a; if (a == "AC") { c[0]++; } ...
#include <iostream> #include <string> using namespace std; typedef long long ll; int main() { ll n; cin >> n; string b[4]; b[0] = "AC"; b[1] = "WA"; b[2] = "TLE"; b[3] = "RE"; ll c[4]; fill(c, c + 4, 0); string a; for (ll i = 0; i < n; i++) { cin >> a; if (a == "AC") { c[0]++; } ...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
214
/* * @Author: kabbo * @Date: 2020-06-24 08:40:07 * @Last Modified by: kabbo * @Last Modified time: 2020-06-24 08:49:58 */ #include <bits/stdc++.h> using namespace std; #define pii pair<long long, long long> #define endl '\n' #define ull unsigned long long #define ll long long const int mod = 1e9 + 7; using u64...
/* * @Author: kabbo * @Date: 2020-06-24 08:40:07 * @Last Modified by: kabbo * @Last Modified time: 2020-06-24 08:49:58 */ #include <bits/stdc++.h> using namespace std; #define pii pair<long long, long long> #define endl '\n' #define ull unsigned long long #define ll long long const int mod = 1e9 + 7; using u64...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
270
N = int(input()) test = {"AC": 0, "WA": 0, "TLE": 0, "RE": 0} for _ in range(N): s = input() test[s] += 1 for i, j in test.items(): print("{} × {}".format(i, j))
N = int(input()) test = {"AC": 0, "WA": 0, "TLE": 0, "RE": 0} for _ in range(N): s = input() test[s] += 1 for i, j in test.items(): print("{} x {}".format(i, j))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
78
// In the name of Allah :) #include <bits/stdc++.h> using namespace std; #define wis(x) "[" << #x << " : " << x << "] " << typedef long long ll; const int MAXN = 2e5 + 10, MOD = 1e9 + 7, INF = 1e9 + 5; map<string, int> cnt; int main() { ios::sync_with_stdio(0), cin.tie(0), cout.tie(0); int n; string str; cin...
// In the name of Allah :) #include <bits/stdc++.h> using namespace std; #define wis(x) "[" << #x << " : " << x << "] " << typedef long long ll; const int MAXN = 2e5 + 10, MOD = 1e9 + 7, INF = 1e9 + 5; map<string, int> cnt; int main() { ios::sync_with_stdio(0), cin.tie(0), cout.tie(0); int n; string 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
162
from collections import defaultdict n=int(input()) dic=defaultdict(int) for i in range(n): x=input() if x in dic: dic[x]+=1 else: dic[x]=1 print("AC X",dic["AC"]) print("WA X",dic["WA"]) print("TLE X",dic["TLE"]) print("RE X",dic["RE"])
from collections import defaultdict n=int(input()) dic=defaultdict(int) for i in range(n): x=input() if x in dic: dic[x]+=1 else: dic[x]=1 print("AC x",dic["AC"]) print("WA x",dic["WA"]) print("TLE x",dic["TLE"]) print("RE x",dic["RE"])
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
102
#include <algorithm> #include <bitset> #include <cassert> #include <cstdio> #include <deque> #include <ext/pb_ds/assoc_container.hpp> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdlib.h> #include <string.h> #inclu...
#include <algorithm> #include <bitset> #include <cassert> #include <cstdio> #include <deque> #include <ext/pb_ds/assoc_container.hpp> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdlib.h> #include <string.h> #inclu...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
637
#include <stdio.h> #include <string.h> int main() { int i, N, C0 = 0, C1 = 0, C2 = 0, C3 = 0, C4 = 0; scanf("%d", &N); char S[N][4]; for (i = 0; i < N; i++) { scanf("%s", S[i]); } for (i = 0; i < N; i++) { if (strcmp(S[i], "AC") == 0) { C0++; } else if (strcmp(S[i], "WA") == 0) { ...
#include <stdio.h> #include <string.h> int main() { int i, N, C0 = 0, C1 = 0, C2 = 0, C3 = 0, C4 = 0; scanf("%d", &N); char S[N][4]; for (i = 0; i < N; i++) { scanf("%s", S[i]); } for (i = 0; i < N; i++) { if (strcmp(S[i], "AC") == 0) { C0++; } else if (strcmp(S[i], "WA") == 0) { ...
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
228
N = int(input()) l = [input() for _ in range(N)] ch = {'AC': 0, 'WA':0, 'TLE':0, 'RE':0} for key, value in ch.items(): ch[key] = l.count(key) for key, value in ch.items(): print(key + ' x ' + value)
N = int(input()) l = [input() for _ in range(N)] ch = {'AC': 0, 'WA':0, 'TLE':0, 'RE':0} for key, value in ch.items(): ch[key] = l.count(key) for key, value in ch.items(): print(key + ' x ' + str(value))
[["+", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]]
5
92
N = int(input()) #1行目のNを取得する s = [input() for i in range(N)] #複数行の数値の入力を取得 ac = s.count("AC") wa = s.count("wa") tle = s.count("TLE") re = s.count("RE") print("AC x "+str(ac)) print("WA x "+str(wa)) print("TLE x "+str(tle)) print("RE x "+str(re))
N = int(input()) #1行目のNを取得する s = [input() for i in range(N)] #複数行の数値の入力を取得 ac = s.count("AC") wa = s.count("WA") tle = s.count("TLE") re = s.count("RE") print("AC x "+str(ac)) print("WA x "+str(wa)) print("TLE x "+str(tle)) print("RE x "+str(re))
[["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6]]
5
108
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int n; cin >> n; string s; int a = 0, b = 0, c = 0, d = 0; for (int i = 0; i < n; i++) { cin >> s; if (s[0] == 'A') { a++; } if (s[0] == 'W') { b++; } if (s[0] == 'T') { c++; } ...
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int n; cin >> n; string s; int a = 0, b = 0, c = 0, d = 0; for (int i = 0; i < n; i++) { cin >> s; if (s[0] == 'A') { a++; } if (s[0] == 'W') { b++; } if (s[0] == 'T') { c++; } ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
166
#include <bits/stdc++.h> using namespace std; int main() { string s; int n, a = 0, w = 0, t = 0, r = 0; cin >> n; while (n--) { cin >> s; if (s == "AC") { a++; } else if (s == "WA") { w++; } else if (s == "TLE") { t++; } else { r++; } cout << "AC " <<...
#include <bits/stdc++.h> using namespace std; int main() { string s; int n, a = 0, w = 0, t = 0, r = 0; cin >> n; while (n--) { cin >> s; if (s == "AC") { a++; } else if (s == "WA") { w++; } else if (s == "TLE") { t++; } else { r++; } } cout << "AC " <<...
[["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]]
1
163
// Md. Shajibul Islam.. // East West University, CSE Department'19 #include <bits/stdc++.h> using namespace std; #define FAST \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
// Md. Shajibul Islam.. // East West University, CSE Department'19 #include <bits/stdc++.h> using namespace std; #define FAST \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
162
result = [] for _ in range(int(input())): result.append(input()) print("AC X {}".format(result.count("AC"))) print("WA X {}".format(result.count("WA"))) print("TLE X {}".format(result.count("TLE"))) print("RE X {}".format(result.count("RE")))
result = [] for _ in range(int(input())): result.append(input()) print("AC x {}".format(result.count("AC"))) print("WA x {}".format(result.count("WA"))) print("TLE x {}".format(result.count("TLE"))) print("RE x {}".format(result.count("RE")))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
97
#include <iostream> using namespace std; typedef long long int ll; int main() { int t, c1 = 0, c2 = 0, c3 = 0, c4 = 0; string s; cin >> t; while (t--) { cin >> s; if (s == "AC") c1++; else if (s == "WA") c2++; else if (s == "TLE") c3++; else if (s == "RE") c4++; } ...
#include <iostream> using namespace std; typedef long long int ll; int main() { int t, c1 = 0, c2 = 0, c3 = 0, c4 = 0; string s; cin >> t; while (t--) { cin >> s; if (s == "AC") c1++; else if (s == "WA") c2++; else if (s == "TLE") c3++; else if (s == "RE") c4++; } ...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
190
#include <bits/stdc++.h> using namespace std; #define int long long #define endl "\n" #define MOD 1000000007 #define fast_io \ ios_base::sync_with_stdio(false); \ cin.tie(NULL) int32_t main() { fast_io; /...
#include <bits/stdc++.h> using namespace std; #define int long long #define endl "\n" #define MOD 1000000007 #define fast_io \ ios_base::sync_with_stdio(false); \ cin.tie(NULL) int32_t main() { fast_io; /...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
165
#include <bits/stdc++.h> #define endl "\n" #define ll long long int #define mod 1000000007 #define inf 1000000000000000001; using namespace std; int main() { // #ifndef ONLINE_JUDGE // // for getting input from input.txt // freopen("input.txt", "r", stdin); // // for writing output to output.txt // freop...
#include <bits/stdc++.h> #define endl "\n" #define ll long long int #define mod 1000000007 #define inf 1000000000000000001; using namespace std; int main() { // #ifndef ONLINE_JUDGE // // for getting input from input.txt // freopen("input.txt", "r", stdin); // // for writing output to output.txt // freop...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
266
#include <bits/stdc++.h> #define ll long long #define io ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0) #define fi first #define se second using namespace std; int main() { // freopen("test.inp","r",stdin); // freopen("BAILAM.OUT","w",stdout); io; int n, a = 0, t = 0, w = 0, r = 0; cin >> n; while ...
#include <bits/stdc++.h> #define ll long long #define io ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0) #define fi first #define se second using namespace std; int main() { // freopen("test.inp","r",stdin); // freopen("BAILAM.OUT","w",stdout); io; int n, a = 0, t = 0, w = 0, r = 0; cin >> n; while ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
159
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int n; cin >> n; unordered_map<string, int> mp; mp["AC"] = 0; mp["WA"] = 0; mp["TLE"] = 0; mp["RE"] = 0; string a; for (int i = 1; i <= n; i++) { cin >> a; mp[a]++; } cout << "AC" << " X " << mp["AC"] <<...
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int n; cin >> n; unordered_map<string, int> mp; mp["AC"] = 0; mp["WA"] = 0; mp["TLE"] = 0; mp["RE"] = 0; string a; for (int i = 1; i <= n; i++) { cin >> a; mp[a]++; } cout << "AC" << " x " << mp["AC"] <...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
173
N = int(input()) ac, wa, tle, re = 0, 0, 0, 0 for _ in range(N): S = int(input()) if S == 'AC': ac+=1 elif S == 'WA': wa+=1 elif S == 'TLE': tle+=1 elif S == 'RE': re+=1 print('AC x %d'%ac) print('WA x %d'%wa) print('TLE x %d'%tle) print('RE x %d'%re)
N = int(input()) ac, wa, tle, re = 0, 0, 0, 0 for i in range(N): S = input() if S=='AC': ac+=1 elif S=='WA': wa+=1 elif S=='TLE': tle+=1 elif S=='RE': re+=1 print('AC x %d'%ac) print('WA x %d'%wa) print('TLE x %d'%tle) print('RE x %d'%re)
[["-", 36, 36, 36, 36, 0, 656, 0, 7, 31, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 7, 31, 22], ["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
111
from collections import Counter def main(): N = int(input()) lst = [] for _ in range(N): lst.extend(input().split()) c = dict(Counter(lst)) for i in ["AC", "WA", "TLE", "RE"]: c.setdefault(i, 0) print(f"{i} × {c[i]}") if __name__ == '__main__': main()
from collections import Counter def main(): N = int(input()) lst = [] for _ in range(N): lst.extend(input().split()) c = dict(Counter(lst)) for i in ["AC", "WA", "TLE", "RE"]: c.setdefault(i, 0) print(f"{i} x {c[i]}") 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
104
#include <algorithm> #include <bits/stdc++.h> #include <math.h> using namespace std; #define ll long long; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); long n; cin >> n; string s; int a = 0; int w = 0; int t = 0; int r = 0; for (long i = 0; i < n; i++) { cin >> s; ...
#include <algorithm> #include <bits/stdc++.h> #include <math.h> using namespace std; #define ll long long; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); long n; cin >> n; string s; int a = 0; int w = 0; int t = 0; int r = 0; for (long i = 0; i < n; i++) { cin >> s; ...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
236
from collections import defaultdict N = int(input()) d = defaultdict(int) for _ in range(N): d[input()] += 1 for k in ['AC', 'WA', 'TLE', 'RE']: v = d[k] if v: print(f'{k} x {v}')
from collections import defaultdict N = int(input()) d = defaultdict(int) for _ in range(N): d[input()] += 1 for k in ['AC', 'WA', 'TLE', 'RE']: v = d[k] print(f'{k} x {v}')
[["-", 0, 656, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 0, 656, 0, 7, 8, 196, 0, 57, 15, 22], ["-", 0, 656, 0, 7, 8, 196, 0, 57, 0, 102]]
5
76
#include <bits/stdc++.h> using namespace std; int main() { int te, i, a = 0, w = 0, t = 0, r = 0; string str; cin >> te; for (i = 1; i <= te; i++) { cin >> str; if (str == "AC") a++; if (str == "WA") w++; if (str == "TLE") t++; if (str == "RE") r++; } cout << "AC ...
#include <bits/stdc++.h> using namespace std; int main() { int te, i, a = 0, w = 0, t = 0, r = 0; string str; cin >> te; for (i = 1; i <= te; i++) { cin >> str; if (str == "AC") a++; if (str == "WA") w++; if (str == "TLE") t++; if (str == "RE") r++; } cout << "AC ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
143
#include <bits/stdc++.h> using namespace std; int main() { long long n; cin >> n; string s; int ac = 0, tle = 0, wa = 0, re = 0; for (int i = 0; i < n; i++) { cin >> s; if (s == "AC") ac++; else if (s == "TLE") tle++; else if (s == "WA") wa++; else re++; } cou...
#include <bits/stdc++.h> using namespace std; int main() { long long n; cin >> n; string s; int ac = 0, tle = 0, wa = 0, re = 0; for (int i = 0; i < n; i++) { cin >> s; if (s == "AC") ac++; else if (s == "TLE") tle++; else if (s == "WA") wa++; else re++; } cou...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
142
#include <iostream> using namespace std; #include <bits/stdc++.h> #define ll long long int main() { ll n, ac = 0, wa = 0, tle = 0, re = 0; cin >> n; while (n--) { string s; cin >> s; if (s == "AC") ac++; if (s == "WA") wa++; if (s == "TLE") tle++; if (s == "RE") r...
#include <iostream> using namespace std; #include <bits/stdc++.h> #define ll long long int main() { ll n, ac = 0, wa = 0, tle = 0, re = 0; cin >> n; while (n--) { string s; cin >> s; if (s == "AC") ac++; if (s == "WA") wa++; if (s == "TLE") tle++; if (s == "RE") r...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
138
#include <bits/stdc++.h> using namespace std; #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define ll long long int main() { fastio; int n; cin >> n; map<int, int> m; for (...
#include <bits/stdc++.h> using namespace std; #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define ll long long int main() { fastio; int n; cin >> n; map<int, int> m; for (...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
181
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { int n; cin >> n; vector<string> s(n); int ac = 0, re = 0, wa = 0, tle = 0; for (int i = 0; i < n; i++) { cin >> s[i]; if (s[i] == "TLE") { tle++; } else if (s[i] == "WA") wa++; else if (s[i] == "AC...
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { int n; cin >> n; vector<string> s(n); int ac = 0, re = 0, wa = 0, tle = 0; for (int i = 0; i < n; i++) { cin >> s[i]; if (s[i] == "TLE") { tle++; } else if (s[i] == "WA") wa++; else if (s[i] == "AC...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
214
#include <bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define pll pair<long long int, long long int> #define great (long long int)(1e9 + 7) #define fastio \ ios::sync_with_stdio(false); ...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define pll pair<long long int, long long int> #define great (long long int)(1e9 + 7) #define fastio \ ios::sync_with_stdio(false); ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
239
#include <bits/stdc++.h> using namespace std; int main() { int t1; cin >> t1; int a = 0, t = 0, w = 0, r = 0; vector<string> v; while (t1--) { string s; cin >> s; // v.push_back(s); if (s == "AC") { a++; } else if (s == "WA") { w++; } else if (s == "RE") { r++; ...
#include <bits/stdc++.h> using namespace std; int main() { int t1; cin >> t1; int a = 0, t = 0, w = 0, r = 0; vector<string> v; while (t1--) { string s; cin >> s; // v.push_back(s); if (s == "AC") { a++; } else if (s == "WA") { w++; } else if (s == "RE") { r++; ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
144
#include <bits/stdc++.h> #define mp make_pair #define ss second #define ff first #define ll long long int #define tcase \ ll t; \ cin >> t; ...
#include <bits/stdc++.h> #define mp make_pair #define ss second #define ff first #define ll long long int #define tcase \ ll t; \ cin >> t; ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
291
#include <iostream> using namespace std; int main(void) { int N; cin >> N; int AC = 0; int WA = 0; int TLE = 0; int RE = 0; string X; for (int i = 0; i < N; i++) { cin >> X; if (X == "AC") { AC = AC + 1; } if (X == "WA") { WA = WA + 1; } if (X == "TLE") { TL...
#include <iostream> using namespace std; int main(void) { int N; cin >> N; int AC = 0; int WA = 0; int TLE = 0; int RE = 0; string X; for (int i = 0; i < N; i++) { cin >> X; if (X == "AC") { AC = AC + 1; } if (X == "WA") { WA = WA + 1; } if (X == "TLE") { TL...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
167
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define mp make_pair #define pl pair<ll, ll> #define vl vector<ll> #define fastIO \ ios_base::sync_with_stdio(false); \ c...
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define mp make_pair #define pl pair<ll, ll> #define vl vector<ll> #define fastIO \ ios_base::sync_with_stdio(false); \ c...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
219
#include <stdio.h> void main() { int n = 0; int ac, wa, tle, re; ac = 0; wa = 0; tle = 0; re = 0; scanf("%d", &n); for (int i = 0; i < n; i++) { char input[5]; scanf("%s", input); if (!strcmp(input, "AC")) ac++; if (!strcmp(input, "WA")) wa++; if (!strcmp(input, "TLE")) ...
#include <stdio.h> void main() { int n = 0; int ac, wa, tle, re; ac = 0; wa = 0; tle = 0; re = 0; scanf("%d", &n); for (int i = 0; i < n; i++) { char input[5]; scanf("%s", input); if (!strcmp(input, "AC")) ac++; if (!strcmp(input, "WA")) wa++; if (!strcmp(input, "TLE")) ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
161
#include <bits/stdc++.h> using namespace std; #define start \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0) #define f(i, a, n...
#include <bits/stdc++.h> using namespace std; #define start \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0) #define f(i, a, n...
[["+", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
1
168
#include <bits/stdc++.h> using namespace std; #define ll long long int #define vr vector #define pb push_back #define mod 1000000007 #define all(v) v.begin(), v.end() #define watch(x) cout << (#x) << " is " << (x) << endl #define loop(i, n) for (i = 0; i < n; i++) ll power(ll x, ll y, ll md) { ll res = 1; // Initiali...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define vr vector #define pb push_back #define mod 1000000007 #define all(v) v.begin(), v.end() #define watch(x) cout << (#x) << " is " << (x) << endl #define loop(i, n) for (i = 0; i < n; i++) ll power(ll x, ll y, ll md) { ll res = 1; // Initiali...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
251
#include <bits/stdc++.h> using namespace std; #define xxx ios::sync_with_stdio(), cin.tie(0), cout.tie(0) #define rep(i, n) for (int i = 0; i < n; i++) #define int long long int powerof(int x, int n) { int ans = 0; while (x != 0) { if (x % n == 0) { x /= n; ans++; } else { return ans; ...
#include <bits/stdc++.h> using namespace std; #define xxx ios::sync_with_stdio(), cin.tie(0), cout.tie(0) #define rep(i, n) for (int i = 0; i < n; i++) #define int long long int powerof(int x, int n) { int ans = 0; while (x != 0) { if (x % n == 0) { x /= n; ans++; } else { return ans; ...
[["-", 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
245
import os import sys from collections import defaultdict, Counter from itertools import product, permutations,combinations, accumulate from operator import itemgetter from bisect import bisect_left,bisect from heapq import heappop,heappush,heapify from math import ceil, floor, sqrt, gcd from copy import deepcopy from f...
import os import sys from collections import defaultdict, Counter from itertools import product, permutations,combinations, accumulate from operator import itemgetter from bisect import bisect_left,bisect from heapq import heappop,heappush,heapify from math import ceil, floor, sqrt, gcd from copy import deepcopy from f...
[["+", 0, 7, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
231
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; typedef long long ll; typedef long long int lli; ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } //最大公約数(Greatest Common Divisor) ll lcm(ll a, ll b) { return a / gcd(a, b) * b; } //最小公倍数(Least Common Multiple) long lo...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; typedef long long ll; typedef long long int lli; ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } //最大公約数(Greatest Common Divisor) ll lcm(ll a, ll b) { return a / gcd(a, b) * b; } //最小公倍数(Least Common Multiple) long lo...
[["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]]
1
258
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define mod 1000000007 #define ten5 100005 #define ten52 200005 #define ten6 1000005 #...
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define mod 1000000007 #define ten5 100005 #define ten52 200005 #define ten6 1000005 #...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
197
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define int long...
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define int long...
[["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
209
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define endl "\n...
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define endl "\n...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
443
#include <bits/stdc++.h> using namespace std; string s; int a[4], n; int main() { cin >> n; for (int i = 0; i < n; i++) { cin >> s; if (s == "AC") a[0]++; if (s == "WA") a[1]++; if (s == "TLE") a[2]++; if (s == "RW") a[3]++; } printf("AC x %d\nWA x %d\nTLE x %d\nRE x ...
#include <bits/stdc++.h> using namespace std; string s; int a[4], n; int main() { cin >> n; for (int i = 0; i < n; i++) { cin >> s; if (s == "AC") a[0]++; if (s == "WA") a[1]++; if (s == "TLE") a[2]++; if (s == "RE") a[3]++; } printf("AC x %d\nWA x %d\nTLE x %d\nRE x ...
[["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]]
1
137
/* https://codeforces.com/contest/1360/problem/H */ #include <bits/stdc++.h> using namespace std; using ll = long long; using vs = vector<string>; using vi = vector<int>; using vl = vector<ll>; using vb = vector<bool>; using pi = pair<int, int>; using pl = pair<ll, ll>; using vpi = vector<pair<int, int>>; using vpl = ...
/* https://codeforces.com/contest/1360/problem/H */ #include <bits/stdc++.h> using namespace std; using ll = long long; using vs = vector<string>; using vi = vector<int>; using vl = vector<ll>; using vb = vector<bool>; using pi = pair<int, int>; using pl = pair<ll, ll>; using vpi = vector<pair<int, int>>; using vpl = ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
296
import sys, bisect, math, itertools, heapq, collections from operator import itemgetter # a.sort(key=itemgetter(i)) # i番目要素でsort from functools import lru_cache # @lru_cache(maxsize=None) sys.setrecursionlimit(10**8) input = sys.stdin.readline INF = float('inf') mod = 10**9 + 7 eps = 10**-7 def inp(): ''' 一つの...
import sys, bisect, math, itertools, heapq, collections from operator import itemgetter # a.sort(key=itemgetter(i)) # i番目要素でsort from functools import lru_cache # @lru_cache(maxsize=None) sys.setrecursionlimit(10**8) input = sys.stdin.readline INF = float('inf') mod = 10**9 + 7 eps = 10**-7 def inp(): ''' 一つの...
[["-", 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
241
N = int(input()) S = [input() for i in range(N)] #print(N) #print(S) count = [0, 0, 0, 0] for s in S: if s in "AC": count[0] += 1 elif s in "WA" : count[1] += 1 elif s in "TLE" : count[2] += 1 elif s in "RE": count[3] += 1 print("AC x " + str(count[0])) print("WA x " + str(count[1])) pr...
N = int(input()) S = [input() for i in range(N)] #print(N) #print(S) count = [0, 0, 0, 0] for s in S: if s in "AC": count[0] += 1 elif s in "WA" : count[1] += 1 elif s in "TLE" : count[2] += 1 elif s in "RE": count[3] += 1 print("AC x " + str(count[0])) print("WA x " + str(count[1])) pr...
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
148
//#pragma region ALL(include define etc) #include <algorithm> // max(a, b) min(a, b) reverse() sort() #include <cmath> // abs(絶対値) sin cos tan(角度 / 180.0 * 3.141592) #include <functional> // sort(a, a + N, greater<型>()); #include <iomanip> #include <iostream> // swap(a, b) #include <math.h> #include <string> #inc...
//#pragma region ALL(include define etc) #include <algorithm> // max(a, b) min(a, b) reverse() sort() #include <cmath> // abs(絶対値) sin cos tan(角度 / 180.0 * 3.141592) #include <functional> // sort(a, a + N, greater<型>()); #include <iomanip> #include <iostream> // swap(a, b) #include <math.h> #include <string> #inc...
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13]]
1
298
num = int(input()) test = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0} for i in range(num): result = input() for j in test.keys(): if result == j: test[result] += 1 for i in test: print(i, '×', str(test[i]))
num = int(input()) test = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0} for i in range(num): result = input() for j in test.keys(): if result == j: test[result] += 1 for i in test: print(i, 'x', str(test[i]))
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
89
#pragma GCC target("sse4.2") #include <bits/stdc++.h> using namespace std; #define F first #define S second #define PB push_back #define ln "\n" #define forn(i, e) for (i = 0; i < e; i++) #define forsn(i, s, e) for (i = s; i < e; i++) #define rforn(i, e) for (i = e; i >= 0; i--) #define vasort(v) sort(v.begin(), v.end(...
#pragma GCC target("sse4.2") #include <bits/stdc++.h> using namespace std; #define F first #define S second #define PB push_back #define ln "\n" #define forn(i, e) for (i = 0; i < e; i++) #define forsn(i, s, e) for (i = s; i < e; i++) #define rforn(i, e) for (i = e; i >= 0; i--) #define vasort(v) sort(v.begin(), v.end(...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
1,116
n = int(input()) d = {'AC':0,'WA':0,'TLE':0,'Re':0} for j in range(n): i = input() d[i] += 1 for i in ['AC','WA','TLE','Re']: print('%s x %d' % (i, d[i]))
n = int(input()) d = {'AC':0,'WA':0,'TLE':0,'RE':0} for j in range(n): i = input() d[i] += 1 for i in ['AC','WA','TLE','RE']: print('%s x %d' % (i, d[i]))
[["-", 0, 662, 12, 680, 0, 569, 448, 557, 0, 6], ["+", 0, 662, 12, 680, 0, 569, 448, 557, 0, 6], ["-", 0, 656, 0, 7, 12, 634, 0, 557, 0, 6], ["+", 0, 656, 0, 7, 12, 634, 0, 557, 0, 6]]
5
90
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll t, n, i; cin >> t; map<string, ll> use; string s; for (i = 0; i < t; i++) { cin >> s; use[s]++; } cout << "AC * " << use["AC"] << endl; cout << "WA * " << use["WA"] << endl; cout << "TLE * " << use["TLE"] <...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll t, n, i; cin >> t; map<string, ll> use; string s; for (i = 0; i < t; i++) { cin >> s; use[s]++; } cout << "AC x " << use["AC"] << endl; cout << "WA x " << use["WA"] << endl; cout << "TLE x " << use["TLE"] <...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
124
N = int(input()) data = {'AC':0,'WA':0, 'TLE':0, 'RE':0} for i in range(N): a = input() data[a] = data[a] + 1 for i, j in zip(data.keys(), data.values()): print(i + " × " + str(j))
N = int(input()) data = {'AC':0,'WA':0, 'TLE':0, 'RE':0} for i in range(N): a = input() data[a] = data[a] + 1 for i, j in zip(data.keys(), data.values()): print(i + " x " + str(j))
[["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]]
5
92
n = int(input()) judge = {} judge['AC'] = 0 judge['WA'] = 0 judge['TLE'] = 0 judge['RE'] = 0 for i in range(n): s = input() if s == 'AC': judge['AC'] += 1 if s == 'WA': judge['WA'] += 1 if s == 'TLE': judge['TLE'] += 1 if s == 'RE': judge['RE'] += 1 for key, value in...
n = int(input()) judge = {} judge['AC'] = 0 judge['WA'] = 0 judge['TLE'] = 0 judge['RE'] = 0 for i in range(n): s = input() if s == 'AC': judge['AC'] += 1 if s == 'WA': judge['WA'] += 1 if s == 'TLE': judge['TLE'] += 1 if s == 'RE': judge['RE'] += 1 for key, value in...
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
141
#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() { int N; vector<int> S(N); int AC = 0; int WA = 0; int TLE = 0; int RE = 0; rep(i, N) { string s; cin >> s; if (s == "AC") AC++; els...
#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() { int N; cin >> N; int AC = 0; int WA = 0; int TLE = 0; int RE = 0; rep(i, N) { string s; cin >> s; if (s == "AC") AC++; else if (s ...
[["-", 0, 14, 8, 9, 0, 43, 39, 344, 141, 78], ["-", 8, 9, 0, 43, 39, 344, 3, 347, 0, 18], ["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["-", 8, 9, 0, 43, 39, 344, 3, 347, 0, 47], ["-", 0, 14, 8, 9, 0, 43, 49, 53, 49, 22], ["-", 8, 9, 0, 43, 49, 53, 54, 55, 0, 24], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, ...
1
170
def main(): N = int(input()) ac = 0 wa = 0 tle = 0 re = 0 for i in range(0, N): res = input() if (res == 'AC'): ac += 1 if (res == 'WA'): wa += 1 if (res == 'TLE'): tle += 1 if (res == 'RE'): re += 1 prin...
def main(): N = int(input()) ac = 0 wa = 0 tle = 0 re = 0 for i in range(0, N): res = input() if (res == 'AC'): ac += 1 if (res == 'WA'): wa += 1 if (res == 'TLE'): tle += 1 if (res == 'RE'): re += 1 prin...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
134
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int len = Integer.parseInt(sc.nextLine()); int acCon, tleCon, waCon, reCon; acCon = tleCon = waCon = reCon = 0; for (int i = 0; i < len; i++) { switch (sc.nextLine())...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int len = Integer.parseInt(sc.nextLine()); int acCon, tleCon, waCon, reCon; acCon = tleCon = waCon = reCon = 0; for (int i = 0; i < len; i++) { switch (sc.nextLine())...
[["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]]
3
186
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); ll n; cin >> n; ll a = 0, b = 0, c = 0, d = 0; for (ll i = 0; i < n; i++) { string s; cin >> s; if (s == "AC") { a++; } else if (s ==...
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); ll n; cin >> n; ll a = 0, b = 0, c = 0, d = 0; for (ll i = 0; i < n; i++) { string s; cin >> s; if (s == "AC") { a++; } else if (s ==...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
221
// Author- VMAX #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ordered_multiset \ tree<long long, null_type, less_equal<long long>, rb_tree_tag, \ tre...
// Author- VMAX #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ordered_multiset \ tree<long long, null_type, less_equal<long long>, rb_tree_tag, \ tre...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 1, 0, 27, 28, 69, 341, 342, 0, 22], ["+", 0, 1, 0, 27, 28, 69, 341, 342, 0, 22]]
1
437
n = int(input()) l = [0]*4 w = ["AC","WA","TLE","RE"] for i in range(n): s = input() if s == "AC": l[0] += 1 elif s == "WA": l[1] += 1 elif s == "TLE": l[2] += 1 else: l[3] +=1 for i in range(4): print(w[i] + " × " + str(l[i]))
n = int(input()) l = [0]*4 w = ["AC","WA","TLE","RE"] for i in range(n): s = input() if s == "AC": l[0] += 1 elif s == "WA": l[1] += 1 elif s == "TLE": l[2] += 1 else: l[3] +=1 for i in range(4): print(w[i] + " x " + str(l[i]))
[["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]]
5
121
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { int n; cin >> n; string s[n]; rep(i, n) cin >> s[i]; int ac = 0, wa = 0, tle = 0, re = 0; rep(i, n) { if (s[i] == "AC") ac++; else if (s[i] == "WA") wa++; else if (s[i] == "TLE...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { int n; cin >> n; string s[n]; rep(i, n) cin >> s[i]; int ac = 0, wa = 0, tle = 0, re = 0; rep(i, n) { 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
160
package main import ( "fmt" ) func main() { var n int fmt.Scan(&n) a := map[string]int{"AC": 0, "WA": 0, "TLE": 0, "RE": 0} order := []string{"AC", "WA", "TLE", "RE"} for i := 0; i < n; i++ { var in string fmt.Scan(&in) a[in]++ } for _, item := range order { fmt.Println(item, "×", a[item]) } }
package main import ( "fmt" ) func main() { var n int fmt.Scan(&n) a := map[string]int{"AC": 0, "WA": 0, "TLE": 0, "RE": 0} order := []string{"AC", "WA", "TLE", "RE"} for i := 0; i < n; i++ { var in string fmt.Scan(&in) a[in]++ } for _, item := range order { fmt.Println(item, "x", a[item]) } }
[]
7
144
#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; template <typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; #define int long long typedef long double ld;...
#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; template <typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; #define int long long typedef long double ld;...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
773
a = int(input()) i = 0 o = 0 p = 0 s = 0 l = 0 while i < a : b = input() if b == "AC" : o = o + 1 if b == "WA" : p = p + 1 if b == "TLE" : s = s + 1 if b == "RE" : l = l + 1 i = i + 1 print("AC" , "*" , o) print("WA" , "*" , p) print("TLE" , "*" , s) print("RE" , ...
a = int(input()) i = 0 o = 0 p = 0 s = 0 l = 0 while i < a : b = input() if b == "AC" : o = o + 1 if b == "WA" : p = p + 1 if b == "TLE" : s = s + 1 if b == "RE" : l = l + 1 i = i + 1 print("AC" , "x" , o) print("WA" , "x" , p) print("TLE" , "x" , s) print("RE" , ...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
134
#include <bits/stdc++.h> using namespace std; #define gc getchar_unlocked #define fo(i, n) for (int i = 0; i < n; i++) #define Fo(i, k, n) for (i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1) #define ll long long #define si(x) scanf("%d", &x) #define sl(x) scanf("%lld", &x) #define ss(s) scanf("%s", s) #define p...
#include <bits/stdc++.h> using namespace std; #define gc getchar_unlocked #define fo(i, n) for (int i = 0; i < n; i++) #define Fo(i, k, n) for (i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1) #define ll long long #define si(x) scanf("%d", &x) #define sl(x) scanf("%lld", &x) #define ss(s) scanf("%s", s) #define p...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
613
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int c1 = 0; int c2 = 0; int c3 = 0; int c4 = 0; string s; while (n--) { cin >> s; if (s == "AC") c1++; if (s == "WA") c2++; if (s == "TLE") c3++; if (s == "RE") c4++; } cout << "AC...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int c1 = 0; int c2 = 0; int c3 = 0; int c4 = 0; string s; while (n--) { cin >> s; if (s == "AC") c1++; if (s == "WA") c2++; if (s == "TLE") c3++; if (s == "RE") c4++; } cout << "AC...
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
185
n=int(input()) c1,c2,c3,c4=0,0,0,0 for i in range(n): s=input() if(s=='AC'): c1+=1 elif(s=='WA'): c2+=1 elif(s=='TLE'): c3+=1 else: c4+=1 print('AC X'+' '+str(c1)) print('WA X'+' '+str(c2)) print('TLE X'+' '+str(c3)) print('RE X'+' '+str(c4))
n=int(input()) c1,c2,c3,c4=0,0,0,0 for i in range(n): s=input() if(s=='AC'): c1+=1 elif(s=='WA'): c2+=1 elif(s=='TLE'): c3+=1 else: c4+=1 print('AC x'+' '+str(c1)) print('WA x'+' '+str(c2)) print('TLE x'+' '+str(c3)) print('RE x'+' '+str(c4))
[["-", 3, 4, 0, 657, 31, 657, 31, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 31, 557, 0, 6]]
5
137
#include <iostream> using namespace std; int main() { // your code goes here int n; string s; cin >> n; int ac = 0, wa = 0, tle = 0, re = 0; while (n--) { cin >> s; if (s == "AC") ac++; else if (s == "WA") wa++; else if (s == "TLE") tle++; else re++; } cout <...
#include <iostream> using namespace std; int main() { // your code goes here int n; string s; cin >> n; int ac = 0, wa = 0, tle = 0, re = 0; while (n--) { cin >> s; if (s == "AC") ac++; else if (s == "WA") wa++; else if (s == "TLE") tle++; else re++; } cout <...
[["-", 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
131
n = int(input()) lol=[] for _ in range(n): lol.append(input()) print('AC X ',lol.count('AC')) print('WA X ',lol.count('WA')) print('TLE X ',lol.count('TLE')) print('RE X ',lol.count('RE'))
n = int(input()) lol=[] for _ in range(n): lol.append(input()) print('AC x ',lol.count('AC')) print('WA x ',lol.count('WA')) print('TLE x ',lol.count('TLE')) print('RE x ',lol.count('RE'))
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
88
import collections n = int(input()) case = list(input() for _ in range(n)) cn = collections.Counter(case) print(cn) print("AC x " + str(cn["AC"])) print("WA x " + str(cn["WA"])) print("TLE x " + str(cn["TLE"])) print("RE x " + str(cn["RE"]))
import collections n = int(input()) case = list(input() for _ in range(n)) cn = collections.Counter(case) print("AC x " + str(cn["AC"])) print("WA x " + str(cn["WA"])) print("TLE x " + str(cn["TLE"])) print("RE x " + str(cn["RE"]))
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24]]
5
101
n=int(input()) ans=[0,0,0,0] for i in range(n): a=str(input()) if a=="AC": ans[0]+=1 elif a=="WA": ans[1]+=1 elif a=="TLE": ans[2]+=1 else: ans[3]+=0 print("AC x "+str(ans[0])) print("WA x "+str(ans[1])) print("TLE x "+str(ans[2])) print("RE x "+str(ans[3]))
n=int(input()) ans=[0,0,0,0] for i in range(n): a=str(input()) if a=="AC": ans[0]+=1 elif a=="WA": ans[1]+=1 elif a=="TLE": ans[2]+=1 else: ans[3]+=1 print("AC x "+str(ans[0])) print("WA x "+str(ans[1])) print("TLE x "+str(ans[2])) print("RE x "+str(ans[3]))
[["-", 75, 76, 8, 196, 0, 1, 0, 677, 12, 612], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 12, 612]]
5
138
n = gets.to_i s = [] n.times do s.push gets.chomp end p s c = s.tally p c puts "AC x " + (c["AC"] || 0).to_s puts "WA x " + (c["WA"] || 0).to_s puts "TLE x " + (c["TLE"] || 0).to_s puts "RE x " + (c["RE"] || 0).to_s
n = gets.to_i s = [] n.times do s.push gets.chomp end c = s.tally puts "AC x " + (c["AC"] || 0).to_s puts "WA x " + (c["WA"] || 0).to_s puts "TLE x " + (c["TLE"] || 0).to_s puts "RE x " + (c["RE"] || 0).to_s
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 22]]
4
97
N = int(input()) S = [input() for i in range(N)] ac = S.count('AC') wa = S.count('WA') tle = S.count('TLE') re = S.count('RE') print('AC x',ac()) print('WA x',wa) print('TLE x',tle) print('RE x',re)
N = int(input()) S = [input() for i in range(N)] ac = S.count('AC') wa = S.count('WA') tle = S.count('TLE') re = S.count('RE') print('AC x',ac) print('WA x',wa) print('TLE x',tle) print('RE x',re)
[["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
96
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" #define si(a) scanf("%d", &a) #define si2(a, b) scanf("%d%d", &a, &b) #define si3(a, b, c) scanf("%d%d%d", &a, &b, &c) #define sl(a) scanf("%lld", &a) #define sl2(a, b) scanf("%lld%lld", &a, &b) #define sl3(a, b, c) scanf("%lld%lld%lld...
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" #define si(a) scanf("%d", &a) #define si2(a, b) scanf("%d%d", &a, &b) #define si3(a, b, c) scanf("%d%d%d", &a, &b, &c) #define sl(a) scanf("%lld", &a) #define sl2(a, b) scanf("%lld%lld", &a, &b) #define sl3(a, b, c) scanf("%lld%lld%lld...
[["-", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6], ["+", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6]]
1
199
#include <algorithm> #include <cctype> #include <cinttypes> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <set> #include <stack> #include <utility> #include <vector> using namespace std; typedef long long ll; #define ceil(a, b) (!(a % b) ? a / b : a / b + 1) #define all(a) (a).b...
#include <algorithm> #include <cctype> #include <cinttypes> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <set> #include <stack> #include <utility> #include <vector> using namespace std; typedef long long ll; #define ceil(a, b) (!(a % b) ? a / b : a / b + 1) #define all(a) (a).b...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
237
#include <bits/stdc++.h> using namespace std; #define ll long long int #define ff first #define ss second #define pb push_back #define endl "\n" #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NUL...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define ff first #define ss second #define pb push_back #define endl "\n" #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NUL...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
192
N = int(input()) ans = {'AC':0,'WA':0,'TLE':0,'RE':0} for i in range(N): a = input() if a in ans.keys(): ans[a] +=1 else: ans[a] = 1 for k,v in ans.items(): print('{} × {}'.format(k,v))
N = int(input()) ans = {'AC':0,'WA':0,'TLE':0,'RE':0} for i in range(N): a = input() if a in ans.keys(): ans[a] +=1 else: ans[a] = 1 for k,v in ans.items(): print('{} x {}'.format(k,v))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
95
#pragma GCC optimize("Ofast") #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int n, ac = 0, wa = 0, tle = 0, re = 0; string s; cin >> n; while (n--) { cin >> s; if (s == "AC") ac++; else if (s == "WA") wa++; else if (s == "TLE") ...
#pragma GCC optimize("Ofast") #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int n, ac = 0, wa = 0, tle = 0, re = 0; string s; cin >> n; while (n--) { cin >> s; if (s == "AC") ac++; else if (s == "WA") wa++; else if (s == "TLE") ...
[["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]]
1
149
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int ans[] = new int[4]; for (int i = 0; i < N; i++) { String S = sc.next(); if (S.equals("AC")) { ans...
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int ans[] = new int[4]; for (int i = 0; i < N; i++) { String S = sc.next(); if (S.equals("AC")) { ans...
[["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]]
3
226
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; int ac = 0, wa = 0, tle = 0, re = 0; for (int i = 0; i < N; i++) { string verdict; cin >> verdict; if (verdict == "AC") { ac++; } else if (verdict == "WA") { wa++; } else if (verdict == "TLE") { t...
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; int ac = 0, wa = 0, tle = 0, re = 0; for (int i = 0; i < N; i++) { string verdict; cin >> verdict; if (verdict == "AC") { ac++; } else if (verdict == "WA") { wa++; } else if (verdict == "TLE") { t...
[["-", 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; #define ll long long #define pb push_back #define fori(a, b) for (int i = a; i < b; i++) #define forj(a, b) for (int j = a; j < b; j++) #define ford(b, a) for (int i = b; i >= a; i--) typedef pair<int, int> pi; #define PI 3.14159265359 long long mod = 1000000007; // int co...
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define fori(a, b) for (int i = a; i < b; i++) #define forj(a, b) for (int j = a; j < b; j++) #define ford(b, a) for (int i = b; i >= a; i--) typedef pair<int, int> pi; #define PI 3.14159265359 long long mod = 1000000007; // int co...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
301
#include <bits/stdc++.h> using namespace std; using l1 = long long; #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { int n; cin >> n; int ans[4]; rep(i, 4) ans[i] = 0; rep(i, n) { string s; cin >> s; if (s == "AC") { ans[0]++; } else if (s == "WA") { ans[1]++; } ...
#include <bits/stdc++.h> using namespace std; using l1 = long long; #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { int n; cin >> n; int ans[4]; rep(i, 4) ans[i] = 0; rep(i, n) { string s; cin >> s; if (s == "AC") { ans[0]++; } else if (s == "WA") { ans[1]++; } ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
189
#include <bits/stdc++.h> using namespace std; int main() { long int n, ac = 0, tle = 0, wa = 0, re = 0; string s; cin >> n; while (n--) { cin >> s; if (s == "AC") ac++; else if (s == "RE") re++; else if (s == "WA") wa++; else tle++; } cout << "AC X " << ac << endl...
#include <bits/stdc++.h> using namespace std; int main() { long int n, ac = 0, tle = 0, wa = 0, re = 0; string s; cin >> n; while (n--) { cin >> s; if (s == "AC") ac++; else if (s == "RE") re++; else if (s == "WA") wa++; else tle++; } cout << "AC x " << ac << endl...
[["-", 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> // typedef long long int ll; using namespace std; void solve() { int n; cin >> n; int cac = 0; int cwa = 0; int ctle = 0; int cre = 0; for (int i = 0; i < n; ++i) { string s; cin >> s; if (s == "AC") { cac++; } else if (s == "RE") { cre++; } else if...
#include <bits/stdc++.h> // typedef long long int ll; using namespace std; void solve() { int n; cin >> n; int cac = 0; int cwa = 0; int ctle = 0; int cre = 0; for (int i = 0; i < n; ++i) { string s; cin >> s; if (s == "AC") { cac++; } else if (s == "RE") { cre++; } else if...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
172
n = int(input()) ac = "AC" wa = "WA" tle = "TLE" re = "RE" ans = [0, 0, 0, 0] for _ in range(n): a = input() if (a == ac): ans[0] += 1 if (a == wa): ans[1] += 1 if (a == tle): ans[2] += 1 if (a == re): ans[3] += 1 print("AC x ",ans[0]) print("WA x ",ans[1]) print("T...
n = int(input()) ac = "AC" wa = "WA" tle = "TLE" re = "RE" ans = [0, 0, 0, 0] for _ in range(n): a = input() if (a == ac): ans[0] += 1 if (a == wa): ans[1] += 1 if (a == tle): ans[2] += 1 if (a == re): ans[3] += 1 print("AC x ",ans[0]) print("WA x ",ans[1]) print("T...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
148
n = int(input()) hashmap = { 'AC' : 0, 'WA' : 0, 'TLE': 0, 'RE' : 0 } while n > 0: t = input() hashmap[t] = hashmap.get(t, 0) + 1 n -= 1 for key, val in hashmap.items(): print(key + "x" + str(val))
n = int(input()) import collections # hashmap = collections.OrderedDict() hashmap = { 'AC' : 0, 'WA' : 0, 'TLE': 0, 'RE' : 0 } while n > 0: t = input() hashmap[t] = hashmap.get(t, 0) + 1 n -= 1 for key, val in hashmap.items(): print(key + " x " + str(val))
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]]
5
87
N=int(input()) result_list = ['AC', 'WA', 'TLE', 'RE'] count_list = [0, 0, 0, 0] for i in range(N): S = input() count_list[result_list.index(S)] = count_list[result_list.index(S)] + 1 for i in range(4): print(result_list[i]+' × '+str(count_list[i]))
N=int(input()) result_list = ['AC', 'WA', 'TLE', 'RE'] count_list = [0, 0, 0, 0] for i in range(N): S = input() count_list[result_list.index(S)] = count_list[result_list.index(S)] + 1 for i in range(4): print(result_list[i]+' x '+str(count_list[i]))
[["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]]
5
99
import collections,sys def I(): return int(sys.stdin.readline().rstrip()) def S(): return sys.stdin.readline().rstrip() N = I() S = [S() for _ in range(N)] counter_S = collections.defaultdict(int) for s in S: counter_S[s] += 1 print(counter_S) for ans in ['AC','WA','TLE','RE']: print('{0} x {1}'.format(ans,coun...
import collections,sys def I(): return int(sys.stdin.readline().rstrip()) def S(): return sys.stdin.readline().rstrip() N = I() S = [S() for _ in range(N)] counter_S = collections.defaultdict(int) for s in S: counter_S[s] += 1 for ans in ['AC','WA','TLE','RE']: print('{0} x {1}'.format(ans,counter_S[ans])) prin...
[["-", 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
123
/* मनस्वी म्रियते कामं कार्पण्यं न तु गच्छति । अपि निर्वाणमायाति नानलो याति शीतताम् ॥ */ #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; #define mod 1000000007 #define pb push_back #define mp make_pair #def...
/* मनस्वी म्रियते कामं कार्पण्यं न तु गच्छति । अपि निर्वाणमायाति नानलो याति शीतताम् ॥ */ #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; #define mod 1000000007 #define pb push_back #define mp make_pair #def...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
312
#include <bits/stdc++.h> using namespace std; #define fread freopen("in.txt", "r", stdin) #define fwrite freopen("out.txt", "w", stdout) int main() { int n; string str; scanf("%d", &n); getchar(); int A, W, T, R; A = W = T = R = 0; for (int i = 0; i < n; i++) { cin >> str; if (str == "AC") ...
#include <bits/stdc++.h> using namespace std; #define fread freopen("in.txt", "r", stdin) #define fwrite freopen("out.txt", "w", stdout) int main() { int n; string str; scanf("%d", &n); getchar(); int A, W, T, R; A = W = T = R = 0; for (int i = 0; i < n; i++) { cin >> str; if (str == "AC") ...
[["-", 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
167
n = int(input()) j = list() for _ in range(n): string = input() j.append(string) ac = j.count("AC") wa = j.count("WA") tel = j.count("TEL") re = j.count("RE") print("AC x " + str(ac)) print("WA x " + str(wa)) print("TLE x " + str(tel)) print("RE x " + str(re))
n = int(input()) j = list() for _ in range(n): string = input() j.append(string) ac = j.count("AC") wa = j.count("WA") tle = j.count("TLE") re = j.count("RE") 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, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["-", 3, 4, 0, 657, 12, 652, 3, 4, 0, 22], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 22]]
5
116
d={'AC':0,'WA':0,'TLE':0,'RE':0} for _ in range(int(input())): d[input()]+=1 print('AC X',d['AC']) print('WA X',d['WA']) print('TLE X',d['TLE']) print('RE X',d['RE'])
d={'AC':0,'WA':0,'TLE':0,'RE':0} for _ in range(int(input())): d[input()]+=1 print('AC x',d['AC']) print('WA x',d['WA']) print('TLE x',d['TLE']) print('RE x',d['RE'])
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
100
#include <bits/stdc++.h> using namespace std; inline int read() { int x = 0; bool f = false; char c = getchar(); while (!isdigit(c)) f |= c == '-', c = getchar(); while (isdigit(c)) x = (x << 1) + (x << 3) + (c ^ 48), c = getchar(); return f ? ~x + 1 : x; } int main() { ios_base::sync_with_stdio(f...
#include <bits/stdc++.h> using namespace std; inline int read() { int x = 0; bool f = false; char c = getchar(); while (!isdigit(c)) f |= c == '-', c = getchar(); while (isdigit(c)) x = (x << 1) + (x << 3) + (c ^ 48), c = getchar(); return f ? ~x + 1 : x; } int main() { ios_base::sync_with_stdio(f...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 24], ["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 25], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 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...
1
229
#include <bits/stdc++.h> using namespace std; int main() { map<string, int> m; int n, i; cin >> n; for (i = 0; i < n; i++) { string s; cin >> s; m[s]++; } cout << "AC" << " " << 'x ' << m["AC"] << endl; cout << "WA" << " " << 'x ' << m["WA"] << endl; cout << "TLE" << " ...
#include <bits/stdc++.h> using namespace std; int main() { map<string, int> m; int n, i; cin >> n; for (i = 0; i < n; i++) { string s; cin >> s; m[s]++; } cout << "AC" << " " << "x " << m["AC"] << endl; cout << "WA" << " " << "x " << m["WA"] << endl; cout << "TLE...
[["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
152
#include <bits/stdc++.h> typedef long long ll; using namespace std; void solve() { int n; cin >> n; string s; int ac = 0, wa = 0, tle = 0, re = 0; for (int i = 0; i < n; ++i) { cin >> s; if (s == "AC") ac++; else if (s == "TLE") tle++; else if (s == "WA") wa++; else ...
#include <bits/stdc++.h> typedef long long ll; using namespace std; void solve() { int n; cin >> n; string s; int ac = 0, wa = 0, tle = 0, re = 0; for (int i = 0; i < n; ++i) { cin >> s; if (s == "AC") ac++; else if (s == "TLE") tle++; else if (s == "WA") wa++; else ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
184
n=int(input()) ac=0 wa=0 tle=0 re=0 for i in range(n): x=input() if (x=="RE"): re+=1 if (x=="WA"): wa+=1 if (x=="TLE"): tle+=1 if (x=="AC"): ac+=1 print("AC *",ac) print("WA *",wa) print("TLE *",tle) print("RE *",re)
n=int(input()) ac=0 wa=0 tle=0 re=0 for i in range(n): x=input() if (x=="RE"): re+=1 if (x=="WA"): wa+=1 if (x=="TLE"): tle+=1 if (x=="AC"): ac+=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
113
N = int(input()) judge = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0} for i in range(N): judge[input()] += 1 print('AC X ' + str(judge['AC'])) print('WA X ' + str(judge['WA'])) print('TLE X ' + str(judge['TLE'])) print('RE X ' + str(judge['RE']))
N = int(input()) judge = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0} for i in range(N): judge[input()] += 1 print('AC x ' + str(judge['AC'])) print('WA x ' + str(judge['WA'])) print('TLE x ' + str(judge['TLE'])) print('RE x ' + str(judge['RE']))
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
115
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { // write your code here Scanner src = new Scanner(System.in); Map<String, Integer> map = new HashMap<String, Integer>(); map.put("AC", 0); map.put("WA", 0); ...
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { // write your code here Scanner src = new Scanner(System.in); Map<String, Integer> map = new HashMap<String, Integer>(); map.put("AC", 0); map.put("WA", 0); ...
[["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]]
3
241