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 <cctype>
#include <cmath>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <time.h>
#include <tuple>
#include <v... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <time.h>
#include <tuple>
#include <v... | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 994 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a = b;
return 1;
}
return 0;
}
signed main() {
int n;
cin >> ... | #include <bits/stdc++.h>
using namespace std;
#define int long long
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a = b;
return 1;
}
return 0;
}
signed main() {
int n;
cin >> ... | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 31, 13], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 107 |
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long int lli;
typedef unsigned long long int uli;
typedef long double Lf;
typedef pair<int, int> pii;
typedef vector<int> vi;
#define fastIO \
std::ios::sync_with_stdio(false); ... | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long int lli;
typedef unsigned long long int uli;
typedef long double Lf;
typedef pair<int, int> pii;
typedef vector<int> vi;
#define fastIO \
std::ios::sync_with_stdio(false); ... | [["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 31, 13], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 25]] | 1 | 1,086 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
int main() {
ios_base::sync_with_stdio(false), cin.tie(0);
cout.precision(10);
cout << fixed;
int n;
cin >> n;
cout << min(0, 1000 - n % 1000);
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
int main() {
ios_base::sync_with_stdio(false), cin.tie(0);
cout.precision(10);
cout << fixed;
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000;
return 0;
}
| [["-", 8, 9, 0, 1, 0, 16, 12, 2, 63, 22], ["-", 0, 1, 0, 16, 12, 2, 3, 4, 0, 13], ["-", 0, 1, 0, 16, 12, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]] | 1 | 70 |
#include <bits/stdc++.h>
#define D(x) cout << #x << "=" << x << endl
#define De(...)
using namespace std;
int _;
int n;
int main() {
// for(scanf("%d",&_);_;_--)
scanf("%d", &n);
printf("%d\n", 1000 - n % 1000);
return 0;
}
| #include <bits/stdc++.h>
#define D(x) cout << #x << "=" << x << endl
#define De(...)
using namespace std;
int _;
int n;
int main() {
// for(scanf("%d",&_);_;_--)
scanf("%d", &n);
printf("%d\n", (1000 - n % 1000) % 1000);
return 0;
}
| [["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25]] | 1 | 57 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define ordered_set \
tree<ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update>
#define... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define ordered_set \
tree<ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update>
#define... | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 31, 13], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 90 |
#include <bits/stdc++.h>
using namespace std;
template <class TH> void _dbg(const char *sdbg, TH h) {
cerr << sdbg << "=" << h << "\n";
}
template <class TH, class... TA> void _dbg(const char *sdbg, TH h, TA... a) {
while (*sdbg != ',')
cerr << *sdbg++;
cerr << "=" << h << ",";
_dbg(sdbg + 1, a...);
}
te... | #include <bits/stdc++.h>
using namespace std;
template <class TH> void _dbg(const char *sdbg, TH h) {
cerr << sdbg << "=" << h << "\n";
}
template <class TH, class... TA> void _dbg(const char *sdbg, TH h, TA... a) {
while (*sdbg != ',')
cerr << *sdbg++;
cerr << "=" << h << ",";
_dbg(sdbg + 1, a...);
}
te... | [["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 109], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 259 |
#include <bits/stdc++.h>
#define IOS \
{ \
ios::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
#define IOS \
{ \
ios::sync_with_stdio(0); \
cin.tie(0); ... | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 148 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<string> S(N);
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for (int i = 0; i < N; i++) {
cin >> S.at(i);
if (S.at(i) == "AC") {
AC++;
}
if (S.at(i) == "WA") {
WA++;
}
if (S.at(i) ==... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<string> S(N);
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for (int i = 0; i < N; i++) {
cin >> S.at(i);
if (S.at(i) == "AC") {
AC++;
}
if (S.at(i) == "WA") {
WA++;
}
if (S.at(i) ==... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 186 |
N=int(input())
ac=0
wa=0
tle=0
re=0
for _ in range(N):
s=input()
if 'AC'==s:
ac+=1
elif 'WA'==s:
wa+=1
elif 'TLE'==s:
tle+=1
elif 'RE'==s:
re+=1
print('AC',x,ac)
print('WA',x,wa)
print('TLE',x,tle)
print('RE',x,re)
| N=int(input())
ac=0
wa=0
tle=0
re=0
for _ in range(N):
s=input()
if 'AC'==s:
ac+=1
elif 'WA'==s:
wa+=1
elif 'TLE'==s:
tle+=1
elif 'RE'==s:
re+=1
print('AC','x',ac)
print('WA','x',wa)
print('TLE','x',tle)
print('RE','x',re) | [["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 113 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
typedef pair<ll, P> P1;
typedef pair<P, P> P2;
#define pu ... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
typedef pair<ll, P> P1;
typedef pair<P, P> P2;
#define pu ... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 285 |
#include <bits/stdc++.h>
using namespace std;
void judge(int &ac, int &wa, int &tle, int &re) {
string s;
cin >> s;
if (s == "AC") {
ac += 1;
} else if (s == "WA") {
wa += 1;
} else if (s == "TLE") {
tle += 1;
} else if (s == "RE") {
re += 1;
}
}
int main() {
int n, ac, wa, tle, re;
c... | #include <bits/stdc++.h>
using namespace std;
void judge(int &ac, int &wa, int &tle, int &re) {
string s;
cin >> s;
if (s == "AC") {
ac += 1;
} else if (s == "WA") {
wa += 1;
} else if (s == "TLE") {
tle += 1;
} else if (s == "RE") {
re += 1;
}
}
int main() {
int n, ac, wa, tle, re;
c... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 197 |
#include <bitset>
#include <cmath>
#include <ctime>
#include <iostream>
#include <random>
#include <vector>
using namespace std;
using ll = long long int;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
ll mod = 1000000007;
int main() {
int n;
cin >> n;
int a = 0, w = 0, t = 0, r =... | #include <bitset>
#include <cmath>
#include <ctime>
#include <iostream>
#include <random>
#include <vector>
using namespace std;
using ll = long long int;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
ll mod = 1000000007;
int main() {
int n;
cin >> n;
int a = 0, w = 0, t = 0, r =... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 170 |
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int a, ac = 0, wa = 0, tle = 0, re = 0;
string b;
cin >> a;
for (int i = 1; i <= a; i++) {
cin >> b;
if (b == "AC") {
ac++;
} else if (b == "WA") {
wa++;
} else if (b == "TLE") {
t... | #include <bits/stdc++.h>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int a, ac = 0, wa = 0, tle = 0, re = 0;
string b;
cin >> a;
for (int i = 1; i <= a; i++) {
cin >> b;
if (b == "AC") {
ac++;
} else if (b == "WA") {
wa++;
} else if (b == "TLE") {
t... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 152 |
#include <iostream>
using namespace std;
int main() {
int c0 = 0, c1 = 0, c2 = 0, c3 = 0, n;
cin >> n;
string arr[n];
for (int i = 0; i < n; i++) {
cin >> arr[i];
if (arr[i] == "AC")
c0 = c0 + 1;
else if (arr[i] == "WA")
c1 = c1 + 1;
else if (arr[i] == "TLE")
c2 = c2 + 1;
... | #include <iostream>
using namespace std;
int main() {
int c0 = 0, c1 = 0, c2 = 0, c3 = 0, n;
cin >> n;
string arr[n];
for (int i = 0; i < n; i++) {
cin >> arr[i];
if (arr[i] == "AC")
c0 = c0 + 1;
else if (arr[i] == "WA")
c1 = c1 + 1;
else if (arr[i] == "TLE")
c2 = c2 + 1;
... | [["-", 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;
void solotion() {
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"] << endl;
cout << "WA X " << mp["WA"] << endl;
cout << "TLE X " << mp["TLE"] << endl;
cout << "RE X " ... | #include <bits/stdc++.h>
using namespace std;
void solotion() {
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"] << endl;
cout << "WA x " << mp["WA"] << endl;
cout << "TLE x " << mp["TLE"] << endl;
cout << "RE x " ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 129 |
N = int (input())
S = [input() for i in range(0,N)]
C0=0 #AC
C1=0 #WA
C2=0 #TLE
C3=0 #RE
for i in range(0,N):
if S[i]=='AC':
C0+=1
elif S[i]=='WA':
C1+=1
elif S[i]=='TLE':
C2+=1
elif S[i]=='RE':
C3+=0
print('AC x', C0)
print('WA x', C1)
print('TLE x', C2)
print('RE x'... | N = int (input())
S = [input() for i in range(0,N)]
C0=0 #AC
C1=0 #WA
C2=0 #TLE
C3=0 #RE
for i in range(0,N):
if S[i]=='AC':
C0+=1
elif S[i]=='WA':
C1+=1
elif S[i]=='TLE':
C2+=1
elif S[i]=='RE':
C3+=1
print('AC x', C0)
print('WA x', C1)
print('TLE x', C2)
print('RE x'... | [["-", 75, 665, 64, 196, 0, 1, 0, 677, 12, 612], ["+", 75, 665, 64, 196, 0, 1, 0, 677, 12, 612]] | 5 | 134 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int AC = 0, WA = 0, TLE = 0, RE = 0;
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
scanner.nextLine();
for (int i = 0; i < n; i++) {
String x = scanner.nextLine();
if (x.equa... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int AC = 0, WA = 0, TLE = 0, RE = 0;
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
scanner.nextLine();
for (int i = 0; i < n; i++) {
String x = scanner.nextLine();
if (x.equa... | [["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]] | 3 | 203 |
#include <algorithm>
#include <cassert>
#include <climits>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
//#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define F first
#de... | #include <algorithm>
#include <cassert>
#include <climits>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
//#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define F first
#de... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 181 |
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define RREP(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
int main(void) {
int n;
cin >> n;
pair<string, int> p[4];
p[0].fir... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define RREP(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
int main(void) {
int n;
cin >> n;
pair<string, int> p[4];
p[0].fir... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["-", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35]] | 1 | 190 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (ll i = 0; i < (ll)n; ++i)
int main() {
ll n;
cin >> n;
int a = 0, w = 0, t = 0, r = 0;
rep(i, n) {
string s;
cin >> s;
if (s == "AC")
a++;
if (s == "WA")
w++;
if (s == "TLE")
t++;
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (ll i = 0; i < (ll)n; ++i)
int main() {
ll n;
cin >> n;
ll a = 0, w = 0, t = 0, r = 0;
rep(i, n) {
string s;
cin >> s;
if (s == "AC")
a++;
if (s == "WA")
w++;
if (s == "TLE")
t++;
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 152 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define REP(i, n) for (int i = 1; i <= n; i++)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#define all(V) V.begin(), V.end()
#define PB push_back
using namespace std;
typedef long long ll;
int main() {
int n;
cin >> n;
ma... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define REP(i, n) for (int i = 1; i <= n; i++)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#define all(V) V.begin(), V.end()
#define PB push_back
using namespace std;
typedef long long ll;
int main() {
int n;
cin >> n;
ma... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 208 |
#include <bits/stdc++.h>
using namespace std;
#define mod (int)1000000007
#define MOD (int)10000000007
#define X 1001100011100001111ll
#define M 26388279066623ll
#define all(a) a.begin(), a.end()
#define for0(i, n) for (int i = 0; i < n; i++)
#define for0e(i, n) for (int i = 0; i <= n; i++)
#define for1(i, n) for (int ... | #include <bits/stdc++.h>
using namespace std;
#define mod (int)1000000007
#define MOD (int)10000000007
#define X 1001100011100001111ll
#define M 26388279066623ll
#define all(a) a.begin(), a.end()
#define for0(i, n) for (int i = 0; i < n; i++)
#define for0e(i, n) for (int i = 0; i <= n; i++)
#define for1(i, n) for (int ... | [["+", 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 | 463 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep1(i, n) for (ll i = 1; i <= (ll)(n); i++)
#define INF 10000000000
#define MOD 1000000007
using ll = long long;
using Graph = vector<vector<int>>;
int main() {
int N;
cin >> N;
map<string, int> M;
rep(i,... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep1(i, n) for (ll i = 1; i <= (ll)(n); i++)
#define INF 10000000000
#define MOD 1000000007
using ll = long long;
using Graph = vector<vector<int>>;
int main() {
int N;
cin >> N;
map<string, int> M;
rep(i,... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 147 |
N = int(input())
S = [int(input()) for _ in range(N)]
AC = 0
WA = 0
TLE = 0
RE = 0
for i in S:
if i == 'AC':
AC += 1
elif i == 'WA':
WA += 1
elif i == 'TLE':
TLE += 1
else:
RE += 1
print('AC x', AC)
print('WA x', WA)
print('TLE x', TLE)
print('RE x', RE) | N = int(input())
S = [input() for _ in range(N)]
AC = 0
WA = 0
TLE = 0
RE = 0
for i in S:
if i == 'AC':
AC += 1
elif i == 'WA':
WA += 1
elif i == 'TLE':
TLE += 1
else:
RE += 1
print('AC x', AC)
print('WA x', WA)
print('TLE x', TLE)
print('RE x', RE) | [["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["-", 0, 662, 12, 658, 8, 652, 3, 4, 0, 24], ["-", 8, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 109 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a[4] = {0};
string s[4] = {"AC", "WA", "TLE", "RE"};
int n;
cin >> n;
for (int i = 0; i < n; i++) {
string t;
cin >> t;
for (int j = 0; j < 4; j++) {
if (t == s[j])
a[j]++;
}
}
cout << "AC X " << a[0] << "\n";
c... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[4] = {0};
string s[4] = {"AC", "WA", "TLE", "RE"};
int n;
cin >> n;
for (int i = 0; i < n; i++) {
string t;
cin >> t;
for (int j = 0; j < 4; j++) {
if (t == s[j])
a[j]++;
}
}
cout << "AC x " << a[0] << "\n";
c... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 170 |
n = int(input())
a = [int(input()) for i in range(n)]
c0, c1, c2, c3 = 0, 0, 0, 0
for output in a:
if output == 'AC':
c0 += 1
elif output == 'WA':
c1 += 1
elif output == 'TLE':
c2 += 1
elif output == 'RE':
c3 += 1
print('AC x {}'.format(c0))
print('WA ... | n = int(input())
a = [input() for i in range(n)]
c0, c1, c2, c3 = 0, 0, 0, 0
for output in a:
if output == 'AC':
c0 += 1
elif output == 'WA':
c1 += 1
elif output == 'TLE':
c2 += 1
elif output == 'RE':
c3 += 1
print('AC x {}'.format(c0))
print('WA x {}'... | [["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["-", 0, 662, 12, 658, 8, 652, 3, 4, 0, 24], ["-", 8, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 129 |
patarn = ['AC', 'WA', 'TLE', 'RE']
input = []
n = gets.chomp.to_i
n.times{input << gets.chomp}
patarn.each do |judge|
puts "#{judge} × #{input.count(judge)}"
end | patarn = ['AC', 'WA', 'TLE', 'RE']
input = []
n = gets.chomp.to_i
n.times{input << gets.chomp}
patarn.each do |judge|
puts "#{judge} x #{input.count(judge)}"
end | [["-", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6]] | 4 | 63 |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define lli long long int
#define F first
#define S second
#define all(v) v.begin(), v.end()
#define mii map<lli, lli>
#define msi map<string, lli>
#define pii pair<lli, lli>
#define vi vector<lli>
#define vvi vector<vector<lli>>
... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define lli long long int
#define F first
#define S second
#define all(v) v.begin(), v.end()
#define mii map<lli, lli>
#define msi map<string, lli>
#define pii pair<lli, lli>
#define vi vector<lli>
#define vvi vector<vector<lli>>
... | [["-", 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 | 395 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<string> s(n);
for (int i = 0; i < n; ++i) {
cin >> s.at(i);
}
int AC = 0, WA = 0, TLE = 0, RE = 0;
for (int i = 0; i < n; ++i) {
if (s.at(i) == "AC")
AC++;
if (s.at(i) == "WA")
WA++;
if (s.at(i) ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<string> s(n);
for (int i = 0; i < n; ++i) {
cin >> s.at(i);
}
int AC = 0, WA = 0, TLE = 0, RE = 0;
for (int i = 0; i < n; ++i) {
if (s.at(i) == "AC")
AC++;
if (s.at(i) == "WA")
WA++;
if (s.at(i) ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 190 |
#include <stdio.h>
int main() {
int n, AC = 0, WA = 0, TLE = 0, RTE = 0;
scanf("%d", &n);
while (n--) {
char str[4];
scanf("%s", str);
if (str[0] == 'A') {
AC++;
} else if (str[0] == 'W') {
WA++;
} else if (str[0] == 'T') {
TLE++;
} else {
RTE++;
}
}
printf... | #include <stdio.h>
int main() {
int n, AC = 0, WA = 0, TLE = 0, RE = 0;
scanf("%d", &n);
while (n--) {
char str[4];
scanf("%s", str);
if (str[0] == 'A') {
AC++;
} else if (str[0] == 'W') {
WA++;
} else if (str[0] == 'T') {
TLE++;
} else {
RE++;
}
}
printf("... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 75, 76, 0, 9, 0, 1, 0, 27, 28, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 27, 28, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 140 |
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int ac, wa, tle, re;
ac = wa = tle = re = 0;
while (n--) {
string ver;
cin >> ver;
if (ver.compare("AC") == 0)
ac++;
else if (ver.compare("WA") == 0)
wa++;
else if (ver.compare("TLE") == 0)
tle++;
... | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int ac, wa, tle, re;
ac = wa = tle = re = 0;
while (n--) {
string ver;
cin >> ver;
if (ver.compare("AC") == 0)
ac++;
else if (ver.compare("WA") == 0)
wa++;
else if (ver.compare("TLE") == 0)
tle++;
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 162 |
#include <bits/stdc++.h>
using namespace std;
void __start__() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
#ifdef MY
freopen("/home/ainur/CLionProjects/wow/input.txt", "r", stdin);
freopen("/home/ainur/CLionProjects/wow/output.txt", "w", stdout);
#else
#define endl '\n'
// freopen("search.in", "r"... | #include <bits/stdc++.h>
using namespace std;
void __start__() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
#ifdef MY
freopen("/home/ainur/CLionProjects/wow/input.txt", "r", stdin);
freopen("/home/ainur/CLionProjects/wow/output.txt", "w", stdout);
#else
#define endl '\n'
// freopen("search.in", "r"... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 382 |
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int a = 0;
int w = 0;
int t = 0;
int r = 0;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s[0] == 'A') {
a++;
} else if (s[0] == 'W') {
w++;
} else if (s[0] == 'T') {
t++;
} else {
... | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int a = 0;
int w = 0;
int t = 0;
int r = 0;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s[0] == 'A') {
a++;
} else if (s[0] == 'W') {
w++;
} else if (s[0] == 'T') {
t++;
} else {
... | [["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 161 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, ac = 0, wa = 0, tle = 0, re = 0;
cin >> N;
string S;
for (int i = 0; i < N; i++) {
cin >> S;
if (S.compare("AC") == 0)
ac++;
else if (S.compare("WA") == 0)
wa++;
else if (S.compare("TLE"))
tle++;
else
r... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, ac = 0, wa = 0, tle = 0, re = 0;
cin >> N;
string S;
for (int i = 0; i < N; i++) {
cin >> S;
if (S.compare("AC") == 0)
ac++;
else if (S.compare("WA") == 0)
wa++;
else if (S.compare("TLE") == 0)
tle++;
else
... | [["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 150 |
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 15 17:00:46 2020
@author: saito
"""
# %% import phase
# %% define phase
# %% input phase
N = int(input())
S = [0]*N
for i in range(N):
S[i] = input()
# %% process phase
C = [0]*4
rslt = ['AC', 'WA', 'TLE', 'RE']
for i in range(4):
C[i] = S.count(rslt[i])
# %%... | # -*- coding: utf-8 -*-
"""
Created on Sat Aug 15 17:00:46 2020
@author: saito
"""
# %% import phase
# %% define phase
# %% input phase
N = int(input())
S = [0]*N
for i in range(N):
S[i] = input()
# %% process phase
C = [0]*4
rslt = ['AC', 'WA', 'TLE', 'RE']
for i in range(4):
C[i] = S.count(rslt[i])
# %%... | [["-", 0, 657, 31, 657, 31, 657, 12, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 12, 557, 0, 6]] | 5 | 123 |
#include <iostream>
#include <string>
#include <vector>
typedef struct infomation {
std::string S;
int count;
} judg;
int main() {
int N, i, j;
std::string S;
std::vector<judg> ans = {{"AC", 0}, {"WA", 0}, {"TLE", 0}, {"RE", 0}};
std::cin >> N;
for (i = 0; i < N; i++) {
std::cin >> S;
j = -1;... | #include <iostream>
#include <string>
#include <vector>
typedef struct infomation {
std::string S;
int count;
} judg;
int main() {
int N, i, j;
std::string S;
std::vector<judg> ans = {{"AC", 0}, {"WA", 0}, {"TLE", 0}, {"RE", 0}};
std::cin >> N;
for (i = 0; i < N; i++) {
std::cin >> S;
j = -1;... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 185 |
#include <iostream>
using namespace std;
int main() {
int n, c[4] = {0};
string judge[4] = {"AC", "WA", "TLE", "RE"};
cin >> n;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
for (int j = 0; j < 4; j++) {
if (judge[j] == s) {
c[j]++;
break;
}
}
}
for (int i =... | #include <iostream>
using namespace std;
int main() {
int n, c[4] = {0};
string judge[4] = {"AC", "WA", "TLE", "RE"};
cin >> n;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
for (int j = 0; j < 4; j++) {
if (judge[j] == s) {
c[j]++;
break;
}
}
}
for (int i =... | [["-", 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;
// conversion
//------------------------------------------
inline int toInt(string s) {
int v;
istringstream sin(s);
sin >> v;
return v;
}
template <class T> inline string toString(T x) {
ostringstream sout;
sout << x;
return sout.str();
}
// math
//--------... | #include <bits/stdc++.h>
using namespace std;
// conversion
//------------------------------------------
inline int toInt(string s) {
int v;
istringstream sin(s);
sin >> v;
return v;
}
template <class T> inline string toString(T x) {
ostringstream sout;
sout << x;
return sout.str();
}
// math
//--------... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 1,133 |
#include <stdio.h>
int main(void) {
int N, ac = 0, wa = 0, tle = 0, re = 0;
char ans[4];
scanf("%d", &N);
while (N--) {
scanf("%s", ans);
if ('A' == ans[0])
ac++;
if ('W' == ans[0])
wa++;
if ('T' == ans[0])
tle++;
if ('R' == ans[0])
re++;
}
printf("AC x %d", ac)... | #include <stdio.h>
int main(void) {
int N, ac = 0, wa = 0, tle = 0, re = 0;
char ans[4];
scanf("%d", &N);
while (N--) {
scanf("%s", ans);
if ('A' == ans[0])
ac++;
if ('W' == ans[0])
wa++;
if ('T' == ans[0])
tle++;
if ('R' == ans[0])
re++;
}
printf("AC x %d\n", a... | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 152 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int c0 = 0, c1 = 0, c2 = 0, c3 = 0;
int n;
string s;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> s;
if (s == "AC")
c0++;
else if (s == "WA")
c1++;
else if (s == "TLE")
c2++;
else
c3++;
cout << "AC ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int c0 = 0, c1 = 0, c2 = 0, c3 = 0;
int n;
string s;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> s;
if (s == "AC")
c0++;
else if (s == "WA")
c1++;
else if (s == "TLE")
c2++;
else
c3++;
}
cout << "AC... | [["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 1 | 135 |
N=int(input())
list=[]
ac=0
wa=0
re=0
tlc=0
for i in range(N):
list.append(input())
for i in range(N):
if list[i]=="AC":
ac+=1
elif list[i]=="WA":
wa+=1
elif list[i]=="RE":
re+=1
else:
tlc+=1
print("AC : "+str(ac))
print("WA : "+str(wa))
print("TLE : "+str(tlc))
print("RE : "+str(re)) | N=int(input())
list=[]
ac=0
wa=0
re=0
tlc=0
for i in range(N):
list.append(input())
for i in range(N):
if list[i]=="AC":
ac+=1
elif list[i]=="WA":
wa+=1
elif list[i]=="RE":
re+=1
else:
tlc+=1
print("AC x "+str(ac))
print("WA x "+str(wa))
print("TLE x "+str(tlc))
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 | 136 |
l = int(input())
n = []
for i in range(l):
n.append(input())
ac = 0
wa = 0
tle = 0
re =0
for i in n:
if i == 'AC':
ac += 1
elif i =='WA':
wa += 1
elif i == TLE:
tle += 1
else:
re += 1
print('AC x ' + str(ac))
print('WA x ' + str(wa))
print('TLE x ' + str(tle))
print('RE x ' + str(RE)) | l = int(input())
n = []
for i in range(l):
n.append(input())
ac = 0
wa = 0
tle = 0
re =0
for i in n:
if i == 'AC':
ac += 1
elif i =='WA':
wa += 1
elif i == 'TLE':
tle += 1
else:
re += 1
print('AC x ' + str(ac))
print('WA x ' + str(wa))
print('TLE x ' + str(tle))
print('RE x ' + str(re))
| [["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 654], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 655], ["-", 3, 4, 0, 657, 12, 652, 3, 4, 0, 22], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 22]] | 5 | 122 |
#include <iostream>
using namespace std;
int main() {
int c1 = 0, c2 = 0, c3 = 0, c0 = 0;
int n;
string s;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> s;
if (s == "AC")
c0++;
else if (s == "WA")
c1++;
else if (s == "TLE")
c2++;
else
c3++;
}
cout << "AC x " <<... | #include <iostream>
using namespace std;
int main() {
int c1 = 0, c2 = 0, c3 = 0, c0 = 0;
int n;
string s;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> s;
if (s == "AC")
c0++;
else if (s == "WA")
c1++;
else if (s == "TLE")
c2++;
else
c3++;
}
cout << "AC x " <<... | [["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 138 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, c0 = 0, c1 = 0, c2 = 0, c3 = 0;
string s;
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> s;
if (s == "AC")
c0++;
else if (s == "WA")
c1++;
else if (s == "TLE")
c2++;
else
c3++;
}
cout << "AC x " <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, c0 = 0, c1 = 0, c2 = 0, c3 = 0;
string s;
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> s;
if (s == "AC")
c0++;
else if (s == "WA")
c1++;
else if (s == "TLE")
c2++;
else
c3++;
}
cout << "AC x " <<... | [["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]] | 1 | 131 |
n = int(input())
a = 0
w = 0
t = 0
r = 0
for i in range(n):
b = input()
if b == "AC":
a += 1
if b == "WA":
w += 1
if b == "TLE":
t += 1
if b == "RE":
r += 1
print("AC x", a)
print("WA x", w)
print("TLE x", t)
print("RE2 x", r)
| n = int(input())
a = 0
w = 0
t = 0
r = 0
for i in range(n):
b = input()
if b == "AC":
a += 1
if b == "WA":
w += 1
if b == "TLE":
t += 1
if b == "RE":
r += 1
print("AC x", a)
print("WA x", w)
print("TLE x", t)
print("RE x", r) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 105 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int n;
cin >> n;
int a = 0, b = 0, c = 0, d = 0;
while (n--) {
string s;
cin >> s;
if (s == "AC")
a++;
else if (s == "WA")
b++;
else if (s == "TLE")
c++;
else
d++;
}
cout << "AC ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int n;
cin >> n;
int a = 0, b = 0, c = 0, d = 0;
while (n--) {
string s;
cin >> s;
if (s == "AC")
a++;
else if (s == "WA")
b++;
else if (s == "TLE")
c++;
else
d++;
}
cout << "AC ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 137 |
#include <stdio.h>
int main(void) {
int n;
int ac, wa, tle, re;
ac = wa = tle = re = 0;
int i;
scanf("%d", &n);
for (i = 0; i < n; i++) {
char str[10];
scanf("%s", str);
switch (str[0]) {
case 'a':
ac++;
break;
case 'w':
wa++;
break;
case 't':
tle++;
... | #include <stdio.h>
int main(void) {
int n;
int ac, wa, tle, re;
ac = wa = tle = re = 0;
int i;
scanf("%d", &n);
for (i = 0; i < n; i++) {
char str[10];
scanf("%s", str);
switch (str[0]) {
case 'A':
ac++;
break;
case 'W':
wa++;
break;
case 'T':
tle++;
... | [["-", 0, 99, 8, 9, 0, 100, 51, 103, 0, 125], ["+", 0, 99, 8, 9, 0, 100, 51, 103, 0, 125]] | 0 | 147 |
import sys
N = int(input())
dict = {'AC':0, 'WA':0, 'TLE':0, 'RE':0}
for _ in range(N):
S = input()
if S in dict:
i = dict.get(S)
i += 1
dict[S] = i
for key in dict.keys():
print(key, '×', dict.get(key)) | import sys
N = int(input())
dict = {'AC':0, 'WA':0, 'TLE':0, 'RE':0}
for _ in range(N):
S = input()
if S in dict:
i = dict.get(S)
i += 1
dict[S] = i
for key in dict.keys():
print(key, 'x', dict.get(key))
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 96 |
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll n;
cin >> n;
ll cntac = 0;
ll cntwa = 0;
ll cnttle = 0;
ll cntre = 0;
string x;
ll i;
for (i = 1; i <= n; i++) {
cin >> x;
if (x == "AC") {
cntac = cntac + ... | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll n;
cin >> n;
ll cntac = 0;
ll cntwa = 0;
ll cnttle = 0;
ll cntre = 0;
string x;
ll i;
for (i = 1; i <= n; i++) {
cin >> x;
if (x == "AC") {
cntac = cntac + ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 215 |
A = int(input())
list1 = []
for i in range(A):
a = input()
list1.append(a)
b =list1.count('AC')
c =list1.count('TLE')
d =list1.count('RE')
e =list1.count('WA')
print('AC x '+ str(b))
print('WA x '+ str(e))
print('TLE x '+str(c))
print('ARE x '+str(d))
| A = int(input())
list1 = []
for i in range(A):
a = input()
list1.append(a)
b =list1.count('AC')
c =list1.count('TLE')
d =list1.count('RE')
e =list1.count('WA')
print('AC x '+ str(b))
print('WA x '+ str(e))
print('TLE x '+str(c))
print('RE x '+str(d)) | [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 115 |
N = int(input())
list1=[]
for i in range(N):
a = input()
list1.append(a)
a = list1.count('AC')
b = list1.count('WA')
c = list1.count('TLE')
d = list1.count('RE')
list2 = [a,b,c,d]
print('AC x'+str(a))
print('WA x'+str(b))
print('TLE x'+str(c))
print('RE x'+str(d)) | N = int(input())
list1=[]
for i in range(N):
a = input()
list1.append(a)
a = list1.count('AC')
b = list1.count('WA')
c = list1.count('TLE')
d = list1.count('RE')
list2 = [a,b,c,d]
print('AC x '+str(a))
print('WA x '+str(b))
print('TLE x '+str(c))
print('RE x '+str(d))
| [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 126 |
N = int(input())
S = list()
for i in range(N):
S.append(input())
for k in ['AC', 'TLE', 'WA', 'RE']:
print('{0} x {1}'.format(k, S.count(k))) | N = int(input())
S = list()
for i in range(N):
S.append(input())
for k in ['AC', 'WA', 'TLE', 'RE']:
print('{0} x {1}'.format(k, S.count(k))) | [["-", 0, 656, 0, 7, 12, 634, 0, 557, 0, 6], ["+", 0, 656, 0, 7, 12, 634, 0, 557, 0, 6]] | 5 | 68 |
// int a = stoi(c); 文字列をintへ
//小文字から大文字
// transform(a.begin(), a.end(), a.begin(), ::toupper);
// map 全探索
// auto begin = p.begin(), end = p.end();
// for (auto it = begin; it != end; it++) {}
// mapのキー:it->first mapのバリュー:it->second
//大文字判定 isupper(文字) 小文字判定 islower(文字)
// do{}while(next_permutation(ALL(配列)))
//小文字に対応... | // int a = stoi(c); 文字列をintへ
//小文字から大文字
// transform(a.begin(), a.end(), a.begin(), ::toupper);
// map 全探索
// auto begin = p.begin(), end = p.end();
// for (auto it = begin; it != end; it++) {}
// mapのキー:it->first mapのバリュー:it->second
//大文字判定 isupper(文字) 小文字判定 islower(文字)
// do{}while(next_permutation(ALL(配列)))
//小文字に対応... | [["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13]] | 1 | 679 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int n;
cin >> n;
vector<string> s(n);
rep(i, n) cin >> s[i];
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
rep(i, n) {
if (s[i] == "AC")
ac++;
if (s[i] == "WA")
wa++... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int n;
cin >> n;
vector<string> s(n);
rep(i, n) cin >> s[i];
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
rep(i, n) {
if (s[i] == "AC")
ac++;
if (s[i] == "WA")
wa++... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 174 |
n = gets.to_i
line = readlines.map(&:chomp)
line.push("AC","WA","TLE","RE")
hash = line.tally
puts "AC x " + ((hash["AC"]) - 1).to_s
puts "WA x " + ((hash["AC"]) - 1).to_s
puts "TLE x " + ((hash["AC"]) - 1).to_s
puts "RE x " + ((hash["AC"]) - 1).to_s | n = gets.to_i
line = readlines.map(&:chomp)
line.push("AC","WA","TLE","RE")
hash = line.tally
puts "AC x " + ((hash["AC"]) - 1).to_s
puts "WA x " + ((hash["WA"]) - 1).to_s
puts "TLE x " + ((hash["TLE"]) - 1).to_s
puts "RE x " + ((hash["RE"]) - 1).to_s | [["-", 0, 738, 31, 739, 0, 742, 0, 557, 0, 6], ["+", 0, 738, 31, 739, 0, 742, 0, 557, 0, 6]] | 4 | 115 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int i;
string s;
int cac = 0, ctel = 0, cwa = 0, cre = 0;
for (i = 0; i < n; i++) {
cin >> s;
if (s == "AC")
cac++;
else if (s == "WA")
cwa++;
else if (s == "TEL")
ctel++;
else
cre++;
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int i;
string s;
int cac = 0, ctle = 0, cwa = 0, cre = 0;
for (i = 0; i < n; i++) {
cin >> s;
if (s == "AC")
cac++;
else if (s == "WA")
cwa++;
else if (s == "TLE")
ctle++;
else
cre++;
}
... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 57, 64, 1, 0, 27, 28, 22], ["+", 75, 76, 0, 57, 64, 1, 0, 27, 28, 22], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 3... | 1 | 143 |
N = int(input())
s = [input() for i in range(N)]
c = [s.count('AC'),s.count('WA'),s.count('TLE'),s.count('RE')]
d = ['AC','WA','TLE','RE']
for i in range(4):
print(d[i]+' '+'×'+' '+str(c[i]) ) | N = int(input())
s = [input() for i in range(N)]
c = [s.count('AC'),s.count('WA'),s.count('TLE'),s.count('RE')]
d = ['AC','WA','TLE','RE']
for i in range(4):
print(d[i]+' '+'x'+' '+str(c[i]) ) | [["-", 0, 657, 31, 657, 31, 657, 12, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 12, 557, 0, 6]] | 5 | 115 |
function Main(input) {
let arg = input.split("\n");
console.log('AC x %d',
input.filter(function(x) { return x === 'AC' }).length);
console.log('WA x %d',
input.filter(function(x) { return x === 'WA' }).length);
console.log('TLE x %d',
input.filter(function(x) { return ... | function Main(input) {
let arg = input.split("\n");
console.log('AC x %d', arg.filter(function(x) { return x === 'AC' }).length);
console.log('WA x %d', arg.filter(function(x) { return x === 'WA' }).length);
console.log('TLE x %d',
arg.filter(function(x) { return x === 'TLE' }).length);
console.... | [["-", 3, 3, 0, 558, 500, 2, 63, 558, 500, 22], ["+", 3, 3, 0, 558, 500, 2, 63, 558, 500, 22]] | 2 | 157 |
#include <stdio.h>
int main(void) {
char k[4];
int i, n, t[4] = {};
char s[5][5] = {"AC", "WA", "TLE", "RE"};
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s\n", k);
if (k[0] == 'A') {
t[0]++;
} else if (k[0] == 'W') {
t[1]++;
} else if (k[0] == 'T') {
t[2]++;
} else... | #include <stdio.h>
int main(void) {
char k[4];
int i, n, t[4] = {};
char s[5][5] = {"AC", "WA", "TLE", "RE"};
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s\n", k);
if (k[0] == 'A') {
t[0]++;
} else if (k[0] == 'W') {
t[1]++;
} else if (k[0] == 'T') {
t[2]++;
} else... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 209 |
#include "bits/stdc++.h"
using namespace std;
using ll = long long;
#define REP(i, n) for (ll i = 0; i < ll(n); i++)
#define REP(n) for (int i = 0; i < int(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= ll(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= ll(b); i... | #include "bits/stdc++.h"
using namespace std;
using ll = long long;
#define REP(i, n) for (ll i = 0; i < ll(n); i++)
#define REP(n) for (int i = 0; i < int(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= ll(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= ll(b); i... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 179 |
N = int(input())
S = list(str(input()) for _ in range(N))
print(S)
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 {}'.format(str(AC)))
print('WA x {}'.format(str(WA)))
pr... | N = int(input())
S = list(str(input()) for _ 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 {}'.format(str(AC)))
print('WA x {}'.format(str(WA)))
print('TLE x... | [["-", 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 | 143 |
#include <iostream>
using namespace std;
string s;
int main() {
int i, C0 = 0, C1 = 0, C2 = 0, C3 = 0;
long long N;
cin >> N;
for (i = 1; i <= N; i++) {
cin >> s;
if (s == "AC") {
++C0;
}
if (s == "WA") {
++C1;
}
if (s == "TLE") {
++C2;
}
if (s == "RE") {
... | #include <iostream>
using namespace std;
string s;
int main() {
int i, C0 = 0, C1 = 0, C2 = 0, C3 = 0;
long long N;
cin >> N;
for (i = 1; i <= N; i++) {
cin >> s;
if (s == "AC") {
++C0;
}
if (s == "WA") {
++C1;
}
if (s == "TLE") {
++C2;
}
if (s == "RE") {
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 153 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#define ll long long
using namespace std;
int main() {
int N;
cin >> N;
string S[N];
for (int i = 0; i < N; i++)
cin >> S[i];
string ans[4] = {"AC", "WA", "TLE", "RE"};
int res[4] = {0};
for (int i = 0; i < N; i++)
for... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#define ll long long
using namespace std;
int main() {
int N;
cin >> N;
string S[N];
for (int i = 0; i < N; i++)
cin >> S[i];
string ans[4] = {"AC", "WA", "TLE", "RE"};
int res[4] = {0};
for (int i = 0; i < N; i++)
for... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 190 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define all(v) v.begin(), v.end()
int main() {
ll N;
cin >> N;
vector<ll> vec(4);
for (ll i = 0; i < N; i++) {
string S;
cin >> S;
if (S == "AC") {
vec[0]++;
} else if (S == "WA") {
vec[1]++;
} else if (S == "T... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define all(v) v.begin(), v.end()
int main() {
ll N;
cin >> N;
vector<ll> vec(4);
for (ll i = 0; i < N; i++) {
string S;
cin >> S;
if (S == "AC") {
vec[0]++;
} else if (S == "WA") {
vec[1]++;
} else if (S == "T... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 222 |
#include "string"
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int res[4] = {0, 0, 0, 0};
for (int i = 0; i < N; ++i) {
string verdict;
cin >> verdict;
if (verdict == "AC") {
res[0]++;
} else if (verdict == "WA") {
res[1]++;
} else if (verdict == "TLE") ... | #include "string"
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int res[4] = {0, 0, 0, 0};
for (int i = 0; i < N; ++i) {
string verdict;
cin >> verdict;
if (verdict == "AC") {
res[0]++;
} else if (verdict == "WA") {
res[1]++;
} else if (verdict == "TLE") ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 184 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
int countAC = 0;
int countWA = 0;
int countTLE = 0;
int countRE = 0;
for (int i = 0; i < num; i++) {
String str = sc.next();
switch (s... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
int countAC = 0;
int countWA = 0;
int countTLE = 0;
int countRE = 0;
for (int i = 0; i < num; i++) {
String str = sc.next();
switch (s... | [["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]] | 3 | 187 |
#include <stdio.h>
int main() {
char a[4];
int x, i, b = 0, c = 0, d = 0, e = 0;
scanf("%d", &x);
for (i = 0; i < x; i++) {
scanf("%s", a);
if (a[0] == 'A') {
b++;
} else if (a[0] == 'T') {
c++;
} else if (a[0] == 'W') {
d++;
} else if (a[0] == 'R') {
e++;
}
}
... | #include <stdio.h>
int main() {
char a[4];
int x, i, b = 0, c = 0, d = 0, e = 0;
scanf("%d", &x);
for (i = 0; i < x; i++) {
scanf("%s", a);
if (a[0] == 'A') {
b++;
} else if (a[0] == 'T') {
c++;
} else if (a[0] == 'W') {
d++;
} else if (a[0] == 'R') {
e++;
}
}
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 179 |
#include <iostream>
#include <stack>
using namespace std;
int main() {
int t;
cin >> t;
string a[4] = {"AC", "TLE", "WA", "RE"};
int b[4]{0};
while (t--) {
string c;
cin >> c;
for (int i = 0; i < 4; i++) {
if (c == a[i]) {
b[i]++;
break;
}
}
}
for (int i = 0; ... | #include <iostream>
#include <stack>
using namespace std;
int main() {
int t;
cin >> t;
string a[4] = {"AC", "WA", "TLE", "RE"};
int b[4]{0};
while (t--) {
string c;
cin >> c;
for (int i = 0; i < 4; i++) {
if (c == a[i]) {
b[i]++;
break;
}
}
}
for (int i = 0; ... | [["-", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6], ["+", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6]] | 1 | 142 |
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0);
int main() {
IOS;
// freopen("input.txt", "r", stdin);
// freopen("output... | #include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0);
int main() {
IOS;
// freopen("input.txt", "r", stdin);
// freopen("output... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 121 |
c={"AC":0,"WA":0,"TLE":0,"RE":0}
for i in range(int(input())):
c[input()]+=1
for i,j in c.items():
print(i,"X",j) | c={"AC":0,"WA":0,"TLE":0,"RE":0}
for i in range(int(input())):
c[input()]+=1
for i,j in c.items():
print(i,"x",j) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 69 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <vector>
typedef long long ll;
using namespace std;
const ll MOD = 10000000... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <vector>
typedef long long ll;
using namespace std;
const ll MOD = 10000000... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 156 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
string s;
int c_0 = 0, c_1 = 0, c_2 = 0, c_3 = 0;
for (int i = 0; i < n; i++) {
cin >> s;
if (s == "AC")
++c_0;
else if (s == "WA")
++c_1;
else if (s == "TLE")
++c_2;
else if (s == "RE")
++c... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
string s;
int c_0 = 0, c_1 = 0, c_2 = 0, c_3 = 0;
for (int i = 0; i < n; i++) {
cin >> s;
if (s == "AC")
++c_0;
else if (s == "WA")
++c_1;
else if (s == "TLE")
++c_2;
else if (s == "RE")
++c... | [["-", 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.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for (int i = 0; i < n; i++) {
String word = sc.nextLine();
switch (word) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for (int i = 0; i <= n; i++) {
String word = sc.nextLine();
switch (word) {
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 187 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef int itn;
const... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef int itn;
const... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 470 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string a;
int n;
int x = 0;
int y = 0;
int z = 0;
int b = 0;
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> a;
if (a == "AC") {
x++;
} else if (a == "WA") {
y++;
} else if (a == "RTE") {
b++;
} else if (a... | #include <bits/stdc++.h>
using namespace std;
int main() {
string a;
int n;
int x = 0;
int y = 0;
int z = 0;
int b = 0;
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> a;
if (a == "AC") {
x++;
} else if (a == "WA") {
y++;
} else if (a == "RE") {
b++;
} else if (a ... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 205 |
n=int(input())
l=[0,0,0,0]
for _ in range(n):
s=input()
if(s=='AC'):
l[0]+=1
elif(s=='WA'):
l[1]+=1
elif(s=='TLE'):
l[2]+=1
elif(s=='RE'):
l[3]+=1
print("AC X",l[0])
print("WA X",l[1])
print("TLE X",l[2])
print("RE X",l[3]) | n=int(input())
l=[0,0,0,0]
for _ in range(n):
s=input()
if(s=='AC'):
l[0]+=1
elif(s=='WA'):
l[1]+=1
elif(s=='TLE'):
l[2]+=1
elif(s=='RE'):
l[3]+=1
print("AC x",l[0])
print("WA x",l[1])
print("TLE x",l[2])
print("RE x",l[3]) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 136 |
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
char s[4];
int ac = 0, wa = 0, tle = 0, re = 0;
for (int i = 0; i < n; i++) {
scanf("%s", s);
switch (s[0]) {
case 'A':
ac++;
break;
case 'W':
wa++;
break;
case 'T':
tle++;
break;
case 'R':
... | #include <stdio.h>
int main() {
int n;
scanf("%d", &n);
char s[4];
int ac = 0, wa = 0, tle = 0, re = 0;
for (int i = 0; i < n; i++) {
scanf("%s", s);
switch (s[0]) {
case 'A':
ac++;
break;
case 'W':
wa++;
break;
case 'T':
tle++;
break;
case 'R':
... | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 157 |
n=int(input())
from collections import Counter
A=[]
for i in range(n):
A.append(int(input()))
C=Counter(A)
print(f"""AC x {C["AC"]}
WA x {C["WA"]}
TLE x {C["TLE"]}
RE x {C["RE"]}""") | n=int(input())
from collections import Counter
A=[]
for i in range(n):
A.append((input()))
C=Counter(A)
print(f"""AC x {C["AC"]}
WA x {C["WA"]}
TLE x {C["TLE"]}
RE x {C["RE"]}""") | [["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22]] | 5 | 82 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
map<string, int> m;
for (int i = 1; i <= n; i++) {
string temp;
cin >> temp;
m[temp]++;
}
cout << "AC X " << m["AC"] << "\n"
<< "WA X " << m["WA"] << "\n"
<< "TLE X " << m["TLE"] << "\n"
<< "RE X " <... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
map<string, int> m;
for (int i = 1; i <= n; i++) {
string temp;
cin >> temp;
m[temp]++;
}
cout << "AC x " << m["AC"] << "\n"
<< "WA x " << m["WA"] << "\n"
<< "TLE x " << m["TLE"] << "\n"
<< "RE x " <... | [["-", 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 | 114 |
N=int(input())
S= [input() for i in range(N)]
AC_len=int(S.count('AC'))
WA_len=int(S.count('WA'))
TLE_len=int(S.count('TLE'))
RE_len=int(S.count('RE'))
print('AC X'+' '+str(AC_len))
print('WA X'+' '+str(WA_len))
print('TLE X'+' '+str(TLE_len))
print('RE X'+' '+str(RE_len)) | N=int(input())
S= [input() for i in range(N)]
AC_len=int(S.count('AC'))
WA_len=int(S.count('WA'))
TLE_len=int(S.count('TLE'))
RE_len=int(S.count('RE'))
print('AC x'+' '+str(AC_len))
print('WA x'+' '+str(WA_len))
print('TLE x'+' '+str(TLE_len))
print('RE x'+' '+str(RE_len)) | [["-", 3, 4, 0, 657, 31, 657, 31, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 31, 557, 0, 6]] | 5 | 134 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define endl "\n"
#define pll pair<ll, ll>
#define pii pair<int, int>
#define pb push_back
#define vi vector<int>
#define vl vector<ll>
#define vpii vector<pair<int, int>>
#define mems(x, y) memset(x, y, sizeof(x))
#define all(x) (x).begin(), (x).... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define endl "\n"
#define pll pair<ll, ll>
#define pii pair<int, int>
#define pb push_back
#define vi vector<int>
#define vl vector<ll>
#define vpii vector<pair<int, int>>
#define mems(x, y) memset(x, y, sizeof(x))
#define all(x) (x).begin(), (x).... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 312 |
/*
@Author :- Gaurav Bharti
National Institute of Technology, Jamshedpur.
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define empb emplace_back
#define mp make_pair
#define F first
#define S second
#define endl "\n"
#define vii vector<int>
... | /*
@Author :- Gaurav Bharti
National Institute of Technology, Jamshedpur.
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define empb emplace_back
#define mp make_pair
#define F first
#define S second
#define endl "\n"
#define vii vector<int>
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 347 |
import sys
input()
d=dict.fromkeys('AC WA TLE RE'.split(),0)
for ln in sys.stdin:
d[ln.strip()]+=1
for k,v in ct.items():
print(k,'x',v)
| import sys
input()
d=dict.fromkeys('AC WA TLE RE'.split(),0)
for ln in sys.stdin:
d[ln.strip()]+=1
for k,v in d.items():
print(k,'x',v)
| [["-", 0, 656, 0, 7, 12, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 7, 12, 652, 63, 319, 500, 22]] | 5 | 59 |
#include <stdio.h>
#include <string.h>
int main() {
int n;
scanf("%d", &n);
int i;
char s[100000];
int a = 0, b = 0, c = 0, d = 0;
for (i = 0; i < n; i++) {
scanf("%d", &s[i]);
}
for (i = 0; i < n; i++) {
if (strncmp(&s[i], "A", 1) == 0) {
a++;
}
if (strncmp(&s[i], "W", 1) == 0) {
... | #include <stdio.h>
#include <string.h>
int main() {
int n;
scanf("%d", &n);
int i;
char s[100000];
int a = 0, b = 0, c = 0, d = 0;
for (i = 0; i < n; i++) {
scanf("%s", &s[i]);
}
for (i = 0; i < n; i++) {
if (strncmp(&s[i], "A", 1) == 0) {
a++;
}
if (strncmp(&s[i], "W", 1) == 0) {
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 231 |
from collections import Counter
n = int(input())
words = Counter([input() for i in range(n)])
for i in ("AC", "WA", "TLE", "RE"):
print(f"{i} X {words.get(i, 0)}") | from collections import Counter
n = int(input())
words = Counter([input() for i in range(n)])
for i in ("AC", "WA", "TLE", "RE"):
print(f"{i} x {words.get(i, 0)}") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 69 |
#include <algorithm>
#include <cstring>
#include <iostream>
using std::cin;
using std::cout;
using std::string;
int main() {
int N;
cin >> N;
string s[N];
int count[4];
memset(count, 0, sizeof(count));
for (int i = 0; i < N; i++)
cin >> s[i];
for (int k = 0; k < N; k++) {
if (s[k] == "AC")
c... | #include <algorithm>
#include <cstring>
#include <iostream>
using std::cin;
using std::cout;
using std::string;
int main() {
int N;
cin >> N;
string s[N];
int count[4];
memset(count, 0, sizeof(count));
for (int i = 0; i < N; i++)
cin >> s[i];
for (int k = 0; k < N; k++) {
if (s[k] == "AC")
c... | [["-", 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 | 222 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int n;
cin >> n;
map<string, int> cnt;
rep(i, n) {
string s;
cin >> s;
cnt[s]++;
}
for (string s : {"AC", "WA", "TLE", "RE"}) {
cout <<... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int n;
cin >> n;
map<string, int> cnt;
rep(i, n) {
string s;
cin >> s;
cnt[s]++;
}
for (string s : {"AC", "WA", "TLE", "RE"}) {
cout << ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 115 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double lld;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef set<int> si;
typedef map<string, int> msi;
typedef pair<ll, ll> pll;
typedef pair<ll, pair<ll, ll>> plll;
void solve() ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double lld;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef set<int> si;
typedef map<string, int> msi;
typedef pair<ll, ll> pll;
typedef pair<ll, pair<ll, ll>> plll;
void solve() ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 261 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
String judge[] = {"AC", "WA", "TLE", "RE"};
int count[] = {0, 0, 0, 0};
for (int loop = 0; loop < N; loop++) {
String result = scanner.nex... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
String judge[] = {"AC", "WA", "TLE", "RE"};
int count[] = {0, 0, 0, 0};
for (int loop = 0; loop < N; loop++) {
String result = scanner.nex... | [["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]] | 3 | 206 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
String[] array = new String[A];
for (int i = 0; i < array.length; i++) {
array[i] = scan.next();
}
int AC = 0;
int WA = 0;
int... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
String[] array = new String[A];
for (int i = 0; i < array.length; i++) {
array[i] = scan.next();
}
int AC = 0;
int WA = 0;
int... | [["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]] | 3 | 251 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<string> result;
for (int i = 0; i < N; i++) {
cin >> result.at(i);
}
int a, b, c, d;
a = 0;
b = 0;
c = 0;
d = 0;
for (int i = 0; i < N; i++) {
if (result.at(i) == "AC") {
a++;
} else if (result.at... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<string> result(N);
for (int i = 0; i < N; i++) {
cin >> result.at(i);
}
int a, b, c, d;
a = 0;
b = 0;
c = 0;
d = 0;
for (int i = 0; i < N; i++) {
if (result.at(i) == "AC") {
a++;
} else if (result... | [["+", 8, 9, 0, 43, 49, 53, 54, 55, 0, 24], ["+", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78], ["+", 8, 9, 0, 43, 49, 53, 54, 55, 0, 25]] | 1 | 193 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
vector<int> v(4, 0);
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC")
v[0]++;
else if (s == "WA")
v[1]++;
else if (s == "TLE")
v[2]++;
else if (s == "RE")
v[3]++;
}
cout << "AC x "... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> v(4, 0);
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC")
v[0]++;
else if (s == "WA")
v[1]++;
else if (s == "TLE")
v[2]++;
else if (s == "RE")
v[3]++;
}
cou... | [["+", 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 | 163 |
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int n, a = 0, b = 0, c = 0, d = 0;
string s;
cin >> n;
while (n--) {
cin >> s;
if (s == "AC")
a++;
if (s == "WA")
b++;
if (s == "TLE")
c++;
if (s == "RE")
d++;
}
cout << "AC X " <... | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int n, a = 0, b = 0, c = 0, d = 0;
string s;
cin >> n;
while (n--) {
cin >> s;
if (s == "AC")
a++;
if (s == "WA")
b++;
if (s == "TLE")
c++;
if (s == "RE")
d++;
}
cout << "AC x " <... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 137 |
#include <stdio.h>
#include <string.h>
int main() {
long n, i, ac = 0, wa = 0, tle = 0, re = 0;
scanf("%ld", &n);
char r[5];
for (i == 0; i < n; i++) {
scanf("%s", r);
if (strcmp(r, "AC") == 0) {
++ac;
} else if (strcmp(r, "wa") == 0) {
++wa;
} else if (strcmp(r, "tle") == 0) {
... | #include <stdio.h>
#include <string.h>
int main() {
long n, i, ac = 0, wa = 0, tle = 0, re = 0;
scanf("%ld", &n);
char r[5];
for (i == 0; i < n; i++) {
scanf("%s", r);
if (strcmp(r, "AC") == 0) {
++ac;
} else if (strcmp(r, "WA") == 0) {
++wa;
} else if (strcmp(r, "TLE") == 0) {
... | [["-", 0, 16, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 16, 31, 2, 3, 4, 0, 5, 0, 6]] | 0 | 155 |
#include <bits/stdc++.h>
using namespace std;
main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, i, j, k;
cin >> n;
vector<pair<string, int>> v(4);
v[0].first = "AC";
v[1].first = "WA";
v[2].first = "TLE";
v[3].first = "RE";
for (i = 0; i < n; i++) {
string s;
cin >> s;
if... | #include <bits/stdc++.h>
using namespace std;
main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, i, j, k;
cin >> n;
vector<pair<string, int>> v(4);
v[0].first = "AC";
v[1].first = "WA";
v[2].first = "TLE";
v[3].first = "RE";
for (i = 0; i < n; i++) {
string s;
cin >> s;
if... | [["-", 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;
typedef long long ll;
int dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1};
using pii = pair<int, int>;
int main() {
map<string, int> ans;
int n;
cin >> n;
for (int i = 0; i < n; i++) {
string temp;
cin >> temp;
ans[temp]++;
}
string str[] = {"AC", "WA",... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1};
using pii = pair<int, int>;
int main() {
map<string, int> ans;
int n;
cin >> n;
for (int i = 0; i < n; i++) {
string temp;
cin >> temp;
ans[temp]++;
}
string str[] = {"AC", "WA",... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 160 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
map<string, int> MA;
string S;
while (cin >> S)
MA[S]++;
for (auto s : {"AC", "WA", "TLE", "TR"})
cout << s << " x " << MA[s] << "\n";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
map<string, int> MA;
string S;
while (cin >> S)
MA[S]++;
for (auto s : {"AC", "WA", "TLE", "RE"})
cout << s << " x " << MA[s] << "\n";
} | [["-", 8, 9, 0, 338, 12, 83, 0, 5, 0, 6], ["+", 8, 9, 0, 338, 12, 83, 0, 5, 0, 6]] | 1 | 82 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
main() {
int n;
cin >> n;
int c1 = 0, c2 = 0, c3 = 0, c4 = 0;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC")
c1++;
else if (s == "WA")
c2++;
else if (s == "RE")
c3++;
else if (s == "TL... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
main() {
int n;
cin >> n;
int c1 = 0, c2 = 0, c3 = 0, c4 = 0;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC")
c1++;
else if (s == "WA")
c2++;
else if (s == "RE")
c3++;
else if (s == "TL... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 152 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
map<string, int> mp;
mp["AC"] = 0;
mp["WA"] = 0;
mp["TLE"] = 0;
mp["RE"] = 0;
for (int i = 1; i <= n; i++) {
string s;
cin >> s;
mp[s]++;
}
printf("WA x %d\n", mp["AC"]);
printf("WA x %d\n", mp["WA"]);
pri... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
map<string, int> mp;
mp["AC"] = 0;
mp["WA"] = 0;
mp["TLE"] = 0;
mp["RE"] = 0;
for (int i = 1; i <= n; i++) {
string s;
cin >> s;
mp[s]++;
}
printf("AC x %d\n", mp["AC"]);
printf("WA x %d\n", mp["WA"]);
pri... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 155 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.