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 <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i, (n); ++i)
using ll = long long;
using namespace std;
int sum(int n) {
if (n == 0) {
return 0;
}
int s = sum(n - 1);
return s + n;
}
int main() {
int N;
string S;
int A = 0, W = 0, T = 0, R... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i, (n); ++i)
using ll = long long;
using namespace std;
int sum(int n) {
if (n == 0) {
return 0;
}
int s = sum(n - 1);
return s + n;
}
int main() {
int N;
string S;
int A = 0, W = 0, T = 0, R... | [["+", 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 | 201 |
import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
from collections import Counter
def main():
n = int(input())
d1 = {'AC':0, 'WA':0, 'TLE': 0,'RE':0}
s = []
for _ in range(n):
s.append(input())
sa = Counter(s)
print(sa)
for k, v in sa.item... | import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
from collections import Counter
def main():
n = int(input())
d1 = {'AC':0, 'WA':0, 'TLE': 0,'RE':0}
s = []
for _ in range(n):
s.append(input())
sa = Counter(s)
for k, v in sa.items():
d... | [["-", 0, 14, 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 | 176 |
n = gets.chomp.to_i
#p n
s = readlines.map(&:chomp)
#p s
ac = 0
wa = 0
tle = 0
re = 0
n.times{ |i|
if s[i] == 'AC'
ac += 1
elsif s[i] == 'WA'
wa +=1
elsif s[i] == 'TLE'
tle += 1
elsif s[i] == 'RE'
re += 1
end
}
p "AC x #{ac}"
p "WA x #{wa}"
p "TLE x #{tle}"
p "RE x #{re}"
| n = gets.chomp.to_i
#p n
s = readlines.map(&:chomp)
#p s
ac = 0
wa = 0
tle = 0
re = 0
n.times{ |i|
if s[i] == 'AC'
ac += 1
elsif s[i] == 'WA'
wa +=1
elsif s[i] == 'TLE'
tle += 1
elsif s[i] == 'RE'
re += 1
end
}
puts "AC x #{ac}"
puts "WA x #{wa}"
puts "TLE x #{tle}"
puts "RE x #{re}"
| [["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]] | 4 | 115 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mk make_pair
int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
int main() {
int t;
cin >> t;
map<string, int> mp;
while (t--) {
string str;
cin >> str;
mp[str]++;
}
cou... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mk make_pair
int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
int main() {
int t;
cin >> t;
map<string, int> mp;
while (t--) {
string str;
cin >> str;
mp[str]++;
}
cou... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 146 |
n = int(input())
dic = {"AC":0, "WA":0, "TLE":0, "RE":0}
for i in range(n):
s = input()
dic[s] += 1
print("AC x" + str(dic["AC"]))
print("WA x" + str(dic["WA"]))
print("TLE x" + str(dic["TLE"]))
print("RE x" + str(dic["RE"])) | n = int(input())
dic = {"AC":0, "WA":0, "TLE":0, "RE":0}
for i in range(n):
s = input()
dic[s] += 1
print("AC x " + str(dic["AC"]))
print("WA x " + str(dic["WA"]))
print("TLE x " + str(dic["TLE"]))
print("RE x " + str(dic["RE"])) | [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 118 |
#include <bits/stdc++.h>
#include <stdio.h>
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) FOR(i, 0, n)
#define _USE_MATH_DEFINES
#define f first
//#define s second
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define INF 1000000000000000000
#define MAXN (int)(1e7)... | #include <bits/stdc++.h>
#include <stdio.h>
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) FOR(i, 0, n)
#define _USE_MATH_DEFINES
#define f first
//#define s second
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define INF 1000000000000000000
#define MAXN (int)(1e7)... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 278 |
#include <bits/stdc++.h>
using namespace std;
/*
提出前に確認!
- setとmultisetを間違えない
*/
int main(void) {
int n;
cin >> n;
string s;
cin >> s;
vector<int> ans(4, 0);
for (int i = 0; i < n; i++) {
cin >> s;
if (s == "AC")
ans[0]++;
if (s == "WA")
ans[1]++;
if (s == "TLE")
ans[2]++... | #include <bits/stdc++.h>
using namespace std;
/*
提出前に確認!
- setとmultisetを間違えない
*/
int main(void) {
int n;
cin >> n;
string s;
vector<int> ans(4, 0);
for (int i = 0; i < n; i++) {
cin >> s;
if (s == "AC")
ans[0]++;
if (s == "WA")
ans[1]++;
if (s == "TLE")
ans[2]++;
if (s ... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["+", 0, 16, 31, 16, 12, 69, 341, 342, 0, 13]] | 1 | 172 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <tuple>
#include <vector>
// ceil(a/b) (a + (b - 1))/ b
using namespace std;
#d... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <tuple>
#include <vector>
// ceil(a/b) (a + (b - 1))/ b
using namespace std;
#d... | [["-", 3, 4, 0, 69, 341, 342, 0, 5, 0, 6], ["+", 3, 4, 0, 69, 341, 342, 0, 5, 0, 6]] | 1 | 306 |
def judge_status_summary():
N = int(input())
res = {"AC":0,"WA":0,"TLE":0,"RE":0}
for i in range(N):
res[input()] += 1
for k in res:
print("{} X {}".format(k,res[k]))
judge_status_summary() | def judge_status_summary():
N = int(input())
res = {"AC":0,"WA":0,"TLE":0,"RE":0}
for i in range(N):
res[input()] += 1
for k in res:
print("{} x {}".format(k,res[k]))
judge_status_summary() | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 80 |
#include <stdio.h>
#include <string.h>
int main() {
int N, AC = 0, WA = 0, TLE = 0, RE = 0;
scanf("%d", &N);
char str[10];
for (int i = 0; i < N; i++) {
scanf("%s", str);
if (strcmp(str, "AC") == 0) { // "AC" - "AC" = 0
AC++;
}
if (strcmp(str, "WA") == 0) { // "AC" - "AC" = 0
WA++;
... | #include <stdio.h>
#include <string.h>
int main() {
int N, AC = 0, WA = 0, TLE = 0, RE = 0;
scanf("%d", &N);
char str[10];
for (int i = 0; i < N; i++) {
scanf("%s", str);
if (strcmp(str, "AC") == 0) { // "AC" - "AC" = 0
AC++;
}
if (strcmp(str, "WA") == 0) { // "AC" - "AC" = 0
WA++;
... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 0 | 189 |
n = int(input())
s = [input() for i in range(n)]
c0 = 0
c1 = 0
c2 = 0
c3 = 0
for i in range(len(s)):
if s[i] == "AC":
c0 += 1
elif s[i] == "WA":
c1 += 1
elif s[i] == "TLE":
c2 += 1
else:
c3 += 2
print("AC x ", str(c0))
print("WA x ", str(c1))
print("TLE x ", str(c2))
p... | n = int(input())
s = [input() for i in range(n)]
c0 = 0
c1 = 0
c2 = 0
c3 = 0
for i in range(len(s)):
if s[i] == "AC":
c0 += 1
elif s[i] == "WA":
c1 += 1
elif s[i] == "TLE":
c2 += 1
else:
c3 += 1
print("AC x ", str(c0))
print("WA x ", str(c1))
print("TLE x ", str(c2))
p... | [["-", 75, 76, 8, 196, 0, 1, 0, 677, 12, 612], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 133 |
N=int(input())
s=[]
for i in range(N):
s.append(input())
print("AC x "+s.count("AC"))
print("WA x "+s.count("WA"))
print("TLE x "+s.count("TLE"))
print("RE x "+s.count("RE")) | N=int(input())
s=[]
for i in range(N):
s.append(input())
print("AC x ",s.count("AC"))
print("WA x ",s.count("WA"))
print("TLE x ",s.count("TLE"))
print("RE x ",s.count("RE")) | [["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]] | 5 | 88 |
import sys
def input(): return sys.stdin.readline().rstrip()
def main():
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
else:
... | import sys
def input(): return sys.stdin.readline().rstrip()
def main():
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
else:
... | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 149 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int ac = 0, wa = 0, re = 0, tle = 0;
string temp;
while (N--) {
cin >> temp;
if (temp == "AC")
ac++;
else if (temp == "WA")
wa++;
else if (temp == "TLE")
tle++;
else if (temp == "RE")
re++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int ac = 0, wa = 0, re = 0, tle = 0;
string temp;
while (N--) {
cin >> temp;
if (temp == "AC")
ac++;
else if (temp == "WA")
wa++;
else if (temp == "TLE")
tle++;
else if (temp == "RE")
re++;
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 140 |
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int AC = 0, WA = 0, TLE = 0, RE = 0;
string C;
for (int i = 0; i < N; i++) {
cin >> C;
if (C.find("AC") != std::string::npos) {
AC++;
} else if (C.find("WA") != std::string::npos) {
WA++;
} else if (C.find("TL... | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int AC = 0, WA = 0, TLE = 0, RE = 0;
string C;
for (int i = 0; i < N; i++) {
cin >> C;
if (C.find("AC") != std::string::npos) {
AC++;
} else if (C.find("WA") != std::string::npos) {
WA++;
} else if (C.find("TL... | [["-", 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())
c0 = 0
c1 = 0
c2 = 0
c3 = 0
for i in ragne(n):
s = input()
if s == 'AC':
c0 += 1
elif s == 'WA':
c1 += 1
elif s == 'TLE':
c2 += 1
else:
c3 += 1
print(f'AC x {c0}')
print(f'WA x {c1}')
print(f'TLE x {c2}')
print(f'RE x {c3}') | n = int(input())
c0 = 0
c1 = 0
c2 = 0
c3 = 0
for i in range(n):
s = input()
if s == 'AC':
c0 += 1
elif s == 'WA':
c1 += 1
elif s == 'TLE':
c2 += 1
else:
c3 += 1
print(f'AC x {c0}')
print(f'WA x {c1}')
print(f'TLE x {c2}')
print(f'RE x {c3}') | [["-", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22], ["+", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22]] | 5 | 104 |
#include <iostream>
#include <string>
using namespace std;
int main() {
int N;
string temp;
int AC = 0, WA = 0, TLE = 0, RE = 0;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> temp;
if (temp == "AC") {
AC++;
}
if (temp == "WA") {
WA++;
}
if (temp == "TLE") {
TLE++;
... | #include <iostream>
#include <string>
using namespace std;
int main() {
int N;
string temp;
int AC = 0, WA = 0, TLE = 0, RE = 0;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> temp;
if (temp == "AC") {
AC++;
}
if (temp == "WA") {
WA++;
}
if (temp == "TLE") {
TLE++;
... | [["-", 0, 57, 64, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 27, 28, 22]] | 1 | 156 |
#include <iostream>
#include <map>
using namespace std;
int main() {
int t;
cin >> t;
int num1 = 0, num2 = 0, num3 = 0, num4 = 0;
while (t--) {
string s;
cin >> s;
if (s == "AC")
num1++;
if (s == "WA")
num2++;
if (s == "TLE")
num3++;
if (s == "RE")
num3++;
}
... | #include <iostream>
#include <map>
using namespace std;
int main() {
int t;
cin >> t;
int num1 = 0, num2 = 0, num3 = 0, num4 = 0;
while (t--) {
string s;
cin >> s;
if (s == "AC")
num1++;
if (s == "WA")
num2++;
if (s == "TLE")
num3++;
if (s == "RE")
num4++;
}
... | [["-", 8, 9, 0, 57, 64, 1, 0, 27, 28, 22], ["+", 8, 9, 0, 57, 64, 1, 0, 27, 28, 22]] | 1 | 139 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
int n;
cin >> n;
map<string, int> cnt;
rep(i, n) {
string s;
cin >> s;
cnt[s]++;
}
for (string s : {"AC", "WA", "TLE", "RE"}) {
cout << s << " × " << cnt[s] << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
int n;
cin >> n;
map<string, int> cnt;
rep(i, n) {
string s;
cin >> s;
cnt[s]++;
}
for (string s : {"AC", "WA", "TLE", "RE"}) {
cout << s << " x " << cnt[s] << endl;
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 99 |
#include <stdio.h>
#include <string.h>
int main() {
int n, ac = 0, wa = 0, tle = 0, re = 0;
scanf("%d", &n);
char input[5];
for (int i = 0; i < n; i++) {
scanf("%s", input);
if (strcmp(input, "AC") == 0) {
++ac;
} else if (strcmp(input, "WA") == 0) {
++wa;
} else if (strcmp(input, ... | #include <stdio.h>
#include <string.h>
int main() {
int n, ac = 0, wa = 0, tle = 0, re = 0;
scanf("%d", &n);
char input[5];
for (int i = 0; i < n; i++) {
scanf("%s", input);
if (strcmp(input, "AC") == 0) {
++ac;
} else if (strcmp(input, "WA") == 0) {
++wa;
} else if (strcmp(input, ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 188 |
#include <bits/stdc++.h>
using namespace std;
int main() {
map<string, int> mp;
map<string, int>::iterator it;
int n, i;
string s;
string arr[4] = {"AC", "WA", "TLE", "RE"};
cin >> n;
mp.insert(make_pair("AC", 0));
mp.insert(make_pair("WA", 0));
mp.insert(make_pair("TLE", 0));
mp.insert(make_pair("R... | #include <bits/stdc++.h>
using namespace std;
int main() {
map<string, int> mp;
map<string, int>::iterator it;
int n, i;
string s;
string arr[4] = {"AC", "WA", "TLE", "RE"};
cin >> n;
mp.insert(make_pair("AC", 0));
mp.insert(make_pair("WA", 0));
mp.insert(make_pair("TLE", 0));
mp.insert(make_pair("R... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 194 |
// 177
#include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <queue>
#include <string>
#include <vector>
using namespace std;
using ll = long long int;
#define NUM 1000000007
int main() {
int n;
cin >> n;
vector<int> v(4, 0);
string str;
... | // 177
#include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <queue>
#include <string>
#include <vector>
using namespace std;
using ll = long long int;
#define NUM 1000000007
int main() {
int n;
cin >> n;
vector<int> v(4, 0);
string str;
... | [["-", 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>
#include <string.h>
int main() {
int a;
char input[4];
int ac = 0, wa = 0, tle = 0, re = 0;
scanf("%d", &a);
for (int i = 0; i < a; i++) {
gets(input);
if (strcmp(input, "AC") == 0)
ac++;
else if (strcmp(input, "WA") == 0)
wa++;
else if (strcmp(input, "TLE") == ... | #include <stdio.h>
#include <string.h>
int main() {
int a;
char input[4];
int ac = 0, wa = 0, tle = 0, re = 0;
scanf("%d", &a);
getchar();
for (int i = 0; i < a; i++) {
gets(input);
if (strcmp(input, "AC") == 0)
ac++;
else if (strcmp(input, "WA") == 0)
wa++;
else if (strcmp(inpu... | [["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 0 | 177 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repr(i, a, b) for (int i = a; i < b; i++)
#define each(i, mp) for (auto &i : mp)
const int INF = 1001001001;
int main() {
int n;
cin >> n;
string s[n];
re... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repr(i, a, b) for (int i = a; i < b; i++)
#define each(i, mp) for (auto &i : mp)
const int INF = 1001001001;
int main() {
int n;
cin >> n;
string s[n];
re... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 218 |
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
int cnt_ac = 0;
int cnt_wa = 0;
int cnt_tle = 0;
int cnt_re = 0;
for (int i = 0; i < n; ++i) {
string s;
cin >> s;
if (s == "AC") {
++cnt_ac;
} else if (s == "WA") {
++cnt_wa;
} else i... | #include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
int cnt_ac = 0;
int cnt_wa = 0;
int cnt_tle = 0;
int cnt_re = 0;
for (int i = 0; i < n; ++i) {
string s;
cin >> s;
if (s == "AC") {
++cnt_ac;
} else if (s == "WA") {
++cnt_wa;
} else i... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 162 |
n = int(input())
lst = []
for i in range(n):
str1 = input()
lst.append(str1)
print('AC *' , lst.count('AC'))
print('WA *' , lst.count('WA'))
print('TLE *' ,lst.count('TLE'))
print('RE *' , lst.count('RE')) | n = int(input())
lst = []
for i in range(n):
str1 = input()
lst.append(str1)
print('AC x' , lst.count('AC'))
print('WA x' , lst.count('WA'))
print('TLE x' ,lst.count('TLE'))
print('RE x' , lst.count('RE')) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 91 |
#include <bits/stdc++.h>
//#include<ext/pb_ds/assoc_container.hpp>
//#include<ext/pb_ds/tree_policy.hpp>
//#include<ext/pb_ds/detail/standard_policies.hpp>
// common
#define endl "\n"
#define M_PI 3.14159265358979323846
// fast input output
#define fast_io ... | #include <bits/stdc++.h>
//#include<ext/pb_ds/assoc_container.hpp>
//#include<ext/pb_ds/tree_policy.hpp>
//#include<ext/pb_ds/detail/standard_policies.hpp>
// common
#define endl "\n"
#define M_PI 3.14159265358979323846
// fast input output
#define fast_io ... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 988 |
s = []
n = int(input())
for i in range(n):
s.append(input())
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"))) | s = []
n = int(input())
for i in range(n):
s.append(input())
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 | 100 |
N = int(input())
a = 0
w = 0
t = 0
r = 0
x = [0]*N
for i in range(N):
x[i] = input()
if x[i] == "AC":
a += 1
elif x[i] == "WA":
w += 0
elif x[i] == "TLE":
t += 0
else:
r += 0
print("AC x " + str(a))
print("WA x " + str(w))
print("TLE x " + str(t))
print("RE x " + str(r)) | N = int(input())
a = 0
w = 0
t = 0
r = 0
x = [0]*N
for i in range(N):
x[i] = input()
if x[i] == "AC":
a += 1
elif x[i] == "WA":
w += 1
elif x[i] == "TLE":
t += 1
else:
r += 1
print("AC x " + str(a))
print("WA x " + str(w))
print("TLE x " + str(t))
print("RE x " + str(r)) | [["-", 75, 665, 64, 196, 0, 1, 0, 677, 12, 612], ["+", 75, 665, 64, 196, 0, 1, 0, 677, 12, 612], ["-", 75, 76, 8, 196, 0, 1, 0, 677, 12, 612], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 131 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
//全提出の個数Nを入力
int N = sc.nextInt();
// N個分の4種類の配列を入力
// String S[] = {"AC","WA","TLE","RE"};
String A = "AC";
String B = "WA";
String C = "TLE";
String D = "... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
String A = "AC";
String B = "WA";
String C = "TLE";
String D = "RE";
int C0 = 0;
int C1 = 0;
int C2 = 0;
int C3 = 0;
for (i... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 237 |
#include <stdio.h>
int main(void) {
int n, i, c[4];
char s[3];
c[0] = c[1] = c[2] = c[3] = 0;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s", s);
if (s[0] == 'A')
c[0]++;
else if (s[0] == 'W')
c[1]++;
else if (s[0] == 'T')
c[2]++;
else
c[3]++;
}
printf("A... | #include <stdio.h>
int main(void) {
int n, i, c[4];
char s[3];
c[0] = c[1] = c[2] = c[3] = 0;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s", s);
if (s[0] == 'A')
c[0]++;
else if (s[0] == 'W')
c[1]++;
else if (s[0] == 'T')
c[2]++;
else
c[3]++;
}
printf("A... | [["-", 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]] | 0 | 192 |
#include <bits/stdc++.h>
using namespace std;
#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define intll int long long
const int INF = 1e9;
const int MOD = 1e9 + 7;
int main() {
int n;
cin >> n;
int ac = 0, wa = 0, tle = 0, re = 0;
rep(i, n) {
string s;
cin >... | #include <bits/stdc++.h>
using namespace std;
#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define intll int long long
const int INF = 1e9;
const int MOD = 1e9 + 7;
int main() {
int n;
cin >> n;
int ac = 0, wa = 0, tle = 0, re = 0;
rep(i, n) {
string s;
cin >... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 166 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vl = vector<ll>;
using pll = pair<ll, ll>;
#define rep(i, n) for (ll i = 0, xxx_rep_end = (n); i < xxx_rep_end; ++i)
#define all(x) (x).begin(), (x).end()
template <class T1, class T2> inline void chmax(T1 &a, const T2 &b) {
if (a < b) {
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vl = vector<ll>;
using pll = pair<ll, ll>;
#define rep(i, n) for (ll i = 0, xxx_rep_end = (n); i < xxx_rep_end; ++i)
#define all(x) (x).begin(), (x).end()
template <class T1, class T2> inline void chmax(T1 &a, const T2 &b) {
if (a < b) {
... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 263 |
N = int(input())
S = [input() for i in range(N)]
ac = 0
wa = 0
tle = 0
re = 0
for s in S:
if s == 'AC': ac += 1
elif s == 'WA': wa += 1
elif s == 'TLE': tle += 1
elif s == 'RE': re += 1
print('AC x ' + str(ac))
print('WA x ' + str(wa))
print('TLE x ' + str(tle))
print('RE × ' + str(re)) | N = int(input())
S = [input() for i in range(N)]
ac = 0
wa = 0
tle = 0
re = 0
for s in S:
if s == 'AC': ac += 1
elif s == 'WA': wa += 1
elif s == 'TLE': tle += 1
elif s == 'RE': re += 1
print('AC x ' + str(ac))
print('WA x ' + str(wa))
print('TLE x ' + str(tle))
print('RE x ' + str(re)) | [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 123 |
n = int(input())
c1=0
c2=0
c3=0
c4=0
for I in range(1, n):
s = str(input())
if(s == "AC"):
c1+= 1
elif(s == "WA"):
c2+=1
elif(s == "TLE"):
c3+=1
elif(s == "RE"):
c4 +=1
print(f"AC x {c1}")
print(f"WA x {c2}")
print(f"TLE x {c3}")
print(f"RE x {c4}")
| n = int(input())
c1=0
c2=0
c3=0
c4=0
for I in range(1, n+1):
s = str(input())
if(s == "AC"):
c1+= 1
elif(s == "WA"):
c2+=1
elif(s == "TLE"):
c3+=1
elif(s == "RE"):
c4 +=1
print(f"AC x {c1}")
print(f"WA x {c2}")
print(f"TLE x {c3}")
print(f"RE x {c4}")
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 122 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<string> s(n);
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[i];
mp[s[i]]++;
}
cout << "AC x " << mp["AC"] << endl;
cout << "wA x " <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<string> s(n);
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[i];
mp[s[i]]++;
}
cout << "AC x " << mp["AC"] << endl;
cout << "WA x " <<... | [["-", 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>
using namespace std;
int main() {
int ac = 0, wa = 0, tle = 0, re = 0;
int n;
cin >> n;
while (n) {
string s;
cin >> s;
if (s == "AC")
ac++;
else if (s == "WA")
wa++;
else if (s == "TLE")
tle++;
else
re++;
n--;
}
cout << "AC * " <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
int ac = 0, wa = 0, tle = 0, re = 0;
int n;
cin >> n;
while (n) {
string s;
cin >> s;
if (s == "AC")
ac++;
else if (s == "WA")
wa++;
else if (s == "TLE")
tle++;
else
re++;
n--;
}
cout << "AC x " <<... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 131 |
N = int(input())
C0, C1, C2, C3 = 0, 0, 0, 0
for i in range(N-1):
S = str(input())
if S == "AC":
C0 = C0 + 1
elif S == "WA":
C1 = C1 + 1
elif S == "TLE":
C2 = C2 + 1
else:
C3 = C3 + 1
print("AC x " + str(C0))
print("WA x " + str(C1))
print("TLE x " + str(C2))
print(... | N = int(input())
C0, C1, C2, C3 = 0, 0, 0, 0
for i in range(N):
S = str(input())
if S == "AC":
C0 = C0 + 1
elif S == "WA":
C1 = C1 + 1
elif S == "TLE":
C2 = C2 + 1
else:
C3 = C3 + 1
print("AC x " + str(C0))
print("WA x " + str(C1))
print("TLE x " + str(C2))
print("R... | [["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 128 |
#include <bits/stdc++.h>
#define pb push_back
#define fi first
#define se second
#define ins insert
#define sz(x) (long long)x.size()
typedef long long ll;
typedef long double ld;
const int N = 100005;
const ld pi = 3.141592653;
const ll MOD = 1000000007;
using namespace std;
int dx[9] = {1, -1, 0, 0, 1, 1, -1, -1, 0... | #include <bits/stdc++.h>
#define pb push_back
#define fi first
#define se second
#define ins insert
#define sz(x) (long long)x.size()
typedef long long ll;
typedef long double ld;
const int N = 100005;
const ld pi = 3.141592653;
const ll MOD = 1000000007;
using namespace std;
int dx[9] = {1, -1, 0, 0, 1, 1, -1, -1, 0... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 269 |
N=int(input())
S=[]
for i in range(N):
S.append(input())
print('AC x {}'.format(S.count('AC')))
print('WA x {}'.format(S.count('WA')))
print('TLE x {}'.format(S.count('TLE')))
print('AC x {}'.format(S.count('RE'))) | N=int(input())
S=[]
for i in range(N):
S.append(input())
print('AC x {}'.format(S.count('AC')))
print('WA x {}'.format(S.count('WA')))
print('TLE x {}'.format(S.count('TLE')))
print('RE x {}'.format(S.count('RE'))) | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 100 |
#include <iostream>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using P = pair<int, int>;
#include <algorithm>
#include <map>
#include <math.h>
#include <queue>
int main() {
int n;
cin >> n;
int ac(0), wa(0), tle(0), re(0);
rep(i, n) {
string... | #include <iostream>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using P = pair<int, int>;
#include <algorithm>
#include <map>
#include <math.h>
#include <queue>
int main() {
int n;
cin >> n;
int ac(0), wa(0), tle(0), re(0);
rep(i, n) {
string... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 196 |
#include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (int)(n); i++)
#define int long long
#define ll long long
using namespace std;
signed main() {
int n;
cin >> n;
string s[100001];
int a = 0, b = 0, c = 0, d = 0;
rep(i, n) {
cin >> s[i];
if (s[i] == "AC")
a++;
if (s[i] == "WA")
... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (int)(n); i++)
#define int long long
#define ll long long
using namespace std;
signed main() {
int n;
cin >> n;
string s[100001];
int a = 0, b = 0, c = 0, d = 0;
rep(i, n) {
cin >> s[i];
if (s[i] == "AC")
a++;
if (s[i] == "WA")
... | [["+", 0, 14, 8, 9, 0, 14, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 14, 8, 9, 0, 46]] | 1 | 170 |
// Generated at 2020-07-31 22:53:03 UTC+8
// Created by Alphagocc
#include <bits/stdc++.h>
#ifdef USE_PBDS
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/priority_queue.hpp>
#endif
using namespace std;
#define FI __inline__ __attribute__((always_inline))
#define TN typename
#define TP template
class IO {
... | // Generated at 2020-07-31 22:54:46 UTC+8
// Created by Alphagocc
#include <bits/stdc++.h>
#ifdef USE_PBDS
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/priority_queue.hpp>
#endif
using namespace std;
#define FI __inline__ __attribute__((always_inline))
#define TN typename
#define TP template
class IO {
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 3, 4, 0, 69, 341, 342, 0, 5, 0, 6], ["+", 3, 4, 0, 69, 341, 342, 0, 5, 0, 6]] | 1 | 1,691 |
#include <bits/stdc++.h>
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0); ... | #include <bits/stdc++.h>
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0); ... | [["-", 8, 9, 0, 338, 12, 83, 0, 5, 0, 6], ["+", 8, 9, 0, 338, 12, 83, 0, 5, 0, 6]] | 1 | 104 |
#include <iostream>
using namespace std;
int main() {
int t;
cin >> t;
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for (int i = 0; i < t; i++) {
string n;
cin >> n;
if (n == "AC") {
AC += 1;
} else if (n == "WA") {
WA += 1;
} else if (n == "TLE") {
TLE += 1;... | #include <iostream>
using namespace std;
int main() {
int t;
cin >> t;
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for (int i = 0; i < t; i++) {
string n;
cin >> n;
if (n == "AC") {
AC += 1;
} else if (n == "WA") {
WA += 1;
} else if (n == "TLE") {
TLE += 1;... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 188 |
n = int(input())
judge = list(input() for _ in range(n))
ac, wa, tle, re = 0
for i in judge:
if i == 'AC':
ac = ac + 1
elif i == 'WA':
wa = wa + 1
elif i == 'TLE':
tle = tle + 1
elif i == 'RE':
re = re + 1
print('AC x ' + str(ac))
print('WA x ' + str(wa))
print('TLE x ' + str(tle))
print('RE x '... | n = int(input())
judge = list(input() for _ in range(n))
ac = wa = tle = re = 0
for i in judge:
if i == 'AC':
ac = ac + 1
elif i == 'WA':
wa = wa + 1
elif i == 'TLE':
tle = tle + 1
elif i == 'RE':
re = re + 1
print('AC x ' + str(ac))
print('WA x ' + str(wa))
print('TLE x ' + str(tle))
print('RE ... | [["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 662, 0, 32], ["+", 0, 1, 0, 662, 12, 662, 12, 662, 0, 32]] | 5 | 129 |
#include <bits/stdc++.h>
#include <cmath>
using namespace std;
typedef long long int ll;
#define in insert
#define rep(i, n) for (ll i = 0; i < n; i++)
#define pb push_back
#define N 200001
int main() {
ll t;
cin >> t;
map<string, ll> m;
m["WA"]++;
m["TLE"]++;
m["AC"]++;
m["RE"]++;
while (t--) {
st... | #include <bits/stdc++.h>
#include <cmath>
using namespace std;
typedef long long int ll;
#define in insert
#define rep(i, n) for (ll i = 0; i < n; i++)
#define pb push_back
#define N 200001
int main() {
ll t;
cin >> t;
map<string, ll> m;
m["WA"]++;
m["TLE"]++;
m["AC"]++;
m["RE"]++;
while (t--) {
st... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 220 |
n=int(input())
ac, wa, tle, re=0, 0, 0, 0
for i in range(n):
str=input(str())
if str=='AC':
ac=ac+1
elif str=='WA':
wa=wa+1
elif str=='TLE':
tle=tle+1
elif str=='RE':
re=re+1
print('AC x ', ac)
print('WA x ', wa)
print('TLE x ', tle)
print('RE x ', re) | n=int(input())
ac, wa, tle, re=0, 0, 0, 0
for i in range(n):
s=input(str())
if s=='AC':
ac=ac+1
elif s=='WA':
wa=wa+1
elif s=='TLE':
tle=tle+1
elif s=='RE':
re=re+1
print('AC x ', ac)
print('WA x ', wa)
print('TLE x ', tle)
print('RE x ', re) | [["-", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 0, 22], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 0, 22]] | 5 | 119 |
N = int(input())
s = [input() for i in range(N)]
res = {
'AC' : 0,
'TLE' : 0,
'WA' : 0,
'RE' : 0
}
for k in s:
res[k] = res[k] + 1
for k, v in res.items():
print(k + ' x ' + str(v))
| N = int(input())
s = [input() for i in range(N)]
res = {
'AC' : 0,
'WA' : 0,
'TLE' : 0,
'RE' : 0
}
for k in s:
res[k] = res[k] + 1
for k, v in res.items():
print(k + ' x ' + str(v)) | [["-", 0, 662, 12, 680, 0, 569, 448, 557, 0, 6], ["+", 0, 662, 12, 680, 0, 569, 448, 557, 0, 6]] | 5 | 89 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, ac = 0, wa = 0, tle = 0, re = 0;
string a;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a;
if (a == "AC")
ac++;
if (a == "WA")
wa++;
if (a == "TLE")
tle++;
if (a == "RE")
re++;
}
cout << "AC x"... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, ac = 0, wa = 0, tle = 0, re = 0;
string a;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a;
if (a == "AC")
ac++;
if (a == "WA")
wa++;
if (a == "TLE")
tle++;
if (a == "RE")
re++;
}
cout << "AC x ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 142 |
ac = 0
wa = 0
tle = 0
re = 0
input_list = Array.new
while line = gets
input_list << line.chomp! # 改行を削除
end
input_list.each do |input|
case input
when "AC"
ac +=1
when "WA"
wa +=1
when "TLE"
tle +=1
when "RE"
re +=1
else
end
end
p "AC x #{ac}"
p "WA x #{wa}"
p "TLE x #{tle... | ac = 0
wa = 0
tle = 0
re = 0
input_list = Array.new
while line = gets
input_list << line.chomp! # 改行を削除
end
input_list.each do |input|
case input
when "AC"
ac +=1
when "WA"
wa +=1
when "TLE"
tle +=1
when "RE"
re +=1
else
end
end
puts "AC x #{ac}"
puts "WA x #{wa}"
puts "TL... | [["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]] | 4 | 96 |
#include <bits/stdc++.h>
using namespace std;
long long t, ac, we, re, tle;
string s;
int main() {
cin >> t;
while (t--) {
cin >> s;
if (s == "AC") {
ac++;
}
if (s == "WE") {
we++;
}
if (s == "RE") {
re++;
}
if (s == "TLE") {
tle++;
}
}
cout << "AC x "... | #include <bits/stdc++.h>
using namespace std;
long long t, ac, we, re, tle;
string s;
int main() {
cin >> t;
while (t--) {
cin >> s;
if (s == "AC") {
ac++;
}
if (s == "WA") {
we++;
}
if (s == "RE") {
re++;
}
if (s == "TLE") {
tle++;
}
}
cout << "AC x "... | [["-", 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 | 134 |
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int AC = 0, WA = 0, RE = 0, TLE = 0;
string s;
for (int i = 0; i < N; i++) {
cin >> s;
if (s.compare("AC") == 0) {
AC++;
} else if (s.compare("WA") == 0) {
WA++;
} else if (s.compare("RE") == 0) {
RE++;
... | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int AC = 0, WA = 0, RE = 0, TLE = 0;
string s;
for (int i = 0; i < N; i++) {
cin >> s;
if (s.compare("AC") == 0) {
AC++;
} else if (s.compare("WA") == 0) {
WA++;
} else if (s.compare("RE") == 0) {
RE++;
... | [["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 151]] | 1 | 153 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define repr(i, n) for (int i = n - 1; i >= 0; i--)
#define MAX(a, b) a = a > b ? a : b
#define MIN(a, b) a = a < b ? a : b
#define REP(i, x, n) for (int i = x; i < n; i++)
#define REPR(i, x, n) for (int i = n - 1; i >= x; i--)
#define pb push_back
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define repr(i, n) for (int i = n - 1; i >= 0; i--)
#define MAX(a, b) a = a > b ? a : b
#define MIN(a, b) a = a < b ? a : b
#define REP(i, x, n) for (int i = x; i < n; i++)
#define REPR(i, x, n) for (int i = n - 1; i >= x; i--)
#define pb push_back
... | [["-", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6], ["+", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6]] | 1 | 811 |
#include <stdio.h>
#include <string.h>
int main() {
int n;
char s[4];
int a[4] = {0};
scanf("%d", &n);
while (n--) {
scanf("%s", s);
if (!strcmp(s, "AC"))
a[0]++;
if (!strcmp(s, "WA"))
a[1]++;
if (!strcmp(s, "TLE"))
a[2]++;
if (!strcmp(s, "RE"))
a[3]++;
}
printf... | #include <stdio.h>
#include <string.h>
int main() {
int n;
char s[4];
int a[4] = {0};
scanf("%d", &n);
while (n--) {
scanf("%s", s);
if (!strcmp(s, "AC"))
a[0]++;
if (!strcmp(s, "WA"))
a[1]++;
if (!strcmp(s, "TLE"))
a[2]++;
if (!strcmp(s, "RE"))
a[3]++;
}
printf... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 182 |
n = int(input())
li = [0]*4
for _ in n:
s = input()
if s == 'AC':
li[0]+=1
elif s == 'WA':
li[1]+=1
elif s == 'TLE':
li[2]+=1
elif s == 'RE':
li[3]+=1
print('AC x ',li[0])
print('WA x ',li[1])
print('TLE x ',li[2])
print('RE x ',li[3]) | n = int(input())
li = [0]*4
for _ in range(n):
s = input()
if s == 'AC':
li[0]+=1
elif s == 'WA':
li[1]+=1
elif s == 'TLE':
li[2]+=1
elif s == 'RE':
li[3]+=1
print('AC x ',li[0])
print('WA x ',li[1])
print('TLE x ',li[2])
print('RE x ',li[3]) | [["+", 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, 25]] | 5 | 121 |
N=int(input())
s=[]
cnt=[0 for i in range(4)]
for i in range(N):
s.append(input())
for i in range(N):
if s[i]=="AC":
cnt[0]+=1
elif s[i]=="WA":
cnt[1]+=1
elif s[i]=="TLE":
cnt[2]+=1
elif s[i]=="RE":
cnt[3]+=1
print("AC x {}".format(cnt[0]))
print("WA x {}".format(cn... | N=int(input())
s=[]
cnt=[0 for i in range(4)]
for i in range(N):
s.append(input())
for i in range(N):
if s[i]=="AC":
cnt[0]+=1
elif s[i]=="WA":
cnt[1]+=1
elif s[i]=="TLE":
cnt[2]+=1
elif s[i]=="RE":
cnt[3]+=1
print("AC x {}".format(cnt[0]))
print("WA x {}".format(cn... | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 168 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll mod = 1000000007;
#define pll pair<ll, ll>
#define pii pair<int32_t, int32_t>
#define loop(i, n) for (int64_t i = 0; i < n; i++)
#define loop1(i, a, b) for (int64_t i = a; i <= b; i++)
#define rloop(i, n) for (int64_t i = n - 1; i >= 0; i--)
#define... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll mod = 1000000007;
#define pll pair<ll, ll>
#define pii pair<int32_t, int32_t>
#define loop(i, n) for (int64_t i = 0; i < n; i++)
#define loop1(i, a, b) for (int64_t i = a; i <= b; i++)
#define rloop(i, n) for (int64_t i = n - 1; i >= 0; i--)
#define... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 271 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define sz(x) (int)(x).size()
#define all(x) (x).begin(), (x).end()
const int INF = 1e4;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int n;
cin >> n;
int c1 = 0, c2 = 0, c3 = 0, c4 = 0;
while ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define sz(x) (int)(x).size()
#define all(x) (x).begin(), (x).end()
const int INF = 1e4;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int n;
cin >> n;
int c1 = 0, c2 = 0, c3 = 0, c4 = 0;
while ... | [["-", 8, 9, 0, 43, 49, 50, 51, 103, 0, 125], ["+", 8, 9, 0, 43, 49, 50, 51, 103, 0, 125]] | 1 | 237 |
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll n;
cin >> n;
map<string, ll> mp;
for (ll i = 0; i < n; i++) {
string s;
cin >> s;
mp[s]++;
}
cout << "AC"
<< " "
<< "X"
<< " " << mp["AC"] << "\n";
cout << "WA"
<< " "
<< ... | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll n;
cin >> n;
map<string, ll> mp;
for (ll i = 0; i < n; i++) {
string s;
cin >> s;
mp[s]++;
}
cout << "AC"
<< " "
<< "x"
<< " " << mp["AC"] << "\n";
cout << "WA"
<< " "
<< ... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 178 |
#include <bits/stdc++.h>
#define rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define SZ(x) ((int)(x).size())
typedef long long ll;
typedef unsigned long long ull;
typedef unsigned int uint;
struct Vector {
double x, y;
};
template <class T> inline bool chmin(T &a, T b) {... | #include <bits/stdc++.h>
#define rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define SZ(x) ((int)(x).size())
typedef long long ll;
typedef unsigned long long ull;
typedef unsigned int uint;
struct Vector {
double x, y;
};
template <class T> inline bool chmin(T &a, T b) {... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 285 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int C0, C1, C2, C3;
C0 = 0;
C1 = 0;
C2 = 0;
C3 = 0;
vector<string> answer(N);
for (int i = 0; i < N; i++) {
cin >> answer.at(i);
}
for (int i = 0; i < N; i++) {
if (answer.at(i) == "AC") {
C0++;
} else ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int C0, C1, C2, C3;
C0 = 0;
C1 = 0;
C2 = 0;
C3 = 0;
vector<string> answer(N);
for (int i = 0; i < N; i++) {
cin >> answer.at(i);
}
for (int i = 0; i < N; i++) {
if (answer.at(i) == "AC") {
C0++;
} else ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 212 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long int N;
cin >> N;
long int ac = 0, wa = 0, tle = 0, re = 0;
for (long int i = 0; i < N; i++) {
string input;
cin >> input;
if (input == "AC") {
ac++;
}
if (input == "WA") {
wa++;
}
if (input == "TLE") {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
long int N;
cin >> N;
long int ac = 0, wa = 0, tle = 0, re = 0;
for (long int i = 0; i < N; i++) {
string input;
cin >> input;
if (input == "AC") {
ac++;
}
if (input == "WA") {
wa++;
}
if (input == "TLE") {
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 165 |
// om namah shivaaay//
#include <bits/stdc++.h>
#define input \
int t; \
cin >> t; \
while (t--)
#define Om_nama... | // om namah shivaaay//
#include <bits/stdc++.h>
#define input \
int t; \
cin >> t; \
while (t--)
#define Om_nama... | [["-", 374, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 374, 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 | 183 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> arr(4);
while (n--) {
string s;
cin >> s;
if (s == "AC")
arr[0]++;
else if (s == "WA")
arr[1]++;
else if (s == "TLE")
arr[2]++;
else if (s == "CE")
arr[3]+... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> arr(4);
while (n--) {
string s;
cin >> s;
if (s == "AC")
arr[0]++;
else if (s == "WA")
arr[1]++;
else if (s == "TLE")
arr[2]++;
else if (s == "RE")
arr[3]+... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 162 |
L = []
for i in range(int(input())):
L.append(input())
print(L)
for j in ['AC','WA','TLE','RE']:
print(j,'x',L.count(j)) | L = []
for i in range(int(input())):
L.append(input())
for j in ['AC','WA','TLE','RE']:
print(j,'x',L.count(j)) | [["-", 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 | 65 |
N = int(input())
var = [str(input()) for i in range(N)]
judges = ['AC', 'WA', 'TLE', 'RE']
for j in judges:
print('{} x {}'.format(j, (np.array(var) == j).sum())) | import numpy as np
N = int(input())
var = [str(input()) for i in range(N)]
judges = ['AC', 'WA', 'TLE', 'RE']
for j in judges:
print('{} x {}'.format(j, (np.array(var) == j).sum())) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 0, 656, 0, 596, 141, 704, 141, 673, 0, 22], ["+", 36, 36, 0, 656, 0, 596, 141, 704, 0, 272], ["+", 36, 36, 0, 656, 0, 596, 141, 704, 705, 22]] | 5 | 75 |
import sys
N = int(input())
array = [ input() for a in range(6) ]
base = ['AC','WA','TLE','RE']
for I in base:
print(I+' x '+str(array.count(I))) | import sys
N = int(input())
array = [ input() for a in range(N) ]
base = ['AC','WA','TLE','RE']
for I in base:
print(I+' x '+str(array.count(I))) | [["-", 12, 658, 0, 659, 12, 652, 3, 4, 0, 612], ["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 22]] | 5 | 66 |
# B - Judge Status Summary
def main(n, s):
result_table = {
'AC': 0,
'WA': 0,
'TLE': 0,
'RE': 0
}
for i in s:
result_table[i] += 1
return result_table
if __name__ == "__main__":
n = int(input())
s = []
for i in range(n):
s.append(input())
... | # B - Judge Status Summary
def main(n, s):
result_table = {
'AC': 0,
'WA': 0,
'TLE': 0,
'RE': 0
}
for i in s:
result_table[i] += 1
return result_table
if __name__ == "__main__":
n = int(input())
s = []
for i in range(n):
s.append(input())
... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 115 |
AC = WA = TLE = RE = 0
N = int(input()) #1行目のNを取得する
s = [input() for i in range(N)] #複数行の数値の入力を取得
for v in s:
if(v == "AC"):
AC+=1
elif(v == "WA"):
WA+=1
elif(v == "TLE"):
TLE+=1
else:
RE+=1
print('AC x %d' % (AC))
print('AC x %d' % (WA))
print('AC x %d' % (TLE... | AC = WA = TLE = RE = 0
N = int(input()) #1行目のNを取得する
s = [input() for i in range(N)] #複数行の数値の入力を取得
for v in s:
if(v == "AC"):
AC+=1
elif(v == "WA"):
WA+=1
elif(v == "TLE"):
TLE+=1
else:
RE+=1
print('AC x %d' % (AC))
print('WA x %d' % (WA))
print('TLE x %d' % (TL... | [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 119 |
n = input()
s = [input() for _ in range(n)]
print('AC x ', s.count('AC'))
print('WA x ', s.count('WA'))
print('TLE x ', s.count('TLE'))
print('RE x ', s.count('RE'))
| n = int(input())
s = [input() for _ in range(n)]
print('AC x ', s.count('AC'))
print('WA x ', s.count('WA'))
print('TLE x ', s.count('TLE'))
print('RE x ', s.count('RE'))
| [["+", 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 | 79 |
rmap = {
"AC": 0,
"WA": 0,
"TLE": 0,
"RE": 0,
}
output_order = ["AC", "WA", "TLE", "RE"]
N - int(input())
for _ in range(N):
rmap[input()] += 1
for k in output_order:
print("{} x {}".format(k, rmap[k])) | rmap = {
"AC": 0,
"WA": 0,
"TLE": 0,
"RE": 0,
}
output_order = ["AC", "WA", "TLE", "RE"]
N = int(input())
for _ in range(N):
rmap[input()] += 1
for k in output_order:
print("{} x {}".format(k, rmap[k])) | [["-", 36, 36, 0, 656, 0, 1, 0, 657, 17, 33], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32]] | 5 | 92 |
#include <stdio.h>
#include <string.h>
int main() {
int N;
char tmp;
scanf("%d%c", &N, &tmp);
int ac = 0, wa = 0, tle = 0, re = 0;
char *s;
for (int i = 0; i < N; i++) {
fgets(s, 5, stdin);
if (!strcmp(s, "AC\n"))
ac++;
if (!strcmp(s, "WA\n"))
wa++;
if (!strcmp(s, "TLE\n"))
... | #include <stdio.h>
#include <string.h>
int main() {
int N;
char tmp;
scanf("%d%c", &N, &tmp);
int ac = 0, wa = 0, tle = 0, re = 0;
char s[5];
for (int i = 0; i < N; i++) {
fgets(s, 5, stdin);
if (!strcmp(s, "AC\n"))
ac++;
if (!strcmp(s, "WA\n"))
wa++;
if (!strcmp(s, "TLE\n"))
... | [["-", 0, 14, 8, 9, 0, 43, 49, 84, 0, 48], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 0, 70], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 0, 73]] | 1 | 182 |
#include <bits/stdc++.h>
#define endl '\n'
#define int long long
using namespace std;
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "... | #include <bits/stdc++.h>
#define endl '\n'
#define int long long
using namespace std;
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 179 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
map<string, int> m;
m["AC"] = 0;
m["WA"] = 0;
m["TLE"] = 0;
m["RE"] = 0;
while (n--) {
string s;
cin >> s;
m[s]++;
}
cout << "AC * " << m["AC"] << "\n";
cout << "WA * " << m["WA"] << "\n";
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;
while (n--) {
string s;
cin >> s;
m[s]++;
}
cout << "AC x " << m["AC"] << "\n";
cout << "WA x " << m["WA"] << "\n";
cout << "TLE x " <... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 154 |
#include <bits/stdc++.h>
using namespace std;
int ac = 0, tle = 0, wa = 0, re = 0;
int main() {
int t;
cin >> t;
string s;
for (int i = 0; i < t; i++) {
cin >> s;
if (s[0] == 'A' && s[1] == 'C') {
ac++;
}
if (s[0] == 'W' && s[1] == 'A') {
wa++;
}
if (s[0] == 'T' && s[1] == 'L... | #include <bits/stdc++.h>
using namespace std;
int ac = 0, tle = 0, wa = 0, re = 0;
int main() {
int t;
cin >> t;
string s;
for (int i = 0; i < t; i++) {
cin >> s;
if (s[0] == 'A' && s[1] == 'C') {
ac++;
}
if (s[0] == 'W' && s[1] == 'A') {
wa++;
}
if (s[0] == 'T' && s[1] == 'L... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 208 |
# coding: utf-8
N=int(input())
L=["AC","WA","TLE","RE"]
cnt=[0,0,0,0]
for i in range(N):
s=input()
for j in range(4):
if s==L[j]:
cnt[j]+=1
for i in range(4):
print("{} × {}".format(L[i],cnt[i])) | # coding: utf-8
N=int(input())
L=["AC","WA","TLE","RE"]
cnt=[0,0,0,0]
for i in range(N):
s=input()
for j in range(4):
if s==L[j]:
cnt[j]+=1
for i in range(4):
print("{} x {}".format(L[i],cnt[i])) | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 101 |
n = int(input())
ans = {'AC': 0, 'WA':0, 'TLE':0, 'RE':0}
for i in range(n):
s = input()
ans[s] = ans[s] + 1
for s in ans.keys():
print("{} × {}".format(s, ans[s]))
| n = int(input())
ans = {'AC': 0, 'WA':0, 'TLE':0, 'RE':0}
for i in range(n):
s = input()
ans[s] = ans[s] + 1
for s in ans.keys():
print("{} x {}".format(s, ans[s]))
| [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 84 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string str;
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
int count;
cin >> count;
for (int i = 0; i < count; i++) {
cin >> str;
if (str == "AC")
ac++;
else if (str == "WA")
wa++;
else if (str == "TLE")
tl... | #include <bits/stdc++.h>
using namespace std;
int main() {
string str;
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
int count;
cin >> count;
for (int i = 0; i < count; i++) {
cin >> str;
if (str == "AC")
ac++;
else if (str == "WA")
wa++;
else if (str == "TLE")
tl... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 141 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
string S[N];
for (int i = 0; i < N; i++) {
cin >> S[i];
}
int C[2][2] = {{0, 0}, {0, 0}};
for (int i = 0; i < N; i++) {
if (S[i] == "AC") {
C[0][0]++;
} else if (S[i] == "WA") {
C[0][1]++;
} else if ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
string S[N];
for (int i = 0; i < N; i++) {
cin >> S[i];
}
int C[2][2] = {{0, 0}, {0, 0}};
for (int i = 0; i < N; i++) {
if (S[i] == "AC") {
C[0][0]++;
} else if (S[i] == "WA") {
C[0][1]++;
} else if ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 242 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
String a[] = new String[N];
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for (int count = 0; count < N; count++) {
a[count] = sc.next();... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
String a[] = new String[N];
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for (int count = 0; count < N; count++) {
a[count] = sc.next();... | [["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]] | 3 | 219 |
N = int(input())
a, w, t, r = 0, 0, 0, 0
for i in range(N):
S = input()
if S == 'AC':
a += 1
elif S == 'WA':
w += 1
elif S == 'TLE':
t += 1
else:
r += 1
print('AC * ' + str(a))
print('WA * ' + str(w))
print('SLE * ' + str(t))
print('RE * ' + str(r)) | N = int(input())
a, w, t, r = 0, 0, 0, 0
for _ in range(N):
S = input()
if S == 'AC':
a += 1
elif S == 'WA':
w += 1
elif S == 'TLE':
t += 1
else:
r += 1
print('AC x ' + str(a))
print('WA x ' + str(w))
print('TLE x ' + str(t))
print('RE x ' + str(r)) | [["-", 36, 36, 36, 36, 0, 656, 0, 7, 31, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 7, 31, 22], ["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 115 |
list = []
N = int(input())
list = [input() for i in range(N)]
print(list)
print("AC x " + str(list.count('AC')))
print("WA x " + str(list.count("WA")))
print("TLE x " + str(list.count("TLE")))
print("RE x " + str(list.count("RE"))) | list = []
N = int(input())
list = [input() for i in range(N)]
print("AC x " + str(list.count('AC')))
print("WA x " + str(list.count("WA")))
print("TLE x " + str(list.count("TLE")))
print("RE x " + str(list.count("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 | 102 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) begin(v), end(v)
using ll = long long;
int main() {
int n;
cin >> n;
map<string, int> mp;
rep(i, n) {
string s;
cin >> s;
mp[s]++;
}
for (string s : {"AC", "WA", "TLE", "RE"}) {
cout... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) begin(v), end(v)
using ll = long long;
int main() {
int n;
cin >> n;
map<string, int> mp;
rep(i, n) {
string s;
cin >> s;
mp[s]++;
}
for (string s : {"AC", "WA", "TLE", "RE"}) {
cout... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 108 |
a=int(input())
b=[input() for i in range(a)]
c=[AC,WA,TLE,RE]
for value in c:
print('{0} x {1}'.format(value, b.count(value)))
| a=int(input())
b=[input() for i in range(a)]
c=["AC","WA","TLE","RE"]
for value in c:
print('{0} x {1}'.format(value, b.count(value)))
| [["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 654], ["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 655]] | 5 | 56 |
#include <iostream>
using namespace std;
int main() {
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 == "wa") {
wa++;
} else if (s == "tle") {
tle++;
} else {
re++;
}
... | #include <iostream>
using namespace std;
int main() {
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 == "WA") {
wa++;
} else if (s == "TLE") {
tle++;
} else {
re++;
}
... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 192 |
#include <bits/stdc++.h>
#define sf scanf
#define pf printf
#define pb push_back
#define sz 200005
#define inf 0x3f3f3f3f
#define MOD 1000000007
#define READ freopen("in.txt", "r", stdin);
#define WRITE freopen("out.txt", "w", stdout);
#define optimize \
... | #include <bits/stdc++.h>
#define sf scanf
#define pf printf
#define pb push_back
#define sz 200005
#define inf 0x3f3f3f3f
#define MOD 1000000007
#define READ freopen("in.txt", "r", stdin);
#define WRITE freopen("out.txt", "w", stdout);
#define optimize \
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 180 |
#include <stdio.h>
int main(void) {
char buf[10];
int x;
char ans[10];
int a = 0;
int b = 0;
int c = 0;
int d = 0;
char ac[10] = "AC";
char wa[10] = "WA";
char tle[10] = "TLE";
char re[10] = "RE";
fgets(buf, sizeof(buf), stdin);
sscanf(buf, "%d", &x);
for (int i = 0; i < x; i++) {
... | #include <stdio.h>
int main(void) {
char buf[10];
int x;
char ans[10];
int a = 0;
int b = 0;
int c = 0;
int d = 0;
char ac[10] = "AC";
char wa[10] = "WA";
char tle[10] = "TLE";
char re[10] = "RE";
fgets(buf, sizeof(buf), stdin);
sscanf(buf, "%d", &x);
for (int i = 0; i < x; i++) {
... | [["+", 0, 57, 15, 23, 0, 16, 31, 69, 0, 70], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 71, 13], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 0, 73]] | 0 | 248 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int C[4] = {0, 0, 0, 0};
for (int i = 0; i < N; i++) {
string S;
cin >> S;
if (S == "AC")
C[0]++;
else if (S == "WA")
C[1]++;
else if (S == "TLE")
C[2]++;
else
C[3]++;
}
cout << "AC x ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int C[4] = {0, 0, 0, 0};
for (int i = 0; i < N; i++) {
string S;
cin >> S;
if (S == "AC")
C[0]++;
else if (S == "WA")
C[1]++;
else if (S == "TLE")
C[2]++;
else
C[3]++;
}
cout << "AC x ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 161 |
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <string.h>
using namespace std;
#define pb push_back
#define all(v) v.begin(), v.end()
#define rep(i, n, v) for (i = n; i < v; i++)
#define per(i, n, v) for (i = n; i > v; i--)
#define ff first
#define ss seco... |
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <string.h>
using namespace std;
#define pb push_back
#define all(v) v.begin(), v.end()
#define rep(i, n, v) for (i = n; i < v; i++)
#define per(i, n, v) for (i = n; i > v; i--)
#define ff first
#define ss seco... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 256 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int N;
cin >> N;
vector<string> vec(N, "");
for (int i = 0; i < N; i++) {
cin >> vec[i];
}
int AC = 0, WA = 0, TLE = 0, RE = 0;
for (int i = 0; i < N; i++) {
if (vec[i] == "AC") {
AC++;
} else if (vec[i] == "WA") {
... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int N;
cin >> N;
vector<string> vec(N, "");
for (int i = 0; i < N; i++) {
cin >> vec[i];
}
int AC = 0, WA = 0, TLE = 0, RE = 0;
for (int i = 0; i < N; i++) {
if (vec[i] == "AC") {
AC++;
} else if (vec[i] == "WA") {
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 195 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int tt;
int a, w, t, r;
cin >> tt;
a = w = t = r = 0;
while (tt--) {
string c;
cin >> c;
if (c == "AC") {
a++;
} else if (c == "WA") {
w++;
} else if (c == "TLE") {
t++;
} else {
r++;
}
}
printf... | #include <bits/stdc++.h>
using namespace std;
int main() {
int tt;
int a, w, t, r;
cin >> tt;
a = w = t = r = 0;
while (tt--) {
string c;
cin >> c;
if (c == "AC") {
a++;
} else if (c == "WA") {
w++;
} else if (c == "TLE") {
t++;
} else {
r++;
}
}
printf... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 121 |
def count_data(s):
judge_list = ['AC', 'WA', 'TEL', 'RE']
for judge in judge_list:
ans = s.count(judge)
print('{} x {}'.format(judge, ans))
n = int(input())
s = []
for i in range(n):
s.append(input())
count_data(s) | def count_data(s):
judge_list = ['AC', 'WA', 'TLE', 'RE']
for judge in judge_list:
ans = s.count(judge)
print('{} x {}'.format(judge, ans))
n = int(input())
s = []
for i in range(n):
s.append(input())
count_data(s)
| [["-", 0, 1, 0, 662, 12, 634, 0, 557, 0, 6], ["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 6]] | 5 | 83 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
map<string, int> cnt;
while (t--) {
string s;
cnt[s]++;
}
string x[] = {"AC", "WA", "TLE", "RE"};
for (int i = 0; i < 4; i++) {
cout << x[i] << " x " << cnt[x[i]] << "\n";
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
map<string, int> cnt;
while (t--) {
string s;
cin >> s;
cnt[s]++;
}
string x[] = {"AC", "WA", "TLE", "RE"};
for (int i = 0; i < 4; i++) {
cout << x[i] << " x " << cnt[x[i]] << "\n";
}
}
| [["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 1 | 105 |
n=int(input())
dic={}
dic["AC"]=0
dic["WA"]=0
dic["TLE"]=0
dic["RE"]=0
for x in range(n):
a=input()
dic[a]=dic[a]+1
print("AC",x,dic["AC"])
print("WA",x,dic["WA"])
print("TLE",x,dic["TLE"])
print("RE",x,dic["RE"]) | n=int(input())
dic={}
dic["AC"]=0
dic["WA"]=0
dic["TLE"]=0
dic["RE"]=0
for x in range(n):
a=input()
dic[a]=dic[a]+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, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 128 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int test;
string s;
int count_ac = 0, count_wa = 0, count_tle = 0, count_re = 0;
cin >> test;
while (test--) {
cin >> s;
if (s == "AC") {
count_ac++;
} else if (s == "WA") {
count_wa++;
} else if (s == "TLE") {
cou... | #include <bits/stdc++.h>
using namespace std;
int main() {
int test;
string s;
int count_ac = 0, count_wa = 0, count_tle = 0, count_re = 0;
cin >> test;
while (test--) {
cin >> s;
if (s == "AC") {
count_ac++;
} else if (s == "WA") {
count_wa++;
} else if (s == "TLE") {
cou... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 148 |
#include <cstring>
#include <iostream>
int c0, c1, c2, c3;
int main() {
int n;
scanf("%d", &n);
char s[10];
for (int i = 0; i < n; ++i) {
scanf("%s", s);
if (strcmp(s, "AC"))
c0++;
else if (strcmp(s, "WA"))
c1++;
else if (strcmp(s, "TLE"))
c2++;
else if (strcmp(s, "RE"))
... | #include <cstring>
#include <iostream>
int c0, c1, c2, c3;
int main() {
int n;
scanf("%d", &n);
char s[10];
for (int i = 0; i < n; ++i) {
scanf("%s", s);
if (!strcmp(s, "AC"))
c0++;
else if (!strcmp(s, "WA"))
c1++;
else if (!strcmp(s, "TLE"))
c2++;
else if (!strcmp(s, "RE... | [["+", 8, 9, 0, 57, 15, 339, 51, 91, 17, 111], ["+", 75, 76, 0, 57, 15, 339, 51, 91, 17, 111]] | 1 | 165 |
N = int(input())
d = {'AC':0,'WA':0,'TLE':0,'RE':0}
for i in range(N):
wrk = input()
d[wrk] = d[wrk]+1
print('AC X ',d['AC'])
print('WA x ',d['WA'])
print('TLE x ',d['TLE'])
print('RE x ',d['RE']) | N = int(input())
d = {'AC':0,'WA':0,'TLE':0,'RE':0}
for i in range(N):
wrk = input()
d[wrk] = d[wrk]+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 | 111 |
#include <iostream>
using namespace std;
int main() {
int t;
int c1 = 0, c2 = 0, c3 = 0, c4 = 0;
cin >> t;
while (t > 0) {
string s;
cin >> s;
if (s == "AC")
c1++;
else if (s == "WA")
c2++;
else if (s == "TLE")
c3++;
else if (s == "RE")
c4++;
t--;
}
cout <... | #include <iostream>
using namespace std;
int main() {
int t;
int c1 = 0, c2 = 0, c3 = 0, c4 = 0;
cin >> t;
while (t > 0) {
string s;
cin >> s;
if (s == "AC")
c1++;
else if (s == "WA")
c2++;
else if (s == "TLE")
c3++;
else if (s == "RE")
c4++;
t--;
}
cout <... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 144 |
#include <algorithm>
#include <iostream>
#include <list>
#include <queue>
#include <stack>
#include <vector>
using namespace std;
#define fast_cin() \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... |
#include <algorithm>
#include <iostream>
#include <list>
#include <queue>
#include <stack>
#include <vector>
using namespace std;
#define fast_cin() \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 187 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.