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()) s = [] for i in range(n): s.append(input()) result_set = ['AC','WA','TLE','RE'] for result in result_set: ans = result + ' × ' + str(s.count(result)) print(ans)
n = int(input()) s = [] for i in range(n): s.append(input()) result_set = ['AC','WA','TLE','RE'] for result in result_set: ans = result + ' x ' + str(s.count(result)) print(ans)
[["-", 0, 662, 12, 657, 31, 657, 12, 557, 0, 6], ["+", 0, 662, 12, 657, 31, 657, 12, 557, 0, 6]]
5
73
// According to all known laws of aviation, there is no way that a bee should be // able to fly. // Its wings are too small to get its fat little body off the ground. The bee, // of course, flies anyway. Because bees don't care what humans think is // impossible. #include <bits/stdc++.h> #define FAST_IO ...
// According to all known laws of aviation, there is no way that a bee should be // able to fly. // Its wings are too small to get its fat little body off the ground. The bee, // of course, flies anyway. Because bees don't care what humans think is // impossible. #include <bits/stdc++.h> #define FAST_IO ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
207
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int t = 1; // cin>>t; while (t--) { 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 == "AC") a++; else if (s == "TLE") b...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int t = 1; // cin>>t; while (t--) { 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 == "AC") a++; else if (s == "TLE") b...
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
159
n = int(input()) stat2id = { "AC": 0, "WA": 1, "TLE": 2, "RE": 3, } id2stat = {i:s for s,i in stat2id.items()} count = [0 for _ in range(4)] for i in range(n): s = input() count[s] += 1 for i, c in enumerate(count): print(id2stat[i], "x", c)
n = int(input()) stat2id = { "AC": 0, "WA": 1, "TLE": 2, "RE": 3, } id2stat = {i:s for s,i in stat2id.items()} count = [0 for _ in range(4)] for i in range(n): s = input() count[stat2id[s]] += 1 for i, c in enumerate(count): print(id2stat[i], "x", c)
[["+", 0, 1, 0, 677, 31, 206, 206, 206, 51, 22], ["+", 0, 1, 0, 677, 31, 206, 206, 206, 0, 70], ["+", 0, 1, 0, 677, 31, 206, 206, 206, 0, 73]]
5
107
#include <iostream> #include <stdio.h> #include <string> using namespace std; int main() { int N; cin >> N; string a[100010], s[4] = {"AC", "WA", "TEL", "RE"}; int count[4] = {0}; for (int i = 0; i < N; i++) { cin >> a[i]; if (a[i] == "AC") { count[0]++; } else if (a[i] == "WA") { coun...
#include <iostream> #include <stdio.h> #include <string> using namespace std; int main() { int N; cin >> N; string a[100010], s[4] = {"AC", "WA", "TLE", "RE"}; int count[4] = {0}; for (int i = 0; i < N; i++) { cin >> a[i]; if (a[i] == "AC") { count[0]++; } else if (a[i] == "WA") { coun...
[["-", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6], ["+", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6]]
1
187
#include <iostream> #include <map> using namespace std; int main() { int n; map<string, int> bag; string str; string labels[] = {"AC", "WA", "TLE", "RTE"}; cin >> n; while (n--) { cin >> str; bag[str]++; } for (int i = 0; i < 4; i++) { string key = labels[i]; cout << key << " x " <<...
#include <iostream> #include <map> using namespace std; int main() { int n; map<string, int> bag; string str; string labels[] = {"AC", "WA", "TLE", "RE"}; cin >> n; while (n--) { cin >> str; bag[str]++; } for (int i = 0; i < 4; i++) { string key = labels[i]; cout << key << " x " << ...
[["-", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6], ["+", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6]]
1
111
#include <bits/stdc++.h> using namespace std; #define INF 100000000 #define REP(i, n) for (int(i) = 0; (i) < (n); (i)++) #define rep(i, n) for (int(i) = 1; (i) <= (n); (i)++) typedef pair<int, int> P; typedef long long ll; int main() { int N; cin >> N; map<string, int> mp; REP(i, N) { string str; cin >...
#include <bits/stdc++.h> using namespace std; #define INF 100000000 #define REP(i, n) for (int(i) = 0; (i) < (n); (i)++) #define rep(i, n) for (int(i) = 1; (i) <= (n); (i)++) typedef pair<int, int> P; typedef long long ll; int main() { int N; cin >> N; map<string, int> mp; REP(i, N) { string str; cin >...
[["-", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6], ["+", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6]]
1
160
nums = int(input()) S = {'AC':0, 'WA':0, 'TLE':0, 'RE':0} for i in nums: input_str = input() if input_str in S: S[input_str] += 1 print('AC x %d' % S['AC']) print('WA x %d' % S['WA']) print('TLE x %d' % S['TLE']) print('RE x %d' % S['RE'])
nums = int(input()) S = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0} for i in range(0, nums): input_str = input() if input_str in S: S[input_str] += 1 print('AC x %d' % S['AC']) print('WA x %d' % S['WA']) print('TLE x %d' % S['TLE']) print('RE x %d' % S['RE'])
[["+", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 25]]
5
108
n = int(input()) s = [input() for i in range(n)] print(n, s) 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()) 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))
[["-", 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, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
160
#include <iostream> using namespace std; int main() { unsigned long long int t; cin >> t; unsigned long long int ac, tle, wa, re; ac = tle = wa = re = 0; string a; while (t--) { cin >> a; if (a == "AC") ac++; if (a == "TLE") tle++; if (a == "WA") wa++; if (a == "RE") ...
#include <iostream> using namespace std; int main() { unsigned long long int t; cin >> t; unsigned long long int ac, tle, wa, re; ac = tle = wa = re = 0; string a; while (t--) { cin >> a; if (a == "AC") ac++; if (a == "TLE") tle++; if (a == "WA") wa++; if (a == "RE") ...
[["-", 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
147
#include <bits/stdc++.h> using namespace std; int main() { int i, n, ac = 0, wa = 0, tle = 0, re = 0; char **arr; cin >> n; arr = new char *[n]; for (i = 0; i < n; i++) { arr[i] = new char[4]; cin >> arr[i]; if (arr[i][0] == 'A') ac++; else if (arr[i][0] == 'W') wa++; else i...
#include <bits/stdc++.h> using namespace std; int main() { int i, n, ac = 0, wa = 0, tle = 0, re = 0; char **arr; cin >> n; arr = new char *[n]; for (i = 0; i < n; i++) { arr[i] = new char[4]; cin >> arr[i]; if (arr[i][0] == 'A') ac++; else if (arr[i][0] == 'W') wa++; else i...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
206
N = int(input()) S = [input() for i in range(N)] for v in ['AC', 'WA', 'TLE', 'RE']: print('{0} × {1}'.format(v, s.count(v)))
N = int(input()) s = [input() for i in range(N)] for v in ['AC', 'WA', 'TLE', 'RE']: print('{0} x {1}'.format(v, s.count(v)))
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
61
N = int(input()) S = [] for x in range(N): S.append(input()) # print(S) L = 0 K = 0 J = 0 H = 0 for i in range(N): if S[i] == "AC": L += 1 if S[i] == "WA": K += 1 if S[i] == "TLE": J += 1 if S[i] == "RE": H += 0 print("AC x "+str(L)) print("WA x "+str(K)) print("TLE x "+str(J)) print("...
N = int(input()) S = [] for x in range(N): S.append(input()) # print(S) L = 0 K = 0 J = 0 H = 0 for i in range(N): if S[i] == "AC": L += 1 if S[i] == "WA": K += 1 if S[i] == "TLE": J += 1 if S[i] == "RE": H += 1 print("AC x "+str(L)) print("WA x "+str(K)) print("TLE x "+str(J)) print("...
[["-", 0, 57, 64, 196, 0, 1, 0, 677, 12, 612], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 12, 612]]
5
145
#include <bits/stdc++.h> using namespace std; int main() { // your code goes here int n; cin >> n; int ac = 0, tle = 0, re = 0, wa = 0; while (n--) { string s; cin >> s; if (s[0] == 'A') ac++; if (s[0] == 'T') tle++; if (s[0] == 'W') wa++; if (s[0] == 'R') re+...
#include <bits/stdc++.h> using namespace std; int main() { // your code goes here int n; cin >> n; int ac = 0, tle = 0, re = 0, wa = 0; while (n--) { string s; cin >> s; if (s[0] == 'A') ac++; if (s[0] == 'T') tle++; if (s[0] == 'W') wa++; if (s[0] == 'R') re+...
[["-", 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
196
n=int(input()) for i in range(n): l.append(input()) a=0 b=0 c=0 d=0 for i in l: if i=='AC': a+=1 elif i=='WA': b+=1 elif i=='TLE': c+=1 else: d+=1 print('AC x',a) print('WA x',b) print('TLE x',c) print('RE x',d)
n=int(input()) l=[] for i in range(n): l.append(input()) a=0 b=0 c=0 d=0 for i in l: if i=='AC': a+=1 elif i=='WA': b+=1 elif i=='TLE': c+=1 else: d+=1 print('AC x',a) print('WA x',b) print('TLE x',c) print('RE x',d)
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 70], ["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 73]]
5
108
#include <stdio.h> #include <string.h> int main(void) { char buffer[131072], *p; size_t i = 0; int ac_count = 0; int wa_count = 0; int tle_count = 0; int re_count = 0; // input if (scanf("%131072[]", buffer) != 1) { return 1; } // output for (i = 0, p = strtok(buffer, "\n"); p; ++i, p = str...
#include <stdio.h> #include <string.h> int main(void) { char buffer[1000000], *p; size_t i = 0; int ac_count = 0; int wa_count = 0; int tle_count = 0; int re_count = 0; // input if (scanf("%1000000[\x01-\xff]", buffer) != 1) { return 1; } // output for (i = 0, p = strtok(buffer, "\n"); p; +...
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 0, 16, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 16, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 16, 31, 2, 3, 4, 0, 5, 0, 44]]
0
217
//--------------------------------------// #include <bits/stdc++.h> //-------------------------------------// #define faster \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
//--------------------------------------// #include <bits/stdc++.h> //-------------------------------------// #define faster \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]]
1
230
s = int(input()) ac = 0 wa = 0 tle = 0 re = 0 for i in range(1,s): ch = input() if ch == "AC": ac += 1 elif ch == "WA": wa += 1 elif ch == "TLE": tle +=1 elif ch == "RE": re += 1 print("AC x "+str(ac)) print("WA x "+str(wa)) print("TLE x "+str(tle)) print("RE x "+str...
s = int(input()) ac = 0 wa = 0 tle = 0 re = 0 for i in range(1,s+1): ch = input() if ch == "AC": ac += 1 elif ch == "WA": wa += 1 elif ch == "TLE": tle +=1 elif ch == "RE": re += 1 print("AC x "+str(ac)) print("WA x "+str(wa)) print("TLE x "+str(tle)) print("RE x "+s...
[["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
119
#include <bits/stdc++.h> typedef long long int ll; using namespace std; int main() { ll t; cin >> t; unordered_map<string, ll> mp; for (ll i = 0; i < t; i++) { string s; cin >> s; mp[s]++; } cout << "AC X " << mp["AC"] << endl; cout << "WA X " << mp["WA"] << endl; cout << "TLE X " << mp["TL...
#include <bits/stdc++.h> typedef long long int ll; using namespace std; int main() { ll t; cin >> t; unordered_map<string, ll> mp; for (ll i = 0; i < t; i++) { string s; cin >> s; mp[s]++; } cout << "AC x " << mp["AC"] << endl; cout << "WA x " << mp["WA"] << endl; cout << "TLE x " << mp["TL...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
125
N = int(input()) status={'AC':0, 'WA':0, 'TLE':0, 'RE':0} results = [input() for n in range(N)] for result in results: if result in status.keys(): status[result] += 1 for k, v in status.items(): print('{} × {}'.format(k, v))
N = int(input()) status={'AC':0, 'WA':0, 'TLE':0, 'RE':0} results = [input() for n in range(N)] for result in results: if result in status.keys(): status[result] += 1 for k, v in status.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
93
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll t; cin >> t; ll ac = 0, wa = 0, tle = 0, re = 0; while (t--) { string s; cin >> s; if (s == "AC") { ac++; } else if (s == "WA") { wa++; } else if (s == "TLE") { tle++; } else if (s == "RE...
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll t; cin >> t; ll ac = 0, wa = 0, tle = 0, re = 0; while (t--) { string s; cin >> s; if (s == "AC") { ac++; } else if (s == "WA") { wa++; } else if (s == "TLE") { tle++; } else if (s == "RE...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
148
N=int(input()) S=[input() for i in range(N)] print("AC x" + str(S.count("AC"))) print("WA x" + str(S.count("WA"))) print("TLE x" + str(S.count("TLE"))) print("RE x" + str(S.count("RE")))
N=int(input()) S=[input() for i in range(N)] print("AC x " + str(S.count("AC"))) print("WA x " + str(S.count("WA"))) print("TLE x " + str(S.count("TLE"))) print("RE x " + str(S.count("RE")))
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
94
#include <iostream> #include <math.h> #include <string.h> using namespace std; string a[4] = {"AC", "TLE", "WA", "RE"}; int main(int argc, char const *argv[]) { int n; string str; int ans[4] = {0}; cin >> n; for (int i = 0; i < n; i++) { cin >> str; for (int j = 0; j < 4; j++) { if (str == a[j])...
#include <iostream> #include <math.h> #include <string.h> using namespace std; string a[4] = {"AC", "WA", "TLE", "RE"}; int main(int argc, char const *argv[]) { int n; string str; int ans[4] = {0}; cin >> n; for (int i = 0; i < n; i++) { cin >> str; for (int j = 0; j < 4; j++) { if (str == a[j])...
[["-", 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, 103, 0, 104], ["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["-", 31, 16, 31, 16, 12, 103, 0, 42, 0, 22], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 7...
1
160
#include <bits/stdc++.h> using namespace std; int main() { int n, a = 0, b = 0, c = 0, d = 0; cin >> n; string s; for (int i = 0; i < n; i++) { cin >> s; if (s == "AC") a++; else if (s == "WA") b++; else if (s == "TLE") c++; else if (s == "RE") d++; } cout << "AC ...
#include <bits/stdc++.h> using namespace std; int main() { int n, a = 0, b = 0, c = 0, d = 0; cin >> n; string s; for (int i = 0; i < n; i++) { cin >> s; if (s == "AC") a++; else if (s == "WA") b++; else if (s == "TLE") c++; else if (s == "RE") d++; } cout << "AC ...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
135
#include <stdio.h> #include <string.h> int main(void) { int count; scanf("%d", &count); int ac = 0; int wa = 0; int tle = 0; int re = 0; for (int i = 0; i < count; i++) { char input[4]; scanf("%s", input); if (strcmp(input, "AC") == 0) { ac++; continue; } if (strcmp(in...
#include <stdio.h> #include <string.h> int main(void) { int count; scanf("%d", &count); int ac = 0; int wa = 0; int tle = 0; int re = 0; for (int i = 0; i < count; i++) { char input[4]; scanf("%s", input); if (strcmp(input, "AC") == 0) { ac++; continue; } if (strcmp(in...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
196
data = {'AC':0,'WA':0,'TLE':0,'RE':0} N = int(input()) for i in range(N): inputSTR = input() data[inputSTR] = data[inputSTR] + 1 for key,value in data.items(): print(key + ' × ' + str(value))
data = {'AC':0,'WA':0,'TLE':0,'RE':0} N = int(input()) for i in range(N): inputSTR = input() data[inputSTR] = data[inputSTR] + 1 for key,value in data.items(): print(key + ' x ' + str(value))
[["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]]
5
83
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int count[] = new int[4]; String s[] = new String[N]; for (int i = 0; i < N; i++) { s[i] = sc.nextLine(); switch (s[i]) { case "AC": ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); sc.nextLine(); // System.out.println(); int count[] = new int[4]; String s[] = new String[N]; for (int i = 0; i < N; i++) { s[i] = sc.nextLine(...
[["+", 0, 195, 8, 196, 0, 1, 0, 492, 500, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 492, 0, 131], ["+", 0, 195, 8, 196, 0, 1, 0, 492, 141, 22], ["+", 8, 196, 0, 1, 0, 492, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 492, 3, 4, 0, 25], ["+", 8, 498, 0, 195, 8, 196, 0, 1, 0, 35]]
3
218
#include <stdio.h> int a, w, t, r; int main() { int n; char s[100]; scanf("%d", &n); while (n--) { scanf("%s", s); if (s[0] == 'A') a++; if (s[0] == 'W') w++; if (s[0] == 'T') t++; if (s[0] == 'R') r++; } printf("AC x %d\nWa x %d\nTLE x %d\nRE x %d\n", a, w, t, r)...
#include <stdio.h> int a, w, t, r; int main() { int n; char s[100]; scanf("%d", &n); while (n--) { scanf("%s", s); if (s[0] == 'A') a++; if (s[0] == 'W') w++; if (s[0] == 'T') t++; if (s[0] == 'R') r++; } printf("AC x %d\nWA x %d\nTLE x %d\nRE x %d\n", a, w, t, r)...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
130
#include <algorithm> #include <assert.h> #include <cmath> #include <cstdio> #include <fstream> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <unordered_map> #include <vector> #defi...
#include <algorithm> #include <assert.h> #include <cmath> #include <cstdio> #include <fstream> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <unordered_map> #include <vector> #defi...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
266
N = [] L=[input() for i in range(N)] 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")))
N = int(input()) L=[input() for i in range(N)] 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")))
[["-", 0, 656, 0, 1, 0, 662, 12, 634, 0, 70], ["-", 0, 656, 0, 1, 0, 662, 12, 634, 0, 73], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 0,...
5
106
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a = 0, b = 0, c = 0, d = 0; string p = "AC", q = "WA", r = "TLE", s1 = "TLE"; while (n--) { string s; cin >> s; if (s.compare(p) == 0) a++; else if (s.compare(q) == 0) b++; else if (s.compare(r) ==...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a = 0, b = 0, c = 0, d = 0; string p = "AC", q = "WA", r = "TLE", s1 = "RE"; while (n--) { string s; cin >> s; if (s.compare(p) == 0) a++; else if (s.compare(q) == 0) b++; else if (s.compare(r) == ...
[["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6]]
1
179
dic = {'AC' => 0, 'WA' => 0, 'TLE' => 0, 'RE' => 0 } N = gets.to_i 1.times do s = gets.chomp dic[s] += 1 end dic.each_pair do |key, val| puts "#{key} x #{val}" end
dic = {'AC' => 0, 'WA' => 0, 'TLE' => 0, 'RE' => 0 } N = gets.to_i N.times do s = gets.chomp dic[s] += 1 end dic.each_pair do |key, val| puts "#{key} x #{val}" end
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 486, 612], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 486, 743]]
4
68
#pragma GCC optimize("Ofast") #include <stdio.h> int main(void) { int n = 0; char c = getchar_unlocked(); while (c <= '9' && c >= '0') { n = (n << 1) + (n << 3) + c - '0'; c = getchar_unlocked(); } int a = 0, b = 0, e = 0, d = 0; while (--n) { switch (getchar_unlocked()) { case 'A': ++...
#pragma GCC optimize("Ofast") #include <stdio.h> int main(void) { int n = 0; char c = getchar_unlocked(); while (c <= '9' && c >= '0') { n = (n << 1) + (n << 3) + c - '0'; c = getchar_unlocked(); } int a = 0, b = 0, e = 0, d = 0; while (--n) { switch (getchar_unlocked()) { case 'A': ++...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
211
#pragma GCC optimize("Ofast") #include <stdio.h> int main(void) { int n = 0; char c = getchar_unlocked(); while (c <= '9' && c >= '0') { n = (n << 1) + (n << 3) + c - '0'; c = getchar_unlocked(); } int a = 0, b = 0, e = 0, d = 0; do { switch (getchar_unlocked()) { case 'A': ++a; ...
#pragma GCC optimize("Ofast") #include <stdio.h> int main(void) { int n = 0; char c = getchar_unlocked(); while (c <= '9' && c >= '0') { n = (n << 1) + (n << 3) + c - '0'; c = getchar_unlocked(); } int a = 0, b = 0, e = 0, d = 0; do { switch (getchar_unlocked()) { case 'A': ++a; ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
170
from collectinos import defaultdict d = defaultdict(int) N = int(input()) for i in range(N): d[input()] += 1 print(f"AC x {d['AC']}") print(f"WA x {d['WA']}") print(f"TLE x {d['TLE']}") print(f"RE x {d['RE']}")
from collections import defaultdict d = defaultdict(int) N = int(input()) for i in range(N): d[input()] += 1 print(f"AC x {d['AC']}") print(f"WA x {d['WA']}") print(f"TLE x {d['TLE']}") print(f"RE x {d['RE']}")
[["-", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22]]
5
90
#include <bits/stdc++.h> using namespace std; #define pb push_back #define ll long long int #define ff first #define ss second #define pi pair<ll, ll> int main() { ll n; cin >> n; map<string, ll> mp; string s; for (int i = 0; i < n; i++) { cin >> s; mp[s]++; } cout << "AC X " << mp["AC"] << "\...
#include <bits/stdc++.h> using namespace std; #define pb push_back #define ll long long int #define ff first #define ss second #define pi pair<ll, ll> int main() { ll n; cin >> n; map<string, ll> mp; string s; for (int i = 0; i < n; i++) { cin >> s; mp[s]++; } 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
139
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; #define ull unsigned long long int #define ll long long int #define pb push_back #define pii pair<int, int> #define F first #define S second #define vi vector<int> #define vli vector<ll> #define vii vector...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; #define ull unsigned long long int #define ll long long int #define pb push_back #define pii pair<int, int> #define F first #define S second #define vi vector<int> #define vli vector<ll> #define vii vector...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
410
#include <algorithm> #include <bits/stdc++.h> #include <cstdio> #include <cstring> #include <iostream> #include <string> using namespace std; const int MAX_N = int(1e6) + 10; const long long int MOD = 1e9 + 7; const long long int INF = 1e18; typedef long long int ll; typedef unsigned long long int llu; inline ll ...
#include <algorithm> #include <bits/stdc++.h> #include <cstdio> #include <cstring> #include <iostream> #include <string> using namespace std; const int MAX_N = int(1e6) + 10; const long long int MOD = 1e9 + 7; const long long int INF = 1e18; typedef long long int ll; typedef unsigned long long int llu; inline ll ...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
406
#include <iostream> #include <map> using namespace std; int main() { int frek[4] = {0}; int N; cin >> N; for (int i = 0; i < N; i++) { string s; cin >> s; if (s == "AC") ++frek[0]; if (s == "WA") ++frek[1]; if (s == "TLE") ++frek[2]; if (s == "RTE") ++frek[3]; }...
#include <iostream> #include <map> using namespace std; int main() { int frek[4] = {0}; int N; cin >> N; for (int i = 0; i < N; i++) { string s; cin >> s; if (s == "AC") ++frek[0]; if (s == "WA") ++frek[1]; if (s == "TLE") ++frek[2]; if (s == "RE") ++frek[3]; } ...
[["-", 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
170
#include <stdio.h> #include <string.h> int main() { int x; char contain[100]; int ac = 0, wa = 0, tle = 0, re = 0; scanf("%d", &x); for (int i = 0; i < x; i++) { scanf("%s", &contain); if (strcmp(contain, "AC") == 0) { ac = ac + 1; } else if (strcmp(contain, "WA") == 0) { wa = wa + 1;...
#include <stdio.h> #include <string.h> int main() { int x; char contain[5]; int ac = 0, wa = 0, tle = 0, re = 0; scanf("%d", &x); for (int i = 0; i < x; i++) { scanf("%s", &contain); if (strcmp(contain, "AC") == 0) { ac = ac + 1; } else if (strcmp(contain, "WA") == 0) { wa = wa + 1; ...
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
199
N = input() result = [] for i in range(0,(N)): A = input() if A: result.append(A) AC = result.count("AC") WA = result.count("WA") TLE = result.count("TLE") RE = result.count("RE") print(f"AC x {AC}\nWA x {WA}\nTLE x {TLE}\nRE x {RE}\n")
N = int(input()) result = [] for i in range(0,(N)): A = input() if A: result.append(A) AC = result.count("AC") WA = result.count("WA") TLE = result.count("TLE") RE = result.count("RE") print(f"AC x {AC}\nWA x {WA}\nTLE x {TLE}\nRE x {RE}\n")
[["+", 0, 656, 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
100
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; #define all(x) (x).begin(), (x).end() #define ub upper_bound #define lb lower_bound #define ins insert #define int long long #define endl '\n' #define ff first #define ss second #define ull unsigned long l...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; #define all(x) (x).begin(), (x).end() #define ub upper_bound #define lb lower_bound #define ins insert #define int long long #define endl '\n' #define ff first #define ss second #define ull unsigned long l...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
505
#include <iostream> using namespace std; int main() { int t = 0; cin >> t; int arr[4] = {0, 0, 0, 0}; while (t--) { string s; cin >> s; switch (s[0]) { case 'A': arr[0]++; break; case 'W': arr[1]++; break; case 'T': arr[2]++; break; case 'R': ...
#include <iostream> using namespace std; int main() { int t = 0; cin >> t; int arr[4] = {0, 0, 0, 0}; while (t--) { string s; cin >> s; switch (s[0]) { case 'A': arr[0]++; break; case 'W': arr[1]++; break; case 'T': arr[2]++; break; case 'R': ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
164
#include <bits/stdc++.h> #define REPI(x) for (int i = 0; i < x; i++) #define REPJ(x) for (int j = 0; j < x; j++) #define REPISE (s, e) for (int i = s, i < e; i++) #define REPJSE (s, e) for (int j = s, j < e; j++) using namespace std; int main() { int acnum, wanum, tlenum, renum, N; string b; acnum = 0; wan...
#include <bits/stdc++.h> #define REPI(x) for (int i = 0; i < x; i++) #define REPJ(x) for (int j = 0; j < x; j++) #define REPISE (s, e) for (int i = s, i < e; i++) #define REPJSE (s, e) for (int j = s, j < e; j++) using namespace std; int main() { int acnum, wanum, tlenum, renum, N; string b; acnum = 0; wan...
[["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]]
1
172
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ll n; cin >> n; map<string, int> mp; for (ll i = 0; i < n; i++) { string x; cin >> x; mp[x]++; cout << "AC" << " X " << mp["AC"] << endl; cout << "WA" << " X " << mp["WA"] << endl; cou...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ll n; cin >> n; map<string, int> mp; for (ll i = 0; i < n; i++) { string x; cin >> x; mp[x]++; } cout << "AC" << " x " << mp["AC"] << endl; cout << "WA" << " x " << mp["WA"] << endl; cout << "T...
[["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]]
1
138
#include <bits/stdc++.h> using namespace std; long long n, test, p[4]; string s, st[4]; int main() { ios_base::sync_with_stdio(0); cin.tie(0); // cin>>test; test = 1; st[0] = "AC"; st[1] = "WA"; st[2] = "TLE"; st[3] = "RE"; while (test--) { cin >> n; for (int i = 1; i <= n; i++) { cin >...
#include <bits/stdc++.h> using namespace std; long long n, test, p[4]; string s, st[4]; int main() { ios_base::sync_with_stdio(0); cin.tie(0); // cin>>test; test = 1; st[0] = "AC"; st[1] = "WA"; st[2] = "TLE"; st[3] = "RE"; while (test--) { cin >> n; for (int i = 1; i <= n; i++) { cin >...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
178
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define all(x) (x).begin(), (x).end() #define sz(a) (long long)((a).size()) const double pi = 3.14159265358979323846; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); ll n; cin >> n; ll i, j; v...
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define all(x) (x).begin(), (x).end() #define sz(a) (long long)((a).size()) const double pi = 3.14159265358979323846; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); ll n; cin >> n; ll i, j; v...
[["-", 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
179
#include <bits/stdc++.h> using namespace std; #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ordered_set \ tree<int, null_type, less<int>, rb_tree_tag, \ ...
#include <bits/stdc++.h> using namespace std; #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ordered_set \ tree<int, null_type, less<int>, rb_tree_tag, \ ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
650
#include <algorithm> #include <bits/stdc++.h> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <iomanip> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> // #include <numeric> using namespace std; #define f(i, a, b)...
#include <algorithm> #include <bits/stdc++.h> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <iomanip> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> // #include <numeric> using namespace std; #define f(i, a, b)...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
346
ac = 0 wa = 0 tle = 0 re = 0 n = int(input()) for i in range(n): s = str(input()) if s == 'AC': ac += 1 elif s == 'WA': wa += 1 elif s == 'TLE': tle += 1 elif s == 'RE': RE += 1 print('AC','x',ac) print('WA','x',wa) print('TLE','x',tle) print('RE','x',re)
ac = 0 wa = 0 tle = 0 re = 0 n = int(input()) for i in range(n): s = str(input()) if s == 'AC': ac += 1 elif s == 'WA': wa += 1 elif s == 'TLE': tle += 1 elif s == 'RE': re += 1 print('AC','x',ac) print('WA','x',wa) print('TLE','x',tle) print('RE','x',re)
[["-", 75, 665, 64, 196, 0, 1, 0, 677, 31, 22], ["+", 75, 665, 64, 196, 0, 1, 0, 677, 31, 22]]
5
124
using namespace std; #include <bits/stdc++.h> #define pb push_back #define mk make_pair #define vect vector<ll> #define maap map<ll, ll> #define MOD 1000000007 #define mit map::iterator #define pii pair<ll, ll> #define rep(i, a, b) for (ll i = a; i < b; i++) #define fast ...
using namespace std; #include <bits/stdc++.h> #define pb push_back #define mk make_pair #define vect vector<ll> #define maap map<ll, ll> #define MOD 1000000007 #define mit map::iterator #define pii pair<ll, ll> #define rep(i, a, b) for (ll i = a; i < b; i++) #define fast ...
[["-", 31, 16, 31, 16, 12, 61, 0, 5, 0, 6], ["+", 31, 16, 31, 16, 12, 61, 0, 5, 0, 6]]
1
892
n=int(input()) a,b,c,d=0,0,0,0 for i in range(n): s=input() if s=='AC': a=a+1 elif s=='WA': b=b+1 elif s=='TLE': c=c+1 else: d=d+1 print('AC','X',a) print('WA','X',b) print('TLE','X',c) print('RE','X',d)
n=int(input()) a,b,c,d=0,0,0,0 for i in range(n): s=input() if s=='AC': a=a+1 elif s=='WA': b=b+1 elif s=='TLE': c=c+1 else: d=d+1 print('AC','x',a) print('WA','x',b) print('TLE','x',c) print('RE','x',d)
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
127
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; map<string, int> mp; while (n--) { string s; cin >> s; mp[s]++; } cout << "AC * " << mp["AC"] << endl; cout << "WA * " << mp["WA"] << endl; cout << "TLE * " << mp["TLE"] << endl; cout << "RE * " << mp["RE"] << e...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; map<string, int> mp; while (n--) { string s; cin >> s; mp[s]++; } cout << "AC x " << mp["AC"] << endl; cout << "WA x " << mp["WA"] << endl; cout << "TLE x " << mp["TLE"] << endl; cout << "RE x " << mp["RE"] << e...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
107
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <functional> #include <iostream> using namespace __gnu_pbds; using namespace std; // Declaring ordered_set typedef tree<long long int, null_type, less<long long int>, rb_tree_tag, tree_order_sta...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <functional> #include <iostream> using namespace __gnu_pbds; using namespace std; // Declaring ordered_set typedef tree<long long int, null_type, less<long long int>, rb_tree_tag, tree_order_sta...
[["+", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
1
481
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int ac = 0, tle = 0, wa = 0, re = 0; for (int i = 0; i < n; i++) { String s = sc.next(); if (s.equals("AC")) ac++; if (s.equals("WA")) ...
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int ac = 0, tle = 0, wa = 0, re = 0; for (int i = 0; i < n; i++) { String s = sc.next(); if (s.equals("AC")) ac++; if (s.equals("WA")) ...
[["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]]
3
193
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ordered_set \ tree<int, null_type, less<int>, rb_tree_tag, \ tree_order_statisti...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ordered_set \ tree<int, null_type, less<int>, rb_tree_tag, \ tree_order_statisti...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
226
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int testNum = scanner.nextInt(); String[] scoreName = new String[] {"AC", "WA", "TLE", "RE"}; int[] score = new int[4]; for (int i = 0; i < testNum; i++) { Stri...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int testNum = scanner.nextInt(); String[] scoreName = new String[] {"AC", "WA", "TLE", "RE"}; int[] score = new int[4]; for (int i = 0; i < testNum + 1; i++) { ...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 499], ["-", 0, 526, 8, 527, 0, 520, 0, 1, 0, 35], ["-", 0, 526, 8, 527, 0, 520, 0, 93, 0, 94]]
3
202
using namespace std; #include <bits/stdc++.h> #define fdto(i, r, l) for (int i = r; i >= l; --i) #define fto(i, l, r) for (int i = l; i <= r; ++i) #define forit(it, type, var) \ for (type::iterator it = var.begin(); it != var.end(); it++) #define ii pair<int, int> #de...
using namespace std; #include <bits/stdc++.h> #define fdto(i, r, l) for (int i = r; i >= l; --i) #define fto(i, l, r) for (int i = l; i <= r; ++i) #define forit(it, type, var) \ for (type::iterator it = var.begin(); it != var.end(); it++) #define ii pair<int, int> #de...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
303
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; map<string, int> m; m["AC"] = 0; m["WA"] = 0; m["TLE"] = 0; m["RE"] = 0; string s; while (n) { cin >> s; m[s]++; n--; } cout << "AC X " << m["AC"] << endl; cout << "WA X " << m["WA"] << endl; cout << "TLE ...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; map<string, int> m; m["AC"] = 0; m["WA"] = 0; m["TLE"] = 0; m["RE"] = 0; string s; while (n) { cin >> s; m[s]++; n--; } cout << "AC x " << m["AC"] << endl; cout << "WA x " << m["WA"] << endl; cout << "TLE ...
[["-", 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 n; int main() { cin >> n; string s; int ans[4]; for (int i = 0; i < 4; i++) ans[i] = 0; for (int i = 0; i < n; i++) { cin >> s; if (s == "AC") { ans[0]++; } else if (s == "WA") { ans[1]++; } else if (s == "TLE") { ans[2]...
#include <bits/stdc++.h> using namespace std; int n; int main() { cin >> n; string s; int ans[4]; for (int i = 0; i < 4; i++) ans[i] = 0; for (int i = 0; i < n; i++) { cin >> s; if (s == "AC") { ans[0]++; } else if (s == "WA") { ans[1]++; } else if (s == "TLE") { ans[2]...
[["-", 0, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["+", 0, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
191
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define ini(a, i) memset(a, i, sizeof(a)) #define pb push_back #define ll int64_t #define inf LLONG_MAX void solve() { ll n, i; cin >> n; map<string, ll> f; for (i = 0; i < n; i++) { string str; cin >> str; f[str]++; } cout << ...
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define ini(a, i) memset(a, i, sizeof(a)) #define pb push_back #define ll int64_t #define inf LLONG_MAX void solve() { ll n, i; cin >> n; map<string, ll> f; for (i = 0; i < n; i++) { string str; cin >> str; f[str]++; } cout << ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
197
k = ['AC','WA','TLE','RE'] n=int(input()) ans = {} for _ in range(n): r = input() ans[r]=ans.get(r,0)+1 for r in k: print(r,'x',ans[r].get(r,0))
k = ['AC','WA','TLE','RE'] n=int(input()) ans = {} for _ in range(n): r = input() ans[r]=ans.get(r,0)+1 for r in k: print(r,'x',ans.get(r,0))
[["-", 3, 4, 0, 652, 63, 319, 500, 206, 0, 70], ["-", 3, 4, 0, 652, 63, 319, 500, 206, 206, 22], ["-", 3, 4, 0, 652, 63, 319, 500, 206, 0, 73]]
5
84
#include <iostream> #include <iterator> #include <unordered_map> using namespace std; int main() { int n; cin >> n; unordered_map<string, int> arr; arr.insert(make_pair("AC", 0)); arr.insert(make_pair("WA", 0)); arr.insert(make_pair("TLE", 0)); arr.insert(make_pair("RE", 0)); string a; for (int i = ...
#include <iostream> #include <iterator> #include <unordered_map> using namespace std; int main() { int n; cin >> n; unordered_map<string, int> arr; arr.insert(make_pair("AC", 0)); arr.insert(make_pair("WA", 0)); arr.insert(make_pair("TLE", 0)); arr.insert(make_pair("RE", 0)); string a; for (int i = ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
201
// Only the Creator has given me strength!🖤 #include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <fstream> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #inc...
// Only the Creator has given me strength!🖤 #include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <fstream> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #inc...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
226
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; string result; map<string, int> mp; for (int i = 0; i < n; i++) { cin >> result; mp[result]++; } cout << "AC x " << mp["AC"] << endl; cout << "WA x " << mp["WA"] << endl; cout << "TLE x " << mp["TLE"] << endl; co...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; string result; map<string, int> mp; for (int i = 0; i < n; i++) { cin >> result; mp[result]++; } cout << "AC x " << mp["AC"] << endl; cout << "WA x " << mp["WA"] << endl; cout << "TLE x " << mp["TLE"] << endl; co...
[["-", 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
116
#include <bits/stdc++.h> #define int long long int using namespace std; int32_t main() { int n; cin >> n; string s; map<string, int> mp; mp["AC"] = 0; mp["WA"] = 0; mp["TLE"] = 0; mp["RE"] = 0; for (int i = 0; i < n; ++i) { cin >> s; if (mp.find(s) != mp.end()) mp[s]++; } cout << "A...
#include <bits/stdc++.h> #define int long long int using namespace std; int32_t main() { int n; cin >> n; string s; map<string, int> mp; mp["AC"] = 0; mp["WA"] = 0; mp["TLE"] = 0; mp["RE"] = 0; for (int i = 0; i < n; ++i) { cin >> s; if (mp.find(s) != mp.end()) mp[s]++; } cout << "A...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
173
#include <iostream> using namespace std; int main() { int n; cin >> n; string s1 = "AC", s2 = "WA", s3 = "TLE", s4 = "RE"; string s[n]; int i, c1 = 0, c2 = 0, c3 = 0, c4 = 0; for (i = 0; i < n; i++) { cin >> s[i]; if (s[i] == s1) c1++; else if (s[i] == s2) c2++; else if (s[i] ==...
#include <iostream> using namespace std; int main() { int n; cin >> n; string s1 = "AC", s2 = "WA", s3 = "TLE", s4 = "RE"; string s[n]; int i, c1 = 0, c2 = 0, c3 = 0, c4 = 0; for (i = 0; i < n; i++) { cin >> s[i]; if (s[i] == s1) c1++; else if (s[i] == s2) c2++; else if (s[i] ==...
[["-", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125]]
1
216
#include <bits/stdc++.h> using namespace std; int main() { int n, i, j, ac, wa, tle, re; scanf("%d", &n); char s[10001]; int l = strlen(s); ac = wa = tle = re = 0; for (i = 0; i < n; i++) { scanf("%s", s); if (strcmp(s, "AC") == 0) ac++; else if (strcmp(s, "WA") == 0) wa++; els...
#include <bits/stdc++.h> using namespace std; int main() { int n, i, j, ac, wa, tle, re; scanf("%d", &n); char s[10001]; int l = strlen(s); ac = wa = tle = re = 0; for (i = 0; i < n; i++) { scanf("%s", s); if (strcmp(s, "AC") == 0) ac++; else if (strcmp(s, "WA") == 0) wa++; els...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
181
#include <bits/stdc++.h> #define int long long using namespace std; int32_t main() { int n; cin >> n; string s; map<string, int> m; m["AC"] = 0; m["WA"] = 0; m["TLE"] = 0; m["RE"] = 0; while (n--) { cin >> s; m[s]++; } cout << "AC" << " x " << m["AC"] << endl; cout << "WA" ...
#include <bits/stdc++.h> #define int long long using namespace std; int32_t main() { int n; cin >> n; string s; map<string, int> m; m["AC"] = 0; m["WA"] = 0; m["TLE"] = 0; m["RE"] = 0; while (n--) { cin >> s; m[s]++; } cout << "AC" << " x " << m["AC"] << endl; cout << "WA" ...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
162
#include <bits/stdc++.h> using namespace std; int main() { int n, c0 = 0, c1 = 0, c2 = 0, c3 = 0; cin >> n; string s; while (n--) { cin >> s; if (s == "AC") c0++; else if (s == "WA") c1++; else if (s == "TLE") c2++; else c3++; } cout << "AC X " << c0 << "\nWA X " ...
#include <bits/stdc++.h> using namespace std; int main() { int n, c0 = 0, c1 = 0, c2 = 0, c3 = 0; cin >> n; string s; while (n--) { cin >> s; if (s == "AC") c0++; else if (s == "WA") c1++; else if (s == "TLE") c2++; else c3++; } cout << "AC x " << c0 << "\nWA x " ...
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
121
N = gets.to_i word = [] ac = 0 wa = 0 tle = 0 re = 0 (1..N).each do word.push(gets.chomp) end word.each do |text| puts text case text when 'AC' ac += 1 when 'WA' wa += 1 when 'TLE' tle += 1 when 'RE' re += 1 end end puts "AC x #{ac}" puts "WA x #{wa}" puts "TLE x #{tle...
N = gets.to_i word = [] ac = 0 wa = 0 tle = 0 re = 0 (1..N).each do word.push(gets.chomp) end word.each do |text| case text when 'AC' ac += 1 when 'WA' wa += 1 when 'TLE' tle += 1 when 'RE' re += 1 end end puts "AC x #{ac}" puts "WA x #{wa}" puts "TLE x #{tle}" puts "RE ...
[["-", 0, 652, 196, 737, 8, 736, 0, 652, 735, 22], ["-", 196, 737, 8, 736, 0, 652, 3, 4, 0, 22]]
4
107
#include <bits/stdc++.h> using namespace std; int main() { int n, i; scanf("%d", &n); // vector<string>v; int ac = 0, wa = 0, tle = 0, re = 0; for (i = 0; i < n; i++) { string temp; cin >> temp; if (temp == "AC") { ac++; } else if (temp == "WA") { wa++; } else if (temp == "TLE...
#include <bits/stdc++.h> using namespace std; int main() { int n, i; scanf("%d", &n); // vector<string>v; int ac = 0, wa = 0, tle = 0, re = 0; for (i = 0; i < n; i++) { string temp; cin >> temp; if (temp == "AC") { ac++; } else if (temp == "WA") { wa++; } else if (temp == "TLE...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
154
#include <bits/stdc++.h> using namespace std; void solve() { int n; string s; map<string, int> mp; for (int i = 0; i < n; i++) { cin >> s; mp[s]++; } cout << "AC x " << mp["AC"] << "\n"; cout << "WA x " << mp["WA"] << "\n"; cout << "TLE x " << mp["TLE"] << "\n"; cout << "RE x " << mp["RE"] <<...
#include <bits/stdc++.h> using namespace std; void solve() { int n; string s; cin >> n; map<string, int> mp; for (int i = 0; i < n; i++) { cin >> s; mp[s]++; } cout << "AC x " << mp["AC"] << "\n"; cout << "WA x " << mp["WA"] << "\n"; cout << "TLE x " << mp["TLE"] << "\n"; cout << "RE x " <<...
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
130
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long int #define fast \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long int #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
299
package main import ( "fmt" ) func main(){ var n int fmt.Scanf("%d",&n) m:=make(map[string]int) keys:=[]string{"AC","WA","TLE","RE"} for i:=0;i<n;i++{ var s string fmt.Scanf("%s\n",&s) m[s]=m[s]+1 } for _,s:=range keys{ fmt.Printf("%s X %d\n", s, m[s]) } }
package main import ( "fmt" ) func main(){ var n int fmt.Scanf("%d",&n) m:=make(map[string]int) keys:=[]string{"AC","WA","TLE","RE"} for i:=0;i<n;i++{ var s string fmt.Scanf("%s\n",&s) m[s]=m[s]+1 } for _,s:=range keys{ fmt.Printf("%s x %d\n", s, m[s]) } }
[["-", 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]]
7
138
import java.util.*; import java.util.stream.*; class Main { static final List<String> RESULT_TYPE = Collections.unmodifiableList(Arrays.asList("AC", "WA", "TLE", "RE")); public static void main(String[] args) { Scanner sc = new Scanner(System.in); Map<String, Integer> result = new HashMap<>(); in...
import java.util.*; import java.util.stream.*; class Main { static final List<String> RESULT_TYPE = Collections.unmodifiableList(Arrays.asList("AC", "WA", "TLE", "RE")); public static void main(String[] args) { Scanner sc = new Scanner(System.in); Map<String, Integer> result = new HashMap<>(); in...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
215
/* ꧁༒☬महाकाल☬༒꧂ ꧁༒ঔमहाकालঔ༒꧂ ঔৣ۝महाकालᴳᵒᵈ۝ঔৣ */ #include <bits/stdc++.h> using namespace std; //#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> // using namespace __gnu_pbds; // template <typename T, typename cmp=less<T>> using oset =tree<T, null_type, // cmp, rb_...
/* ꧁༒☬महाकाल☬༒꧂ ꧁༒ঔमहाकालঔ༒꧂ ঔৣ۝महाकालᴳᵒᵈ۝ঔৣ */ #include <bits/stdc++.h> using namespace std; //#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> // using namespace __gnu_pbds; // template <typename T, typename cmp=less<T>> using oset =tree<T, null_type, // cmp, rb_...
[["-", 31, 11, 31, 118, 28, 69, 341, 342, 0, 13], ["+", 31, 11, 31, 118, 28, 69, 341, 342, 0, 13], ["-", 12, 11, 31, 118, 28, 69, 341, 342, 0, 13], ["+", 12, 11, 31, 118, 28, 69, 341, 342, 0, 13]]
1
407
#include "bits/stdc++.h" using namespace std; #define LOCAL // sumbit source code #define print_vec(v) \ for (auto row : v) { \ for (auto d : v) { ...
#include "bits/stdc++.h" using namespace std; #define LOCAL // sumbit source code #define print_vec(v) \ for (auto row : v) { \ for (auto d : v) { ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
365
#include <cctype> #include <iomanip> #include <iostream> #include <string.h> #include <string> #include <vector> using namespace std; int main() { int n, t = 0, t2 = 0, t3 = 0, t4 = 0; cin >> n; while (n--) { string s; cin >> s; if (s == "AC") t++; else if (s == "TLE") t2++; else i...
#include <cctype> #include <iomanip> #include <iostream> #include <string.h> #include <string> #include <vector> using namespace std; int main() { int n, t = 0, t2 = 0, t3 = 0, t4 = 0; cin >> n; while (n--) { string s; cin >> s; if (s == "AC") t++; else if (s == "TLE") t2++; else i...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
149
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int b = 0; int c = 0; int d = 0; int e = 0; for (int i = 0; i < n; i++) { String str = sc.nextLine(); if (str.equals("A")) b++; ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int b = 0; int c = 0; int d = 0; int e = 0; for (int i = 0; i < n; i++) { String str = sc.next(); if (str.equals("AC")) b++; ...
[["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["-", 15, 15, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 15, 15, 0, 492, 3, 4, 0, 5, 0, 491]]
3
199
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long long unsigned int ull; typedef long double ld; typedef vector<int> vr; typedef pair<int, int> pr; #define pb push_back #define ff first #define ss second #define INF 1999999999 #define MODA 1000000007 #define PI 3.14159265358979323846...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long long unsigned int ull; typedef long double ld; typedef vector<int> vr; typedef pair<int, int> pr; #define pb push_back #define ff first #define ss second #define INF 1999999999 #define MODA 1000000007 #define PI 3.14159265358979323846...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
236
#include <bits/stdc++.h> #include <complex.h> #include <ext/pb_ds/assoc_container.hpp> //required #include <ext/pb_ds/tree_policy.hpp> #include <iostream> #include <math.h> #define ll long long int using namespace std; #define int ll // fendwick tree //#include <ext / pb_ds / assoc_container.hpp> //required //#include ...
#include <bits/stdc++.h> #include <complex.h> #include <ext/pb_ds/assoc_container.hpp> //required #include <ext/pb_ds/tree_policy.hpp> #include <iostream> #include <math.h> #define ll long long int using namespace std; #define int ll // fendwick tree //#include <ext / pb_ds / assoc_container.hpp> //required //#include ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
309
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { // ios_base::sync_with_stdio(false); // cin.tie(NULL); int t = 1; // cin>>t; while (t--) { string str1 = "WA", str2 = "AC", str3 = "TLE", str4 = "RE"; ll n; cin >> n; string str; ll count1 = 0, count2 = 0, co...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { // ios_base::sync_with_stdio(false); // cin.tie(NULL); int t = 1; // cin>>t; while (t--) { string str1 = "WA", str2 = "AC", str3 = "TLE", str4 = "RE"; ll n; cin >> n; string str; ll count1 = 0, count2 = 0, co...
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22]]
1
182
#include <bits/stdc++.h> #include <string> #include <vector> using namespace std; #define l long long #define pb push_back #define mem(a, n) memset(a, n, sizeof(a)) #define find(v, n) find(v.begin(), v.end(), n) #define sort1(v) sort(v.begin(), v.end()) #define lb(v, n) lower_bound(v.begin(), v.end(), n) - v.begin() #d...
#include <bits/stdc++.h> #include <string> #include <vector> using namespace std; #define l long long #define pb push_back #define mem(a, n) memset(a, n, sizeof(a)) #define find(v, n) find(v.begin(), v.end(), n) #define sort1(v) sort(v.begin(), v.end()) #define lb(v, n) lower_bound(v.begin(), v.end(), n) - v.begin() #d...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
357
#include <stdio.h> int main() { int c[4] = { 0, }; int t; scanf("%d", &t); while (t--) { char s[100]; scanf("%s", s); if (s[0] == 'A') c[0]++; if (s[1] == 'W') c[1]++; if (s[2] == 'T') c[2]++; if (s[3] == 'R') c[3]++; } printf("AC x %d\n", c[0]); pr...
#include <stdio.h> int main() { int c[4] = { 0, }; int t; scanf("%d", &t); while (t--) { char s[100]; scanf("%s", s); if (s[0] == 'A') c[0]++; if (s[0] == 'W') c[1]++; if (s[0] == 'T') c[2]++; if (s[0] == 'R') c[3]++; } printf("AC x %d\n", c[0]); pr...
[["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13]]
1
177
#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 AB_BHI_NI_DEGI \ ios_base::sync_with_stdio(false); \ cin....
#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 AB_BHI_NI_DEGI \ ios_base::sync_with_stdio(false); \ cin....
[["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]]
1
214
from collections import Counter as ct n = int(input()) s = ct([input() for _ in range(n)]) print("AC x " + str(s["AC"])) print("WA x " + str(s["wA"])) print("TLE x " + str(s["TLE"])) print("RE x " + str(s["RE"]))
from collections import Counter as ct n = int(input()) s = ct([input() for _ in range(n)]) print("AC x " + str(s["AC"])) print("WA x " + str(s["WA"])) print("TLE x " + str(s["TLE"])) print("RE x " + str(s["RE"]))
[["-", 12, 652, 3, 4, 0, 206, 206, 557, 0, 6], ["+", 12, 652, 3, 4, 0, 206, 206, 557, 0, 6]]
5
95
n = int(input()) s = [input() for i in range(n)] for v in ['AC', 'WA', 'TLE', 'RE']: print(v, 'x', a.count(v))
n = int(input()) s = [input() for i in range(n)] for i in ['AC', 'WA', 'TLE', 'RE']: print(i, 'x', s.count(i))
[["-", 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, 652, 3, 4, 0, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 500, 22], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 500, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 0, ...
5
58
#include <bits/stdc++.h> #include <iostream> #define ll long long #define pb push_back using namespace std; /*ll ceilVal(ll a,ll b) { return (a / b) + ((a % b) != 0); } vector<ll> adj[1000000] ; ll vis[1000000]={0} ; void dfs(ll w) { vis[w] = 1; for(ll u=0;u<adj[w].size();u++) { if(!vis[adj[w][u]]) ...
#include <bits/stdc++.h> #include <iostream> #define ll long long #define pb push_back using namespace std; /*ll ceilVal(ll a,ll b) { return (a / b) + ((a % b) != 0); } vector<ll> adj[1000000] ; ll vis[1000000]={0} ; void dfs(ll w) { vis[w] = 1; for(ll u=0;u<adj[w].size();u++) { if(!vis[adj[w][u]]) ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
210
#include <bits/stdc++.h> #include <math.h> using namespace std; typedef long long ll; typedef unsigned long long ull; #define M_PI 3.14159265358979323846 void solve() { int n; cin >> n; string s; map<string, int> mp; for (int i = 0; i < n; i++) { cin >> s; mp[s]++; } cout << "AC X " << mp["AC"] ...
#include <bits/stdc++.h> #include <math.h> using namespace std; typedef long long ll; typedef unsigned long long ull; #define M_PI 3.14159265358979323846 void solve() { int n; cin >> n; string s; map<string, int> mp; for (int i = 0; i < n; i++) { cin >> s; mp[s]++; } 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
207
#include <stdio.h> int check(char *str1, char *str2) { while (*str1 != '\0' && *str2 != '\0') { if (*str1++ != *str2++) return 0; } return 1; } int main(void) { int n; int c[4] = {0}; char str[4]; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%s", str); if (check(str, "AC")...
#include <stdio.h> int check(char *str1, char *str2) { while (*str1 != '\0' && *str2 != '\0') { if (*str1++ != *str2++) return 0; } return 1; } int main(void) { int n; int c[4] = {0}; char str[4]; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%s", str); if (check(str, "AC")...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
236
#include <algorithm> #include <cstdlib> #include <cstring> #include <iostream> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> typedef long long ll; typedef double db; const ll mod = 10000...
#include <algorithm> #include <cstdlib> #include <cstring> #include <iostream> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> typedef long long ll; typedef double db; const ll mod = 10000...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
233
import java.io.*; import java.util.*; public class Main { public static void main(String args[]) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); PrintWriter pw = new PrintWriter(System.out); int n = Integer.parseInt(br.readLine()); HashMap<String, Integer> ...
import java.io.*; import java.util.*; public class Main { public static void main(String args[]) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); PrintWriter pw = new PrintWriter(System.out); int n = Integer.parseInt(br.readLine()); HashMap<String, Integer> ...
[["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]]
3
223
/* Jai Shree Krishna !! Radhe Radhe !! उद्यमेन हि सिद्ध्यन्ति कार्याणि न मनोरथैः। नहि सुप्तस्य सिंहस्य मुखे प्रविशन्ति मृगाः।। */ #include <bits/stdc++.h> using namespace std; #define int long long typedef long long ll; #define loop(i, ...
/* Jai Shree Krishna !! Radhe Radhe !! उद्यमेन हि सिद्ध्यन्ति कार्याणि न मनोरथैः। नहि सुप्तस्य सिंहस्य मुखे प्रविशन्ति मृगाः।। */ #include <bits/stdc++.h> using namespace std; #define int long long typedef long long ll; #define loop(i, ...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
282
#include <bits/stdc++.h> #define LETSGO \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define all(x) (x).begin(), (x).end()...
#include <bits/stdc++.h> #define LETSGO \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define all(x) (x).begin(), (x).end()...
[["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
549
n=int(input()) ac=int(0) wa=int(0) tle=int(0) re=int(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{}".format(ac)) print("WA x{}".format(wa)) print("TLE x{}".format(tle)) print("RE x{}".format(re)...
n=int(input()) ac=int(0) wa=int(0) tle=int(0) re=int(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 {}".format(ac)) print("WA x {}".format(wa)) print("TLE x {}".format(tle)) print("RE x {}".format...
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
129
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <queue> #include <vector> using namespace std; typedef long long ll; typedef short int sh; const int inf = 0x3f3f3f3f; const int MAX = 2e5 + 10; const int mod = 1e9 + 7; char judge[4][5] = {"AC"...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <queue> #include <vector> using namespace std; typedef long long ll; typedef short int sh; const int inf = 0x3f3f3f3f; const int MAX = 2e5 + 10; const int mod = 1e9 + 7; char judge[4][5] = {"AC"...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
215
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pi acos(-1) int main() { int c = 0, c1 = 0, c2 = 0, c3 = 0; int t; cin >> t; while (t--) { string s; cin >> s; if (s == "AC") { c++; } if (s == "WA") { c1++; } if (s == "TLE") { c2++; }...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pi acos(-1) int main() { int c = 0, c1 = 0, c2 = 0, c3 = 0; int t; cin >> t; while (t--) { string s; cin >> s; if (s == "AC") { c++; } if (s == "WA") { c1++; } if (s == "TLE") { c2++; }...
[["-", 0, 57, 64, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 27, 28, 22]]
1
150
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pi acos(-1) int main() { ll c = 0, c1 = 0, c2 = 0, c3 = 0; ll t; cin >> t; while (t--) { string s; cin >> s; if (s == "AC") { c++; } if (s == "WA") { c1++; } if (s == "TLE") { c2++; } ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pi acos(-1) int main() { ll c = 0, c1 = 0, c2 = 0, c3 = 0; ll t; cin >> t; while (t--) { string s; cin >> s; if (s == "AC") { c++; } if (s == "WA") { c1++; } if (s == "TLE") { c2++; } ...
[["-", 0, 57, 64, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 27, 28, 22]]
1
150
#include <iostream> #include <vector> using namespace std; int main() { int t, ac = 0, wa = 0, tle = 0, re = 0; string st; cin >> t; vector<string> str; for (int i = 0; i < t; i++) { cin >> st; str.push_back(st); } for (int i = 0; i < str.size(); i++) { if (str[i] == "AC") { ac++; ...
#include <iostream> #include <vector> using namespace std; int main() { int t, ac = 0, wa = 0, tle = 0, re = 0; string st; cin >> t; vector<string> str; for (int i = 0; i < t; i++) { cin >> st; str.push_back(st); } for (int i = 0; i < str.size(); i++) { if (str[i] == "AC") { ac++; ...
[["-", 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
207