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 <iostream>
#include <map>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep_one(i, n) for (int i = 1; i < n; i++)
using namespace std;
typedef long long ll;
int main() {
int n;
cin >> n;
int a = 0, w = 0, t = 0, r = 0;
... | #include <algorithm>
#include <iostream>
#include <map>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep_one(i, n) for (int i = 1; i < n; i++)
using namespace std;
typedef long long ll;
int main() {
int n;
cin >> n;
int a = 0, w = 0, t = 0, r = 0;
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 169 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String s;
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for (int i = 0; i < n; i++) {
s = sc.next();
if (s.compareTo("A... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String s;
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for (int i = 0; i < n; i++) {
s = sc.next();
if (s.compareTo("... | [["-", 0, 16, 31, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 16, 31, 492, 3, 4, 0, 5, 0, 491]] | 3 | 211 |
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <math.h>
#include <queue>
#include <vector>
typedef long long ll;
using namespace std;
int main() {
int t;
cin >> t;
string s;
int a = 0, b = 0, c = 0, d = 0;
while (t--) {
cin >> s;
if (!s.compare("AC"))
a++;... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <math.h>
#include <queue>
#include <vector>
typedef long long ll;
using namespace std;
int main() {
int t;
cin >> t;
string s;
int a = 0, b = 0, c = 0, d = 0;
while (t--) {
cin >> s;
if (!s.compare("AC"))
a++;... | [["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 173 |
#include <bits/stdc++.h>
using namespace std;
#define bip(a) __builtin_popcount(a)
#define ull unsigned long long
#define ll long long
#define u unsigned
#define pb push_back
#define pf push_front
#define mpr make_pair
#define ins insert
#define ff first
#define ss second
#define vi vector<int>
#define vl vector<ll>
#... | #include <bits/stdc++.h>
using namespace std;
#define bip(a) __builtin_popcount(a)
#define ull unsigned long long
#define ll long long
#define u unsigned
#define pb push_back
#define pf push_front
#define mpr make_pair
#define ins insert
#define ff first
#define ss second
#define vi vector<int>
#define vl vector<ll>
#... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 400 |
/*** akshaykumar99 ***/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
template <typename T>
using id_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
const long long MOD = 1e9 + 7;
const long double PI = acos(... | /*** akshaykumar99 ***/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
template <typename T>
using id_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
const long long MOD = 1e9 + 7;
const long double PI = acos(... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 235 |
from sys import stdin,stdout
def INPUT():return list(int(i) for i in stdin.readline().split())
import math
def inp():return stdin.readline()
def out(x):return stdout.write(x)
import math as M
#####################################
n=int(input())
D=[0]*4
for i in range(n):
s=input()
if s=="AC":
D[0]+=1
... | from sys import stdin,stdout
def INPUT():return list(int(i) for i in stdin.readline().split())
import math
def inp():return stdin.readline()
def out(x):return stdout.write(x)
import math as M
#####################################
n=int(input())
D=[0]*4
for i in range(n):
s=input()
if s=="AC":
D[0]+=1
... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 181 |
import java.util.Scanner;
public class Main {
public static Scanner scan = new Scanner(System.in);
public static void main(String[] args) {
int n = nextInt();
String tmp;
int[] arr = new int[4];
for (int i = 0; i < n; i++) {
arr[i] = 0;
}
for (int i = 0; i < n; i++) {
tmp = next... | import java.util.Scanner;
public class Main {
public static Scanner scan = new Scanner(System.in);
public static void main(String[] args) {
int n = nextInt();
String tmp;
int[] arr = new int[4];
for (int i = 0; i < 4; i++) {
arr[i] = 0;
}
for (int i = 0; i < n; i++) {
tmp = next... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499]] | 3 | 484 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define ff first
#define ss second
#define endl '\n'
#define pb push_back
#define t_case \
ll tt; ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define ff first
#define ss second
#define endl '\n'
#define pb push_back
#define t_case \
ll tt; ... | [["-", 374, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 374, 16, 31, 16, 31, 16, 31, 16, 12, 22]] | 1 | 256 |
n=int(input())
a=0
b=0
c=0
d=0
for i in range(n):
w=input()
if w=="AC":
a=a+1
elif w=="TLE":
b=b+1
elif w=="WA":
c=c+1
else:
d=d+1
print("AC "+"x "+str(a))
print("WA "+"x "+str(c))
print("TLE "+"x "+str(b))
print("TL "+"x "+str(d))
| n=int(input())
a=0
b=0
c=0
d=0
for i in range(n):
w=input()
if w=="AC":
a=a+1
elif w=="TLE":
b=b+1
elif w=="WA":
c=c+1
else:
d=d+1
print("AC "+"x "+str(a))
print("WA "+"x "+str(c))
print("TLE "+"x "+str(b))
print("RE "+"x "+str(d))
| [["-", 3, 4, 0, 657, 31, 657, 31, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 31, 557, 0, 6]] | 5 | 136 |
#include <bits/stdc++.h>
#include <cstring>
#include <limits>
using namespace std;
#define ll long long int
#define lli long long int
#define fw(i, s, e) for (ll i = s; i < e; ++i)
#define fe(i, s, e) for (ll i = s; i <= e; ++i)
#define fb(i, e, s) for (ll i = e; i >= s; --i)
#define L(T) ... | #include <bits/stdc++.h>
#include <cstring>
#include <limits>
using namespace std;
#define ll long long int
#define lli long long int
#define fw(i, s, e) for (ll i = s; i < e; ++i)
#define fe(i, s, e) for (ll i = s; i <= e; ++i)
#define fb(i, e, s) for (ll i = e; i >= s; --i)
#define L(T) ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 238 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll n;
cin >> n;
int ac = 0, tle = 0, re = 0, wa = 0;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC")
ac++;
else if (s == "WA")
wa++;
else if (s == "TLE")
tle++;
else
... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll n;
cin >> n;
int ac = 0, tle = 0, re = 0, wa = 0;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC")
ac++;
else if (s == "WA")
wa++;
else if (s == "TLE")
tle++;
else
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 155 |
N=int(input())
S=[input() for i in range(N)]
AC=0
WA=0
TLE=0
RE=0
for i in S:
if i =="WA":
WA+=1
elif i=="AC":
AC+=1
elif i=="TLE":
TLE+=1
else:
RE+=1
print("AC x "+str(AC))
print("WA x "+str(WA))
print("TLE x",TLE)
print("RE x",RE) | N=int(input())
S=[input() for i in range(N)]
AC=0
WA=0
TLE=0
RE=0
for i in S:
if i =="WA":
WA+=1
elif i=="AC":
AC+=1
elif i=="TLE":
TLE+=1
else:
RE+=1
print("AC x",str(AC))
print("WA x",str(WA))
print("TLE x",TLE)
print("RE x",RE) | [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]] | 5 | 112 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ll long long int
#define pb push_back
#define fi first
#define se second
#define all(x) x.begin(), x.end()
#define mem(x, y) \
memset(x, y, ... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ll long long int
#define pb push_back
#define fi first
#define se second
#define all(x) x.begin(), x.end()
#define mem(x, y) \
memset(x, y, ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 384 |
#include <bits/stdc++.h>
#define f first
#define s second
#define fore(i, a, b) for (int i = (a), ThxMK = (b); i < ThxMK; ++i)
#define pb push_back
#define eb emplace_back
#define all(s) begin(s), end(s)
#define _ \
ios_base::sync_with_stdio(0); ... | #include <bits/stdc++.h>
#define f first
#define s second
#define fore(i, a, b) for (int i = (a), ThxMK = (b); i < ThxMK; ++i)
#define pb push_back
#define eb emplace_back
#define all(s) begin(s), end(s)
#define _ \
ios_base::sync_with_stdio(0); ... | [["-", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6], ["+", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6]] | 1 | 685 |
#define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
//マクロ
#define REP(i, n) for (int i = 0; i < (int)(n); ++i)
#define REPS(i, n) for (int i = 1; i <= (int)(n); ++i)... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
//マクロ
#define REP(i, n) for (int i = 0; i < (int)(n); ++i)
#define REPS(i, n) for (int i = 1; i <= (int)(n); ++i)... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 435 |
#include <bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define rep(i, a, b) for (i = a; i < b; i++)
#define per(i, a, b) for (i = a; i >= b; i--)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define trav(x, it) for ... | #include <bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define rep(i, a, b) for (i = a; i < b; i++)
#define per(i, a, b) for (i = a; i >= b; i--)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define trav(x, it) for ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 361 |
/*
Author:zeke
pass System Test!
GET AC!!
*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include... | /*
Author:zeke
pass System Test!
GET AC!!
*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 358 |
n = int(input())
s = []
for i in range(n):
s_ = input()
s.append(s_)
res = ['AC', 'WA', 'TLE', 'RE']
for i in res:
print(i,'×', s.count(i)) | n = int(input())
s = []
for i in range(n):
s_ = input()
s.append(s_)
res = ['AC', 'WA', 'TLE', 'RE']
for i in res:
print(i,'x', s.count(i))
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 70 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
using ll = long long;
int main() {
int n;
cin >> n;
map<string, int> ans;
for (int i = 0; i < n; i++) {
string s;
cin >> s;... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
using ll = long long;
int main() {
int n;
cin >> n;
map<string, int> ans;
for (int i = 0; i < n; i++) {
string s;
cin >> s;... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 141 |
AC = 0
WA = 0
TLE = 0
RE = 0
N = int(input())
for _ in range(N):
S = input()
if S == 'AC':
AC += 1
elif S == 'WA':
WA += 1
elif S == 'TLE':
TLE += 1
else:
WA += 1
print('AC' + ' x ' + str(AC))
print('WA' + ' x ' + str(WA))
print('TLE' + ' x ' + str(TLE))
print('RE' ... | AC = 0
WA = 0
TLE = 0
RE = 0
N = int(input())
for _ in range(N):
S = input()
if S == 'AC':
AC += 1
elif S == 'WA':
WA += 1
elif S == 'TLE':
TLE += 1
else:
RE += 1
print('AC' + ' x ' + str(AC))
print('WA' + ' x ' + str(WA))
print('TLE' + ' x ' + str(TLE))
print('RE' ... | [["-", 75, 76, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 31, 22]] | 5 | 128 |
#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define llu unsigned long long int
#define sa(a, n, t) \
for (int ii = 0; ii < n; ii++) \
scanf("%" #t "", &(a)[ii])
#define rep(i, n) for ... | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define llu unsigned long long int
#define sa(a, n, t) \
for (int ii = 0; ii < n; ii++) \
scanf("%" #t "", &(a)[ii])
#define rep(i, n) for ... | [["-", 75, 76, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 378 |
#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define mod 1000000007
#define exp pow(10, -9)
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define daman \
ios_base ::sync_with_stdio(false); ... | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define mod 1000000007
#define exp pow(10, -9)
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define daman \
ios_base ::sync_with_stdio(false); ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 163 |
d={'AC':0,'WA':0,'TLE':0,'RE':0}
n=int(input())
for i in range(0,n):
d[input()]+=1
for j in d:
print(j,"X",d[j]) | d={'AC':0,'WA':0,'TLE':0,'RE':0}
n=int(input())
for i in range(0,n):
d[input()]+=1
for j in d:
print(j,"x",d[j]) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 71 |
#include <bits/stdc++.h>
// DEEP
using namespace std;
#define boost \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL)... | #include <bits/stdc++.h>
// DEEP
using namespace std;
#define boost \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL)... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 532 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return tr... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return tr... | [["+", 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 | 227 |
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define ll long long
#define ld long double
#define MOD 1000000007
#define nl cout << bl
#define rt ll Q[100005] = {0}
#define mp make_pair
#define test() ... |
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define ll long long
#define ld long double
#define MOD 1000000007
#define nl cout << bl
#define rt ll Q[100005] = {0}
#define mp make_pair
#define test() ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 510 |
#include <bits/stdc++.h>
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#include <ext/pb_ds/assoc_containe... | #include <bits/stdc++.h>
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#include <ext/pb_ds/assoc_containe... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 419 |
//#pragma GCC optimize ('O3')
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;
typedef long double ld;
#define mp make_pair
#define f first
#define s second
#define pb push_back
const int N = 3e5 + 5;
const int M = 5e5 + 5;
const int OO = 1e9;
const int mod = 1e9 + 7;
int... | //#pragma GCC optimize ('O3')
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;
typedef long double ld;
#define mp make_pair
#define f first
#define s second
#define pb push_back
const int N = 3e5 + 5;
const int M = 5e5 + 5;
const int OO = 1e9;
const int mod = 1e9 + 7;
int... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 221 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define f(i, x, n) for (int i = x; i < n; i++)
#define all(c) c.begin(), c.end()
const int MOD = 1e9 + 7, N = 5e5 + 10;
const int LINF = LLONG_MAX;
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n;
cin >> n;
map<string... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define f(i, x, n) for (int i = x; i < n; i++)
#define all(c) c.begin(), c.end()
const int MOD = 1e9 + 7, N = 5e5 + 10;
const int LINF = LLONG_MAX;
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n;
cin >> n;
map<string... | [["-", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6], ["+", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6]] | 1 | 211 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define repr(i, n) for (int i = n - 1; i >= 0; i--)
#define repr1(i, n) for (int i = n; i >= 1; i--)
#define all(v) v.begin(), v.end()
using ll = long long;
using pii = pair<int, i... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define repr(i, n) for (int i = n - 1; i >= 0; i--)
#define repr1(i, n) for (int i = n; i >= 1; i--)
#define all(v) v.begin(), v.end()
using ll = long long;
using pii = pair<int, i... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 354 |
from collections import Counter
n = int(input())
s = [input() for i in range(n)]
c = Counter(s)
for k in ['AC', 'WA', 'TLE', 'RE']:
if k in c:
print('{k} x {}'.format(k, c[k]))
else:
print('{} x {}'.format(k, c[k])) | from collections import Counter
n = int(input())
s = [input() for i in range(n)]
c = Counter(s)
for k in ['AC', 'WA', 'TLE', 'RE']:
if k in c:
print('{} x {}'.format(k, c[k]))
else:
print('{} x {}'.format(k, c[k])) | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 92 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using Vec = vector<int>;
using Graph = vector<vector<int>>;
int main() {
int n, ac = 0, wa = 0, tle = 0, re = 0;
cin >> n;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC") {
ac++;
}
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using Vec = vector<int>;
using Graph = vector<vector<int>>;
int main() {
int n, ac = 0, wa = 0, tle = 0, re = 0;
cin >> n;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "AC") {
ac++;
}
... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 181 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define pb push_back
#define sec second
#define fir first
#define mo 1000000007
#define inf 1e18
#define rep(i, s, n) for (ll i = s; i < n; i = i + 1)
#define rrep(i, s, n) for (ll i = s; i >= n; i--)
int main() {
ll n;
cin... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define pb push_back
#define sec second
#define fir first
#define mo 1000000007
#define inf 1e18
#define rep(i, s, n) for (ll i = s; i < n; i = i + 1)
#define rrep(i, s, n) for (ll i = s; i >= n; i--)
int main() {
ll n;
cin... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 152 |
#include <bits/stdc++.h>
#define fi first
#define se second
#define ll long long
#define mod 1000000007
#define endl "\n"
#define fast \
ios::sync_with_stdio(false); \
cin.tie(0); ... | #include <bits/stdc++.h>
#define fi first
#define se second
#define ll long long
#define mod 1000000007
#define endl "\n"
#define fast \
ios::sync_with_stdio(false); \
cin.tie(0); ... | [["-", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125]] | 1 | 531 |
#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i, n) for (int i = 1; i < (int)(n); i++)
#define Sort(a) sort(a.begin(), a.end())
typedef long long int ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vll;
templa... | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i, n) for (int i = 1; i < (int)(n); i++)
#define Sort(a) sort(a.begin(), a.end())
typedef long long int ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vll;
templa... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 276 |
N = int(input())
S = [input() for _ in range(N)]
ls = ["AC","WA","TLE","RE"]
for i in range(4):
print("{} × {}".format(ls[i],S.count(ls[i]))) | N = int(input())
S = [input() for _ in range(N)]
ls = ["AC","WA","TLE","RE"]
for i in range(4):
print("{} x {}".format(ls[i],S.count(ls[i]))) | [["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 73 |
/*
Author : Alokit Kumar
*/
#include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
int t, n, i, j, k, l, l1;
cin >> t;
int s1 = 0, s2 = 0, s3 = 0, s4 = 0;
while (t--) {
string s;
cin >> s;
if (s == "AC")
s1++;
else if (s == "WA")
s2++;
else if (s =... | /*
Author : Alokit Kumar
*/
#include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
int t, n, i, j, k, l, l1;
cin >> t;
int s1 = 0, s2 = 0, s3 = 0, s4 = 0;
while (t--) {
string s;
cin >> s;
if (s == "AC")
s1++;
else if (s == "WA")
s2++;
else if (s =... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 153 |
/*
Created by Rahul Goel.
*/
/*******************************************************************************/
#include <algorithm>
#include <cmath>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#incl... | /*
Created by Rahul Goel.
*/
/*******************************************************************************/
#include <algorithm>
#include <cmath>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#incl... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 465 |
n = int(input())
res = {"AC":0, "WA":0, "TLE":0, "RE":0}
for i in range(n):
s = input()
res[s] += 1
for s in res:
print(s + " X " + str(res[s]))
| n = int(input())
res = {"AC":0, "WA":0, "TLE":0, "RE":0}
for i in range(n):
s = input()
res[s] += 1
for s in res:
print(s + " x " + str(res[s]))
| [["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 75 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;
#define F first
#define S second
#define pb push_back
#define eb emplace_back
#define PI 3.14159265359
#define sz(c) (int)c.size()
#define len(c) (int)c.length()
#define hcf(a, b) __gcd(a, b)
#define all(... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;
#define F first
#define S second
#define pb push_back
#define eb emplace_back
#define PI 3.14159265359
#define sz(c) (int)c.size()
#define len(c) (int)c.length()
#define hcf(a, b) __gcd(a, b)
#define all(... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 284 |
#include <bits/stdc++.h>
using namespace std;
#define inf 1000000000
#define unvisited -1
#define visited 1
#define eps 1e-9
#define mp make_pair
#define pb push_back
#define pi acos(-1.0)
#define uint64 unsigned long long
#define FastSlowInput \
ios_base::syn... | #include <bits/stdc++.h>
using namespace std;
#define inf 1000000000
#define unvisited -1
#define visited 1
#define eps 1e-9
#define mp make_pair
#define pb push_back
#define pi acos(-1.0)
#define uint64 unsigned long long
#define FastSlowInput \
ios_base::syn... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 187 |
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <string>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define FOR(i, a, b) for (ll i = (a); i < (b); i++)
#define FORR(i, a, b) for (l... | #include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <string>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define FOR(i, a, b) for (ll i = (a); i < (b); i++)
#define FORR(i, a, b) for (l... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 444 |
N = int(input())
Ss = [input() for _ in range(N)]
import collections
c = collections.Counter(Ss)
print(c)
print("AC x " + str(c["AC"]))
print("WA x " + str(c["WA"]))
print("TLE x " + str(c["TLE"]))
print("RE x " + str(c["RE"])) | N = int(input())
Ss = [input() for _ in range(N)]
import collections
c = collections.Counter(Ss)
print("AC x " + str(c["AC"]))
print("WA x " + str(c["WA"]))
print("TLE x " + str(c["TLE"]))
print("RE x " + str(c["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 | 100 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define debug1(x) cerr << #x << " = " << x << '\n';
#define debug2(x, y) \
cerr << #x << " = " << x << " " << #y << " = " << y << "\n";
#define _ ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define debug1(x) cerr << #x << " = " << x << '\n';
#define debug2(x, y) \
cerr << #x << " = " << x << " " << #y << " = " << y << "\n";
#define _ ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 202 |
#include "bits/stdc++.h"
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REPR(i, n) for (int i = (n); i >= 0; i--)
#define FOR(i, m, n) for (int i = (m); i < (n); i++)
#define FORR(i, m, n) for (int i = (m); i >= (n); i--)
#define SORT(v, n) std::sort(v, v + n);
#define VSORT(v) std::sort(v.begin(), v.end());
... | #include "bits/stdc++.h"
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REPR(i, n) for (int i = (n); i >= 0; i--)
#define FOR(i, m, n) for (int i = (m); i < (n); i++)
#define FORR(i, m, n) for (int i = (m); i >= (n); i--)
#define SORT(v, n) std::sort(v, v + n);
#define VSORT(v) std::sort(v.begin(), v.end());
... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 271 |
// AtCoder.cpp : このファイルには 'main'
// 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
// AtCoder.cpp : このファイルには 'main'
// 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#ifndef ONLINE_JUDGE
#endif
#define _USE_MATH_DEFINES
#include <math.h>
//#include<cmath>
#include <algorithm>
#include <array>
#include <assert.h>
#include <bitset>
#... | // AtCoder.cpp : このファイルには 'main'
// 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
// AtCoder.cpp : このファイルには 'main'
// 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#ifndef ONLINE_JUDGE
#endif
#define _USE_MATH_DEFINES
#include <math.h>
//#include<cmath>
#include <algorithm>
#include <array>
#include <assert.h>
#include <bitset>
#... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 1,801 |
from collections import Counter
n = int(input())
l = [input() for _ in range(n)]
c = Counter(l)
for i in ['AC','WA','TLE','RE']:
print(f'{i} × {c[i]}')
| from collections import Counter
n = int(input())
l = [input() for _ in range(n)]
c = Counter(l)
for i in ['AC','WA','TLE','RE']:
print(f'{i} x {c[i]}')
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 68 |
# import sys;input = lambda : sys.stdin.readline()
import collections
d=collections.defaultdict(lambda:0)
for _ in range(int(input())):
s=input()
d[s]+=1
print("AC X",d['AC'])
print("WA X",d['WA'])
print("TLE X",d["TLE"])
print("RE X",d['RE'])
| # import sys;input = lambda : sys.stdin.readline()
import collections
d=collections.defaultdict(lambda:0)
for _ in range(int(input())):
s=input()
d[s]+=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 | 89 |
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.util.*;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and o... | import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.util.*;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and o... | [["-", 8, 527, 0, 520, 0, 528, 0, 5, 0, 491], ["+", 8, 527, 0, 520, 0, 528, 0, 5, 0, 491], ["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491]] | 3 | 1,309 |
// Created by Kshitij Anand NSIT
#include <bits/stdc++.h>
//#include <ext/numeric>
// using namespace __gnu_cxx;
using namespace std;
#define int long long
#define pb push_back
#define P pair<int, int>
#define F first
#define S second
#define vi vector<int>
#define vc vector<char>
#define vb vector<bool>
#define all(... | // Created by Kshitij Anand NSIT
#include <bits/stdc++.h>
//#include <ext/numeric>
// using namespace __gnu_cxx;
using namespace std;
#define int long long
#define pb push_back
#define P pair<int, int>
#define F first
#define S second
#define vi vector<int>
#define vc vector<char>
#define vb vector<bool>
#define all(... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 302 |
#include <bits/stdc++.h>
using namespace std;
#define PI acos(-1)
#define pb push_back
#define lli long long int
#define mp make_pair
#define pi pair<int, int>
#define pii pair<pi, int>
#define fir first
#define sec second
#define MAXN 100001
#define MAXL 20
#define mod 1000000007
signed main() {
ios_base::sync_wit... | #include <bits/stdc++.h>
using namespace std;
#define PI acos(-1)
#define pb push_back
#define lli long long int
#define mp make_pair
#define pi pair<int, int>
#define pii pair<pi, int>
#define fir first
#define sec second
#define MAXN 100001
#define MAXL 20
#define mod 1000000007
signed main() {
ios_base::sync_wit... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 166 |
#include <algorithm>
#include <array>
#include <cctype>
#include <iostream>
#include <map>
#include <set>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#define int long long
#define FOR(i, l, r) for... | #include <algorithm>
#include <array>
#include <cctype>
#include <iostream>
#include <map>
#include <set>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#define int long long
#define FOR(i, l, r) for... | [["+", 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 | 202 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pii pair<int, int>
#define pb push_back
#define INF INT_MAX
#define mod 1000000007ll
#define fi first
#define se second
#define f(i, p, q) for (int i = p; i < q; i++)
#define si(a) scanf("%d", &a)
#define sii(a, b) scanf("%d %d", &a, &b)
#de... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pii pair<int, int>
#define pb push_back
#define INF INT_MAX
#define mod 1000000007ll
#define fi first
#define se second
#define f(i, p, q) for (int i = p; i < q; i++)
#define si(a) scanf("%d", &a)
#define sii(a, b) scanf("%d %d", &a, &b)
#de... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 400 |
n = int(input())
ac = 0
wa = 0
tle = 0
re = 0
for _ in range(n):
s = input()
if s=="AC":
ac += 1
elif s=="WA":
wa += 1
elif tle=="TLE":
tle += 1
else:
re += 1
print("AC x {}".format(ac))
print("WA x {}".format(wa))
print("TLE x {}".format(tle))
print("RE x {}".forma... | n = int(input())
ac = 0
wa = 0
tle = 0
re = 0
for _ in range(n):
s = input()
if s=="AC":
ac += 1
elif s=="WA":
wa += 1
elif s=="TLE":
tle += 1
else:
re += 1
print("AC x {}".format(ac))
print("WA x {}".format(wa))
print("TLE x {}".format(tle))
print("RE x {}".format(... | [["-", 8, 196, 0, 57, 75, 665, 15, 666, 0, 22], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 0, 22]] | 5 | 112 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
using namespace std;
#define ll long long
#define pb push_back
#defin... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
using namespace std;
#define ll long long
#define pb push_back
#defin... | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 536 |
#include <bits/stdc++.h>
using namespace std;
#define FAST \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
typedef long long ll;
int main() {
FAST
ll n;
cin >> n;
map<string, ll> m;
... |
#include <bits/stdc++.h>
using namespace std;
#define FAST \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
typedef long long ll;
int main() {
FAST
ll n;
cin >> n;
map<string, ll> m;
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6], ["+", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6]] | 1 | 129 |
N = int(input())
jud = [0,0,0,0]
for i in range(N):
s = str(input())
if(s == "AC"):
jud[0]+=1
elif(s == "WA"):
jud[1] += 1
elif(s == "TLE"):
jud[2]+=1
else:
jud[3]+=1
print("AC x" +str(jud[0]))
print("WA x" +str(jud[1]))
print("TLE x" +str(jud[2]))
print("RE x" + str(jud[3]))
| N = int(input())
jud = [0,0,0,0]
for i in range(N):
s = str(input())
if(s == "AC"):
jud[0]+=1
elif(s == "WA"):
jud[1] += 1
elif(s == "TLE"):
jud[2]+=1
else:
jud[3]+=1
print("AC x " +str(jud[0]))
print("WA x " +str(jud[1]))
print("TLE x " +str(jud[2]))
print("RE x " + str(jud[3]))
| [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 144 |
n = gets.to_i
ac = "AC"
wa = "WA"
tle = "TLE"
re = "RE"
c = [0, 0, 0, 0]
n.times do |i|
case gets.chomp
when ac
c[0] += 1
when wa
c[1] += 1
when tle
c[2] += 1
when re
c[2] += 1
end
end
puts ac + " x " + c[0].to_s
puts wa + " x " + c[1].to_s
puts tle + " x " + c[2].to_s
puts re + " x " + c[3]... | n = gets.to_i
ac = "AC"
wa = "WA"
tle = "TLE"
re = "RE"
c = [0, 0, 0, 0]
n.times do |i|
case gets.chomp
when ac
c[0] += 1
when wa
c[1] += 1
when tle
c[2] += 1
when re
c[3] += 1
end
end
puts ac + " x " + c[0].to_s
puts wa + " x " + c[1].to_s
puts tle + " x " + c[2].to_s
puts re + " x " + c[3]... | [["-", 0, 763, 8, 749, 0, 755, 31, 742, 0, 612], ["+", 0, 763, 8, 749, 0, 755, 31, 742, 0, 612]] | 4 | 133 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define double long double
#define int long long
#define pb push_back
#define pii pair<int, int>
#define vi vector<int>
#define vii vector<pii>
#define mi map<int, in... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define double long double
#define int long long
#define pb push_back
#define pii pair<int, int>
#define vi vector<int>
#define vii vector<pii>
#define mi map<int, in... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 342 |
//#pragma GCC optimize "trapv"
#include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
typedef unsigned long long int ulli;
typedef long double ld;
#define S 1000001
#define M 1000000007
#define nl cout << "\n";
#define er cout << "\n***********\n";
#define fast ... | //#pragma GCC optimize "trapv"
#include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
typedef unsigned long long int ulli;
typedef long double ld;
#define S 1000001
#define M 1000000007
#define nl cout << "\n";
#define er cout << "\n***********\n";
#define fast ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 260 |
// author: hitch_hiker42;
#include "bits/stdc++.h"
using namespace std;
// solution:
#define int int64_t
void hike() {
int n;
cin >> n;
map<string, int> hash;
for (int i = 0; i < n; ++i) {
string s;
cin >> s;
hash[s]++;
}
cout << "AC x" << hash["AC"] << "\n";
cout << "WA x" << hash["WA"] << ... | // author: hitch_hiker42;
#include "bits/stdc++.h"
using namespace std;
// solution:
#define int int64_t
void hike() {
int n;
cin >> n;
map<string, int> hash;
for (int i = 0; i < n; ++i) {
string s;
cin >> s;
hash[s]++;
}
cout << "AC x " << hash["AC"] << "\n";
cout << "WA x " << hash["WA"] <... | [["-", 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>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9;
using namespace std;
using ll = long long;
int main() {
int n, AC = 0, WA = 0, TLE = 0, RE = 0;
cin >> n;
vector<string> s(n);
for (int i = 0; i < n; i++) {
cin >> s[i];
if (s[i] == "AC") {
AC++;
}
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9;
using namespace std;
using ll = long long;
int main() {
int n, AC = 0, WA = 0, TLE = 0, RE = 0;
cin >> n;
vector<string> s(n);
for (int i = 0; i < n; i++) {
cin >> s[i];
if (s[i] == "AC") {
AC++;
}
... | [["-", 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())
s = []
for i in range(n):
s.append(int(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, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 91 |
n = int(input())
ac=0
wa=0
tle=0
re=0
for i in range(n):
tmp = input()
if tmp == 'AC':
ac+=1
elif tmp == 'WA':
wa+=1
elif tmp == 'TLE':
tle+=1
elif tmp == 'RE':
wa+=1
else:
continue
print('AC x '+str(ac))
print('WA x '+str(wa))
print('TLE x '+str(tle))
... | n = int(input())
ac=0
wa=0
tle=0
re=0
for i in range(n):
tmp = input()
if tmp == 'AC':
ac+=1
elif tmp == 'WA':
wa+=1
elif tmp == 'TLE':
tle+=1
elif tmp == 'RE':
re+=1
else:
continue
print('AC x '+str(ac))
print('WA x '+str(wa))
print('TLE x '+str(tle))
... | [["-", 75, 665, 64, 196, 0, 1, 0, 677, 31, 22], ["+", 75, 665, 64, 196, 0, 1, 0, 677, 31, 22]] | 5 | 120 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pi 3.14159265358979323846264
int main() {
int n;
cin >> n;
string s[n];
map<string, int> m;
for (int i = 0; i < n; i++) {
cin >> s[i];
m[s[i]]++;
}
map<string, int>::iterator it;
// if(m["AC"]>0)
cout << "AC"
<< ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pi 3.14159265358979323846264
int main() {
int n;
cin >> n;
string s[n];
map<string, int> m;
for (int i = 0; i < n; i++) {
cin >> s[i];
m[s[i]]++;
}
map<string, int>::iterator it;
// if(m["AC"]>0)
cout << "AC"
<< ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 171 |
#include <bits/stdc++.h>
using namespace std;
#define sz(x) (int)x.size()
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
#define __ ios_base::sync_with_stdio(cin.tie(0) && 0);
typedef long long ll;
typedef unsigned long long ull;
typedef long double lld;
typedef double ld;... | #include <bits/stdc++.h>
using namespace std;
#define sz(x) (int)x.size()
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
#define __ ios_base::sync_with_stdio(cin.tie(0) && 0);
typedef long long ll;
typedef unsigned long long ull;
typedef long double lld;
typedef double ld;... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 217 |
#pragma GCC optimize("O3")
#define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
using namespace std;
using base = complex<double>;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define M 1000000007
#define M2 998244353
#define ll long long
#define pll pair... | #pragma GCC optimize("O3")
#define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
using namespace std;
using base = complex<double>;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define M 1000000007
#define M2 998244353
#define ll long long
#define pll pair... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 845 |
import math
from collections import defaultdict
ml=lambda:map(int,input().split())
ll=lambda:list(map(int,input().split()))
ii=lambda:int(input())
ip=lambda:list(input())
ips=lambda:input().split()
"""========main code==============="""
a=ii()
lol=["AC","WA","TLE","RE"]
d=defaultdict(int)
for _ in range(a):
p=inp... | import math
from collections import defaultdict
ml=lambda:map(int,input().split())
ll=lambda:list(map(int,input().split()))
ii=lambda:int(input())
ip=lambda:list(input())
ips=lambda:input().split()
"""========main code==============="""
a=ii()
lol=["AC","WA","TLE","RE"]
d=defaultdict(int)
for _ in range(a):
p=inp... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 142 |
n = int(input())
s = []
for i in range(n):
s.append(input())
ac = s.count('AC')
wa = s.count('WA')
tle = s.count('TLE')
re = s.count('RE')
print('AC x ' + str(ac))
print('WA × ' + str(wa))
print('TLE × ' + str(tle))
print('RE × ' + str(re)) | n = int(input())
s = []
for i in range(n):
s.append(input())
ac = s.count('AC')
wa = s.count('WA')
tle = s.count('TLE')
re = s.count('RE')
print('AC x ' + str(ac))
print('WA x ' + str(wa))
print('TLE x ' + str(tle))
print('RE x ' + str(re))
| [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 112 |
#!/usr/bin/env python
#pyrival orz
import os
import sys
from io import BytesIO, IOBase
"""
for _ in range(int(input())):
n,m=map(int,input().split())
n=int(input())
a = [int(x) for x in input().split()]
"""
def main():
from collections import defaultdict
ans=defaultdict(int)
for _ in range... | #!/usr/bin/env python
#pyrival orz
import os
import sys
from io import BytesIO, IOBase
"""
for _ in range(int(input())):
n,m=map(int,input().split())
n=int(input())
a = [int(x) for x in input().split()]
"""
def main():
from collections import defaultdict
ans=defaultdict(int)
for _ in range... | [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 580 |
n=int(input())
l=[]
for i in range(n):
s=input()
l.append(s)
ac=l.count('AC')
wa=l.count('WA')
tle=l.count('TLE')
re=l.count('RE')
print('AC ' +'x' + str(ac))
print('WA ' +'x' + str(wa))
print('TLE ' +'x' + str(tle))
print('RE ' +'x' + str(re))
| n=int(input())
l=[]
for i in range(n):
s=input()
l.append(s)
ac=l.count('AC')
wa=l.count('WA')
tle=l.count('TLE')
re=l.count('RE')
print('AC ' +'x ' + str(ac))
print('WA ' +'x ' + str(wa))
print('TLE ' +'x ' + str(tle))
print('RE ' +'x ' + str(re)) | [["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 131 |
import collections
n = int(input())
s = [input() for _ in range(n)]
s = collections.Counter(s)
print("AC x " + str(s["AC"]))
print("WA x " + str(s["WA"]))
print("ATLE x " + str(s["TLE"]))
print("RE x " + str(s["RE"]))
| import collections
n = int(input())
s = [input() for _ in range(n)]
s = collections.Counter(s)
print("AC x " + str(s["AC"]))
print("WA x " + str(s["WA"]))
print("TLE x " + str(s["TLE"]))
print("RE x " + str(s["RE"]))
| [["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]] | 5 | 96 |
// Created by Nandu Vinodan
#include <bits/stdc++.h>
#define db1(x) cout << #x << "=" << x << '\n'
#define db2(x, y) cout << #x << "=" << x << "," << #y << "=" << y << '\n'
#define db3(x, y, z) \
cout << #x << "=" << x << "," << #y << "=" << y << "," << #z <<... | // Created by Nandu Vinodan
#include <bits/stdc++.h>
#define db1(x) cout << #x << "=" << x << '\n'
#define db2(x, y) cout << #x << "=" << x << "," << #y << "=" << y << '\n'
#define db3(x, y, z) \
cout << #x << "=" << x << "," << #y << "=" << y << "," << #z <<... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 248 |
#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 loop(i, r, n) for (int i = (r); i < (n); i++)
#define pb push_back
#define all(in) in.begin(), in.end()
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
retu... | #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 loop(i, r, n) for (int i = (r); i < (n); i++)
#define pb push_back
#define all(in) in.begin(), in.end()
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
retu... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 270 |
import sys
import math
import heapq
from collections import defaultdict, deque
from decimal import *
def r():
return int(input())
def rm():
return map(int,input().split())
def rl():
return list(map(int,input().split()))
ac=0;wa=0;tle=0;re=0
for _ in range(r()):
s=input()
if s=="AC":
ac+=1
... | import sys
import math
import heapq
from collections import defaultdict, deque
from decimal import *
def r():
return int(input())
def rm():
return map(int,input().split())
def rl():
return list(map(int,input().split()))
ac=0;wa=0;tle=0;re=0
for _ in range(r()):
s=input()
if s=="AC":
ac+=1
... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 164 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define mp make_pair
#define pb push_back
#define all(x) (x).begin(), (x).end()
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
string s;
int c1 = 0, c2 = 0, c3 = 0, c4 = 0;
for (int i = 0; i < n; i++) {
cin >> s;... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define mp make_pair
#define pb push_back
#define all(x) (x).begin(), (x).end()
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
string s;
int c1 = 0, c2 = 0, c3 = 0, c4 = 0;
for (int i = 0; i < n; i++) {
cin >> s;... | [["-", 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 <numeric>
using namespace std;
#define ll long long
#define mod107 1000000007
#define rep(i, n) for (int i = 0; i < n; ++i)
using Graph = vector<vector<int>>;
#define grepq priority_queue<double, std::vector<double>, std::greater<double>>
#define all(v) v.begin(), v.end()
#define PI ac... | #include <bits/stdc++.h>
#include <numeric>
using namespace std;
#define ll long long
#define mod107 1000000007
#define rep(i, n) for (int i = 0; i < n; ++i)
using Graph = vector<vector<int>>;
#define grepq priority_queue<double, std::vector<double>, std::greater<double>>
#define all(v) v.begin(), v.end()
#define PI ac... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 292 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define pb push_back
#define ff first
#define ss second
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
string s[4];
s[0] = "AC";
s[1] = "WA";
s[2] = "TLE";
s[3] = "RE";
int c0 = 0, c1... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define pb push_back
#define ff first
#define ss second
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
string s[4];
s[0] = "AC";
s[1] = "WA";
s[2] = "TLE";
s[3] = "RE";
int c0 = 0, c1... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 261 |
#include "bits/stdc++.h"
using namespace std;
const auto start_time = std::chrono::high_resolution_clock::now();
void timecalculater() {
#ifndef ONLINE_JUDGE
auto end_time = std::chrono::high_resolution_clock::now();
std::chrono::duration<double> diff = end_time - start_time;
cerr << "Time Taken : " << diff.count... | #include "bits/stdc++.h"
using namespace std;
const auto start_time = std::chrono::high_resolution_clock::now();
void timecalculater() {
#ifndef ONLINE_JUDGE
auto end_time = std::chrono::high_resolution_clock::now();
std::chrono::duration<double> diff = end_time - start_time;
cerr << "Time Taken : " << diff.count... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 787 |
#
import sys
input=sys.stdin.readline
def main():
N=int(input())
r=["AC","WA","TLE","RE"]
c=[0]*4
for i in range(N):
s=input().strip("\n")
c[r.index(s)]+=1
for i in range(4):
print(r[i],"×",c[i])
if __name__=="__main__":
main()
| #
import sys
input=sys.stdin.readline
def main():
N=int(input())
r=["AC","WA","TLE","RE"]
c=[0]*4
for i in range(N):
s=input().strip("\n")
c[r.index(s)]+=1
for i in range(4):
print(r[i],"x",c[i])
if __name__=="__main__":
main()
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 114 |
n = int(input())
cnt = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0}
for _ in range(n):
si = input()
cnt[si] += 1
print(f'AC x {cnt["AC"]}')
print(f'WA x {cnt["WA"]}')
print(f'TLT x {cnt["TLE"]}')
print(f'RE x {cnt["RE"]}')
| n = int(input())
cnt = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0}
for _ in range(n):
si = input()
cnt[si] += 1
print(f'AC x {cnt["AC"]}')
print(f'WA x {cnt["WA"]}')
print(f'TLE x {cnt["TLE"]}')
print(f'RE x {cnt["RE"]}')
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 110 |
def main():
from sys import setrecursionlimit, stdin, stderr
from os import environ
from collections import defaultdict, deque, Counter
from math import ceil, floor
from itertools import accumulate, combinations, combinations_with_replacement
setrecursionlimit(10**6)
dbg = (lambda *something... | def main():
from sys import setrecursionlimit, stdin, stderr
from os import environ
from collections import defaultdict, deque, Counter
from math import ceil, floor
from itertools import accumulate, combinations, combinations_with_replacement
setrecursionlimit(10**6)
dbg = (lambda *something... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 230 |
ar = [0, 0, 0, 0]
for _ in range(int(input())):
s = input()
ar[{"AC": 0, "WA": 1, "TLE": 2, "RE": 3}[s]] += 1
print("AC x", arr[0])
print("WA x", arr[1])
print("TLE x", arr[2])
print("RE x", arr[3]) | arr = [0, 0, 0, 0]
for _ in range(int(input())):
s = input()
arr[{"AC": 0, "WA": 1, "TLE": 2, "RE": 3}[s]] += 1
print("AC x", arr[0])
print("WA x", arr[1])
print("TLE x", arr[2])
print("RE x", arr[3]) | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 8, 196, 0, 1, 0, 677, 31, 206, 51, 22], ["+", 8, 196, 0, 1, 0, 677, 31, 206, 51, 22]] | 5 | 106 |
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int N;
string S[100005];
int C[5];
int main(void) {
cin >> N;
for (int i = 1; i <= N; i++) {
cin >> S[i];
if (S[i] == "AC") {
C[0]++;
} else if (S[i] == "WA") {
C[1]++;
} else if (S[i] ... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int N;
string S[100005];
int C[5];
int main(void) {
cin >> N;
for (int i = 1; i <= N; i++) {
cin >> S[i];
if (S[i] == "AC") {
C[0]++;
} else if (S[i] == "WA") {
C[1]++;
} else if (S[i] ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 184 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
map<string, int> cnt;
int main() {
ios_base::sync_with_stdio(false), cin.tie(0);
cout.precision(10);
cout << fixed;
int n;
cin >> n;
while (n--) {
string s;
cin >> s;
cnt[s]++;
}
cout << "AC x " <... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
map<string, int> cnt;
int main() {
ios_base::sync_with_stdio(false), cin.tie(0);
cout.precision(10);
cout << fixed;
int n;
cin >> n;
while (n--) {
string s;
cin >> s;
cnt[s]++;
}
cout << "AC x " <... | [["-", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6], ["+", 31, 16, 12, 69, 341, 342, 0, 5, 0, 6]] | 1 | 153 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <set>
#include <string>
#include <vector>
#define fastio \
ios_base::sync_with_s... |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <set>
#include <string>
#include <vector>
#define fastio \
ios_base::sync_with_s... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 518 |
from sys import stdin
def main():
_in = [_.rstrip() for _ in stdin.readlines()]
N = int(_in[0]) # type:int
S_arr = []
for i in range(N):
_ = _in[i+1]
S_arr.append(_)
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
c_arr = [0] * 4
for S in S_arr:
if S == 'AC':... | from sys import stdin
def main():
_in = [_.rstrip() for _ in stdin.readlines()]
N = int(_in[0]) # type:int
S_arr = []
for i in range(N):
_ = _in[i+1]
S_arr.append(_)
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
c_arr = [0] * 4
for S in S_arr:
if S == 'AC':... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 181 |
n = int(input())
a, b, c, d = 0, 0, 0, 0
for i in range(n):
s = input()
if s == 'AC': a -= -1
if s == 'WA': b -= -1
if s == 'TLE': c -= -1
if s == 'RE': d -= -1
print('AC *', a)
print('WA *', b)
print('TLE *', c)
print('RE *', d) | n = int(input())
a, b, c, d = 0, 0, 0, 0
for i in range(n):
s = input()
if s == 'AC': a -= -1
if s == 'WA': b -= -1
if s == 'TLE': c -= -1
if s == 'RE': d -= -1
print('AC x', a)
print('WA x', b)
print('TLE x', c)
print('RE x', d) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 112 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
map<string, int> mp;
while (n--) {
string s;
cin >> s;
mp[s]++;
}
cout << "AC x" << mp["AC"] << "\n";
cout << "WA x" << mp["WA"] << "\n";
cout << "TLE x" << mp["TLE"] << "\n";
cout << "RE x" << mp["RE"] << "\... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
map<string, int> mp;
while (n--) {
string s;
cin >> s;
mp[s]++;
}
cout << "AC x " << mp["AC"] << "\n";
cout << "WA x " << mp["WA"] << "\n";
cout << "TLE x " << mp["TLE"] << "\n";
cout << "RE x " << mp["RE"] <... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 118 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
template <typename T>
using ordered_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
const int infI = 1e9 + 5;
const long long ... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
template <typename T>
using ordered_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
const int infI = 1e9 + 5;
const long long ... | [["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]] | 1 | 488 |
from sys import stdin, stdout
import heapq
import cProfile
from collections import Counter, defaultdict, deque
from functools import reduce
import math
from bisect import bisect,bisect_right,bisect_left
def get_int():
return int(stdin.readline().strip())
def get_tuple():
return map(int, stdin.readline().spli... | from sys import stdin, stdout
import heapq
import cProfile
from collections import Counter, defaultdict, deque
from functools import reduce
import math
from bisect import bisect,bisect_right,bisect_left
def get_int():
return int(stdin.readline().strip())
def get_tuple():
return map(int, stdin.readline().spli... | [["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]] | 5 | 160 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 215 |
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <numeric>
#include <queue>
#include <regex>
#include <set>
#include <sstream>
#include <stack>
#include <... |
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <numeric>
#include <queue>
#include <regex>
#include <set>
#include <sstream>
#include <stack>
#include <... | [["-", 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>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/rope>
#define ff(i, a, b) for (int(i) = (a); (i) <= (b); ++(i))
#define fb(i, a, b) for (int(i) = (a); (i) >= (b); --(i))
#define mod 998244353
#define xx first
#define yy second
#define all(a) (a).begi... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/rope>
#define ff(i, a, b) for (int(i) = (a); (i) <= (b); ++(i))
#define fb(i, a, b) for (int(i) = (a); (i) >= (b); --(i))
#define mod 998244353
#define xx first
#define yy second
#define all(a) (a).begi... | [["-", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6], ["+", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6]] | 1 | 214 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mem0(a) memset(a, 0, sizeof(a))
#define mem1(a) memset(a, -1, sizeof(a))
#define memf(a) memset(a, false, sizeof(a))
#define all(v) v.begin(), v.end()
#define sz(a) (ll) a.size()
#define F first
#define S second
#define INF... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mem0(a) memset(a, 0, sizeof(a))
#define mem1(a) memset(a, -1, sizeof(a))
#define memf(a) memset(a, false, sizeof(a))
#define all(v) v.begin(), v.end()
#define sz(a) (ll) a.size()
#define F first
#define S second
#define INF... | [["-", 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 | 485 |
import sys
sys.setrecursionlimit(500005)
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().strip()
n = ni()
dic = defaultdict(int)
for i in range(n):
dic[ns()] += 1
for w in ("AC", "WA", "TLE", "RE"):
print(f"{w} x {dic[w]}")
| import sys
from collections import defaultdict
sys.setrecursionlimit(500005)
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().strip()
n = ni()
dic = defaultdict(int)
for i in range(n):
dic[ns()] += 1
for w in ("AC", "WA", "TLE", "RE"):
... | [["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22]] | 5 | 120 |
/*input
10
AC
AC
AC
AC
AC
AC
AC
AC
AC
AC
*/
#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;
typedef tree<long long, null_type, less_equal<long long>, rb_tree_tag,
tree_order_statistics_node_update>
i... | /*input
6
AC
TLE
AC
AC
WA
TLE
*/
#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;
typedef tree<long long, null_type, less_equal<long long>, rb_tree_tag,
tree_order_statistics_node_update>
indexed_set;... | [["-", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6], ["+", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6]] | 1 | 389 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
using P = pair<int, int>;
int main(void) {
int h, w, k;
cin >> h >> w >> k;
vector<string> c(w);
for (int i = 0; i < h; i++) {
cin >> c[i];
}
int ans = 0;
for (int bith = 0; bith < (1 << h); bith++) {
for (int bitw = 0; bitw < ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
using P = pair<int, int>;
int main(void) {
int h, w, k;
cin >> h >> w >> k;
vector<string> c(h);
for (int i = 0; i < h; i++) {
cin >> c[i];
}
int ans = 0;
for (int bith = 0; bith < (1 << h); bith++) {
for (int bitw = 0; bitw < ... | [["-", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78], ["+", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78]] | 1 | 222 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<vector<string>> gori(h, vector<string>(w));
rep(i, h) {
rep(j, w) { cin >> gori[i][j]; }
}
int ans = 0;
rep(i, 1 << h) {
re... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int h, w, k;
cin >> h >> w >> k;
vector<vector<char>> gori(h, vector<char>(w));
rep(i, h) {
rep(j, w) { cin >> gori[i][j]; }
}
int ans = 0;
rep(i, 1 << h) {
rep(j,... | [["-", 0, 77, 39, 344, 3, 347, 0, 77, 39, 78], ["+", 0, 77, 39, 344, 3, 347, 0, 77, 39, 40], ["-", 0, 56, 39, 344, 3, 347, 0, 77, 39, 78], ["+", 0, 56, 39, 344, 3, 347, 0, 77, 39, 40], ["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 62], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104]] | 1 | 188 |
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int H, W, K;
cin >> H >> W >> K;
vector<string> c(H);
for (int i = 0; i < H; ++i)
cin >> c[i];
int ans = 0;
for (int ic = 0; ic < 1 << H; ++ic) {
for (int jc = 0; jc << W; ++jc) {
i... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int H, W, K;
cin >> H >> W >> K;
vector<string> c(H);
for (int i = 0; i < H; ++i)
cin >> c[i];
int ans = 0;
for (int ic = 0; ic < 1 << H; ++ic) {
for (int jc = 0; jc < 1 << W; ++jc) {
... | [["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 31, 13]] | 1 | 191 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.