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 <stdio.h> int main() { char s[3]; scanf("%s", s); if (s[2] == 'C') printf("ABR"); else printf("ABC"); return 0; }
#include <stdio.h> int main() { char s[3]; scanf("%s", s); if (s[1] == 'R') printf("ABC"); else printf("ARC"); return 0; }
[["-", 0, 57, 15, 23, 0, 16, 31, 69, 71, 13], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 71, 13], ["-", 0, 57, 15, 23, 0, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 23, 0, 16, 12, 103, 0, 125], ["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, ...
0
52
#include <iostream> using namespace std; int main() { // 文字列の入力 string s; cin >> s; if (s == "ABC") { cout << "ARC" << s << endl; } else if (s == "ARC") { cout << "ABC"; } return 0; }
#include <iostream> using namespace std; int main() { // 文字列の入力 string s; cin >> s; if (s == "ABC") { cout << "ARC"; } else if (s == "ARC") { cout << "ABC"; } return 0; }
[["-", 64, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 16, 17, 151], ["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]]
1
60
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); if (s.equals("ABC")) System.out.println("ARC"); else System.out.println("ARC"); } }
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); if (s.equals("ABC")) System.out.println("ARC"); else System.out.println("ABC"); } }
[["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
77
#include <bits/stdc++.h> using namespace std; #define ll long long #define FOR(i, a, b) for (ll i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) #define PRINT(item) cout << (item) << endl; #define PRINT_VEC(V) \ for (auto v : (V)) ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define FOR(i, a, b) for (ll i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) #define PRINT(item) cout << (item) << endl; #define PRINT_VEC(V) \ for (auto v : (V)) ...
[["+", 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
89
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using ll = long long int; using namespace std; ll mod = 1e9 + 7; int main() { string s; cin >> s; if (s == "ARC") { cout << "ABC" << endl; } else { cout << "ABC" << endl; } }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using ll = long long int; using namespace std; ll mod = 1e9 + 7; int main() { string s; cin >> s; if (s == "ARC") { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
70
#include <stdio.h> #include <string.h> int main() { char S[4]; scanf("%s", S); if (strcmp("ABR", S) == 0) { printf("ABC"); } else { printf("ABR"); } return 0; }
#include <stdio.h> #include <string.h> int main() { char S[4]; scanf("%s", S); if (strcmp("ARC", S) == 0) { printf("ABC"); } else { printf("ARC"); } return 0; }
[["-", 0, 16, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 16, 31, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
60
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { string s; cin >> s; if (s == "ABC") { cout << "ARC"; } else { cout << "ARC"; } return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { string s; cin >> s; if (s == "ABC") { cout << "ARC"; } else { cout << "ABC"; } return 0; }
[["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
53
// C #ifndef _GLIBCXX_NO_ASSERT #include <cassert> #endif #include <cctype> #include <cerrno> #include <cfloat> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <csetjmp> #include <csignal> #include <cstdarg> #include <cstddef> #include <cstdio> #include <cstdlib> #include <cstring> #i...
// C #ifndef _GLIBCXX_NO_ASSERT #include <cassert> #endif #include <cctype> #include <cerrno> #include <cfloat> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <csetjmp> #include <csignal> #include <cstdarg> #include <cstddef> #include <cstdio> #include <cstdlib> #include <cstring> #i...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
379
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); if (S == "ABC") { System.out.println("ARC"); } else { System.out.println("ABC"); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); if (S.equals("ABC")) { System.out.println("ARC"); } else { System.out.println("ABC"); } } }
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 15, 0, 492, 0, 131], ["+", 8, 196, 0, 57, 15, 15, 0, 492, 141, 22], ["+", 0, 57, 15, 15, 0, 492, 3, 4, 0, 24], ["+", 0, 57, 15, 15, 0, 492, 3, 4, 0, 25]]
3
79
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) int mod = 1000000007; #define ll long long int flag = 0; int main() { string s; cin >> s; cout << (s = "ABC" ? "ARC" : "ABC") << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) int mod = 1000000007; #define ll long long int main() { string s; cin >> s; cout << (s == "ABC" ? "ARC" : "ABC") << endl; }
[["-", 36, 36, 0, 30, 0, 43, 49, 50, 49, 22], ["-", 36, 36, 0, 30, 0, 43, 49, 50, 0, 32], ["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["-", 36, 36, 36, 36, 0, 30, 0, 43, 0, 35], ["-", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["-", 0, 16, 31, 16, 12, 23, 0, 42, 0, 32], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 60]]
1
60
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; long long MOD = 1000000000 + 7; int main() { cout << setprecision(10); string S; cin >> S; string ans; if (S == "ABC") { ans = "ARC"; } else { ans = "ARC"; } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; long long MOD = 1000000000 + 7; int main() { cout << setprecision(10); string S; cin >> S; string ans; if (S == "ABC") { ans = "ARC"; } else { ans = "ABC"; } cout << ans << endl; }
[["-", 0, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
82
from sys import stdin K = str(stdin.readline()) if K=="ABC": print("ARC") else: print("ABC")
from sys import stdin K = str(stdin.readline().strip()) if K=="ABC": print("ARC") else: print("ABC")
[["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
35
#include <algorithm> #include <bits/stdc++.h> #define Freopen(x) \ freopen(#x ".in", "r", stdin), freopen(#x ".out", "w", stdout); #define int long long using namespace std; signed main() { char s[10]; scanf("%s", s); printf("A%cC\n", s[1] == 'R' ? 'C'...
#include <algorithm> #include <bits/stdc++.h> #define Freopen(x) \ freopen(#x ".in", "r", stdin), freopen(#x ".out", "w", stdout); #define int long long using namespace std; signed main() { char s[10]; scanf("%s", s); printf("A%cC\n", s[1] == 'R' ? 'B'...
[["-", 0, 2, 3, 4, 0, 41, 64, 103, 0, 125], ["+", 0, 2, 3, 4, 0, 41, 64, 103, 0, 125]]
1
67
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <string> #include <vector> using namespace std; #define fori(x) for (int i = 0; i < x; ++i) #define forj(x) for (int j = 0; j < x; ++j) int main() { string s; cin >> s; if (s == "ABC") { cout << "ARC"; ...
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <string> #include <vector> using namespace std; #define fori(x) for (int i = 0; i < x; ++i) #define forj(x) for (int j = 0; j < x; ++j) int main() { string s; cin >> s; if (s == "ABC") { cout << "ARC"; ...
[["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
68
s = intput() if(s[1]=='B'): print('ARC') else: print('ABC')
s = input() if(s[1]=='B'): print('ARC') else: print('ABC')
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
31
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define inf 9e18 #define mod 1000000007 #define mod1 998244353 long long int power(long long int a, long long int n, long long int m); long long int power(long long int a, long long int n, long long int m) { if (n == 0) return 1; long long ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define inf 9e18 #define mod 1000000007 #define mod1 998244353 long long int power(long long int a, long long int n, long long int m); long long int power(long long int a, long long int n, long long int m) { if (n == 0) return 1; long long ...
[["-", 0, 57, 75, 76, 0, 1, 0, 16, 12, 22], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
214
#include "bits/stdc++.h" using namespace std; using LL = long long; constexpr int N = 1e5 + 5; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string s; cin >> s; if (s[1] == 'B') s[1] = 'C'; else s[1] = 'B'; cout << s << endl; }
#include "bits/stdc++.h" using namespace std; using LL = long long; constexpr int N = 1e5 + 5; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string s; cin >> s; if (s[1] == 'B') s[1] = 'R'; else s[1] = 'B'; cout << s << endl; }
[["-", 0, 57, 64, 1, 0, 11, 12, 103, 0, 125], ["+", 0, 57, 64, 1, 0, 11, 12, 103, 0, 125]]
1
85
import sys import itertools sys.setrecursionlimit(1000000000) from heapq import heapify,heappop,heappush,heappushpop import math import collections s = input() if s == "ABC": print("ARC") else: print(s)
import sys import itertools sys.setrecursionlimit(1000000000) from heapq import heapify,heappop,heappush,heappushpop import math import collections s = input() if s == "ABC": print("ARC") else: print("ABC")
[["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]]
5
48
#include <stdio.h> int main() { char con[3]; scanf("%s", con); if (strcmp(con, "ABC") == 0) { printf("ARC"); return 0; } else printf("ARC"); }
#include <stdio.h> int main() { char con[3]; scanf("%s", con); if (strcmp(con, "ABC") == 0) { printf("ARC"); return 0; } else printf("ABC"); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
56
#include <stdio.h> #include <string.h> int main() { char s[3]; scanf("%s", s); if (strcmp(s, "ABC") == 0) printf("ARS"); if (strcmp(s, "ARS") == 0) printf("ABC"); }
#include <stdio.h> #include <string.h> int main() { char s[3]; scanf("%s", s); if (strcmp(s, "ABC") == 0) printf("ARC"); if (strcmp(s, "ARC") == 0) printf("ABC"); }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 16, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 16, 31, 2, 3, 4, 0, 5, 0, 6]]
0
65
// JavaProgram.cpp // Author : Priydarshi Singh (@dryairship) // One cat just leads to another. One bug leads to two others. #include <bits/stdc++.h> using namespace std; // I like my types defined. typedef long long ll; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<pii> vii; typedef set<int> si;...
// JavaProgram.cpp // Author : Priydarshi Singh (@dryairship) // One cat just leads to another. One bug leads to two others. #include <bits/stdc++.h> using namespace std; // I like my types defined. typedef long long ll; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<pii> vii; typedef set<int> si;...
[["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
625
/* * @Author: Kabid * @Date: 2020-04-26 18:01:07 * @Last Modified by: Kabid * @Last Modified time: 2020-05-03 18:04:59 */ #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <set> #define ll long long #define in(x) scanf("%d"...
/* * @Author: Kabid * @Date: 2020-04-26 18:01:07 * @Last Modified by: Kabid * @Last Modified time: 2020-05-03 18:04:59 */ #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <set> #define ll long long #define in(x) scanf("%d"...
[["-", 0, 1, 0, 2, 3, 4, 0, 103, 0, 125], ["+", 0, 1, 0, 2, 3, 4, 0, 103, 0, 125]]
1
162
function Main(input) { input = input.replace(/\n/g, ' '); input = input.split(" "); var A = input[0]; console.log((a == "ABC") ? "ARC" : "ABC"); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));
function Main(input) { input = input.replace(/\n/g, ' '); input = input.split(" "); var A = input[0]; console.log((A == "ABC") ? "ARC" : "ABC"); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));
[["-", 3, 3, 0, 510, 15, 23, 0, 16, 31, 22], ["+", 3, 3, 0, 510, 15, 23, 0, 16, 31, 22]]
2
84
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bits/stdc++.h> // isupper, islower, isdigit, toupper, tolower #include <bitset> // bitset #include <cmath> // sqrt #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <deque> ...
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bits/stdc++.h> // isupper, islower, isdigit, toupper, tolower #include <bitset> // bitset #include <cmath> // sqrt #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <deque> ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
391
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { long N, M, Q; string S; cin >> S; if (S == "ABC") { cout << "ARC"; } else { cout << "ARC"; } }
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { long N, M, Q; string S; cin >> S; if (S == "ABC") { cout << "ARC"; } else { cout << "ABC"; } }
[["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
55
raw_input = input().strip() if raw_input == 'ABC': print('ARC') else: print('ARC')
raw_input = input().strip() if raw_input == 'ABC': print('ARC') else: print('ABC')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
30
/*#include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds;*/ #include <algorithm> #include <bits/stdc++.h> #include <ctype.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace std; #define pb push_back #define S second #define F first #define f...
/*#include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds;*/ #include <algorithm> #include <bits/stdc++.h> #include <ctype.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace std; #define pb push_back #define S second #define F first #define f...
[["-", 0, 14, 8, 9, 0, 1, 0, 191, 39, 78], ["-", 8, 9, 0, 1, 0, 191, 51, 83, 0, 45], ["-", 0, 191, 51, 83, 0, 16, 12, 22, 0, 46], ["-", 36, 36, 0, 30, 0, 14, 8, 9, 0, 46]]
1
112
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); System.out.println(s == "ABC" ? "ARC" : "ABC"); } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); System.out.println(s.equals("ABC") ? "ARC" : "ABC"); } }
[["-", 0, 492, 3, 4, 0, 510, 15, 16, 17, 60], ["+", 0, 492, 3, 4, 0, 510, 15, 492, 0, 131], ["+", 0, 492, 3, 4, 0, 510, 15, 492, 141, 22], ["+", 3, 4, 0, 510, 15, 492, 3, 4, 0, 24], ["+", 3, 4, 0, 510, 15, 492, 3, 4, 0, 25]]
3
64
#include <bits/stdc++.h> #include <string> using namespace std; int main() { string S; cin >> S; if (S == "ABC") { cout << "ARC"; } else if (S == "ARC") { cout << "ARC"; } }
#include <bits/stdc++.h> #include <string> using namespace std; int main() { string S; cin >> S; if (S == "ABC") { cout << "ARC"; } else if (S == "ARC") { cout << "ABC"; } }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
54
s = input() if s[1] == "R": print("ABC") else: print("ABC")
s = input() if s[1] == "R": print("ABC") else: print("ARC")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
29
#define _USE_MATH_DEFINES #include <algorithm> #include <climits> #include <cmath> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <new> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < n; i...
#define _USE_MATH_DEFINES #include <algorithm> #include <climits> #include <cmath> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <new> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < n; i...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
212
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = s; i < (int)(n); i++) typedef long long ll; typedef vector<vector<ll>> vvl; typedef vector<ll> vl; typedef vector<vector<char>> vvc; typedef vector<char> vc; typed...
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = s; i < (int)(n); i++) typedef long long ll; typedef vector<vector<ll>> vvl; typedef vector<ll> vl; typedef vector<vector<char>> vvc; typedef vector<char> vc; typed...
[["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13]]
1
297
#include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; if (S == "ABC") { cout << "ARC" << endl; } else { cout << "ARC" << endl; } system("pause"); return 0; }
#include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; if (S == "ABC") { cout << "ARC" << endl; } else { cout << "ABC" << endl; } system("pause"); return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
60
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <queue> #include <vector> using namespace std; typedef long long LL; #define int LL const int mo = 1e9 + 7; typedef pair<int, int> pii; #define gc() getchar() template <typename _T> void read(_T &x) { _T f = 1; x...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <queue> #include <vector> using namespace std; typedef long long LL; #define int LL const int mo = 1e9 + 7; typedef pair<int, int> pii; #define gc() getchar() template <typename _T> void read(_T &x) { _T f = 1; x...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
231
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s[1] == 'b' || s[1] == 'b') { cout << "ARC"; } else cout << "ABC"; return 0; }
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s[1] == 'b' || s[1] == 'B') { cout << "ARC"; } else cout << "ABC"; return 0; }
[["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
57
#include <iostream> using namespace std; int main() { string a; cin >> a; if (a == "ABC") { cout << "ARC"; } else { cout << "ARC"; } }
#include <iostream> using namespace std; int main() { string a; cin >> a; if (a == "ABC") { cout << "ARC"; } else { cout << "ABC"; } }
[["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
44
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String X = sc.next(); String ans1 = "ABC"; String ans2 = "ARC"; if (X == ans1) { System.out.println(ans2); } else { System.out.println(ans1); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String X = sc.next(); String ans1 = "ABC"; String ans2 = "ARC"; if (X.contentEquals(ans1)) { System.out.println(ans2); } else { System.out.println(ans1); ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 15, 0, 492, 0, 131], ["+", 8, 196, 0, 57, 15, 15, 0, 492, 141, 22], ["+", 0, 57, 15, 15, 0, 492, 3, 4, 0, 24], ["+", 0, 57, 15, 15, 0, 492, 3, 4, 0, 25]]
3
87
#include <stdio.h> #include <string.h> int main(void) { char s; scanf("%s", &s); if (strcmp(s, "ABC") == 0) { printf("ARC"); } else { printf("ABC"); } return 0; }
#include <stdio.h> #include <string.h> int main(void) { char s[101]; scanf("%s", &s); if (strcmp(s, "ABC") == 0) { printf("ARC"); } else { printf("ABC"); } return 0; }
[["+", 0, 14, 8, 9, 0, 43, 49, 80, 0, 70], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 0, 73]]
0
59
package main import "fmt" func main(){ var s string fmt.Scan(&s) if s == "ABC"{ fmt.Println("ARC") }else{ fmt.Println("ARC") } }
package main import "fmt" func main(){ var s string fmt.Scan(&s) if s == "ABC"{ fmt.Println("ARC") }else{ fmt.Println("ABC") } }
[["+", 36, 36, 36, 36, 36, 36, 0, 434, 0, 165]]
7
56
# n, m, q = map(int, input().split()) s = input() if s is "ARC": print("ABC") else: print("ARC")
# n, m, q = map(int, input().split()) s = input() if s == "ARC": print("ABC") else: print("ARC")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 709], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60]]
5
27
#include <bits/stdc++.h> #include <math.h> #define _GLIBCXX_DEBUG #define _LIBCPP_DEBUG 0 using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < n; i++) #define rrep(i, n) for (int i = n - 1; i >= 0; i--) #define MOD (1000000007) #define vi vector<int> #define vl vector<ll> #define vb vector<b...
#include <bits/stdc++.h> #include <math.h> #define _GLIBCXX_DEBUG #define _LIBCPP_DEBUG 0 using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < n; i++) #define rrep(i, n) for (int i = n - 1; i >= 0; i--) #define MOD (1000000007) #define vi vector<int> #define vl vector<ll> #define vb vector<b...
[["-", 0, 16, 31, 16, 12, 23, 0, 42, 0, 32], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 60]]
1
1,317
// Bismillah hirrahmanir Rahim #include <bits/stdc++.h> #define ll long long #define pb push_back #define dbug printf("I am here\n"); #define Fast \ ios_base::sync_with_stdio(false); \ cin.tie(0); const int ...
// Bismillah hirrahmanir Rahim #include <bits/stdc++.h> #define ll long long #define pb push_back #define dbug printf("I am here\n"); #define Fast \ ios_base::sync_with_stdio(false); \ cin.tie(0); const int ...
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 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
81
#include <algorithm> #include <cmath> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; typedef long long ll; using Graph = vector<vector<int>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define Rep(i, k, n) for (int i = k; i < (int)(n); i++) int main() { string...
#include <algorithm> #include <cmath> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; typedef long long ll; using Graph = vector<vector<int>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define Rep(i, k, n) for (int i = k; i < (int)(n); i++) int main() { string...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
88
<?php $S = trim(fgets(STDIN)); if ($S = 'ABC') { echo 'ARC'; } else { echo 'ABC'; }
<?php $S = trim(fgets(STDIN)); if ($S === 'ABC') { echo 'ARC'; } else { echo 'ABC'; }
[["-", 0, 493, 0, 57, 15, 23, 0, 11, 0, 32], ["+", 0, 493, 0, 57, 15, 23, 0, 16, 17, 565]]
6
36
package main import ( "bufio" "fmt" "os" ) func main() { reader := bufio.NewReader(os.Stdin) text, _ := reader.ReadString('\n') if text == "ABC" { fmt.Println("ARC") } else { fmt.Println("ABC") } }
package main import ( "bufio" "fmt" "os" ) func main() { reader := bufio.NewReader(os.Stdin) text, _ := reader.ReadString('\n') if text == "ABC\n" { fmt.Println("ARC") } else { fmt.Println("ABC") } }
[["+", 8, 196, 0, 57, 15, 16, 12, 429, 0, 44]]
7
78
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s.at(1) == 'B') { cout << "ABC" << endl; } else if (s.at(1) == 'R') { cout << "ARC" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s.at(1) == 'B') { cout << "ARC" << endl; } else if (s.at(1) == 'R') { cout << "ABC" << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
66
#include <bits/stdc++.h> using namespace std; using ll = long long; template <class T, class U> inline bool chmin(T &x, U y) { if (x > y) { x = y; return true; } return false; } template <class T, class U> inline bool chmax(T &x, U y) { if (x < y) { x = y; return true; } return false; } #def...
#include <bits/stdc++.h> using namespace std; using ll = long long; template <class T, class U> inline bool chmin(T &x, U y) { if (x > y) { x = y; return true; } return false; } template <class T, class U> inline bool chmax(T &x, U y) { if (x < y) { x = y; return true; } return false; } #def...
[["+", 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
170
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S == "ABC") { cout << "ABC" << endl; ; } else { cout << "ARC" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; if (S == "ABC") { cout << "ARC" << endl; ; } else { cout << "ABC" << endl; } return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
52
#include <iostream> using namespace std; int main() { string s; if (s == "ARC") cout << "ABC\n"; else cout << "ARC\n"; return 0; }
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s == "ARC") cout << "ABC\n"; else cout << "ARC\n"; return 0; }
[["+", 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
41
#include <bits/stdc++.h> using namespace std; void alert(vector<int> vec) { int64_t N = vec.size(); for (int i = 0; i < N - 1; i++) cout << vec.at(i) << " "; cout << vec.at(N - 1) << endl; } int main() { string S; cin >> S; if (S == "ABC") cout << "ARC" << endl; else cout << "ARC" << endl; }
#include <bits/stdc++.h> using namespace std; void alert(vector<int> vec) { int64_t N = vec.size(); for (int i = 0; i < N - 1; i++) cout << vec.at(i) << " "; cout << vec.at(N - 1) << endl; } int main() { string S; cin >> S; if (S == "ABC") cout << "ARC" << endl; else cout << "ABC" << endl; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
106
S = gets if S == "ABC" puts "ARC" else puts "ABC" end
S = gets.chomp if S == "ABC" puts "ARC" else puts "ABC" end
[["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
19
// C++ includes #include <bits/stdc++.h> // 俳句 using namespace std; // alias templates template <class T> using V = vector<T>; template <class T> using VV = V<V<T>>; // alias declaration using ll = long long; using str = string; using vll = V<ll>; using vvll = V<vll>; using vs = V<str>; // loops #define FOR(i, a, b...
// C++ includes #include <bits/stdc++.h> // 俳句 using namespace std; // alias templates template <class T> using V = vector<T>; template <class T> using VV = V<V<T>>; // alias declaration using ll = long long; using str = string; using vll = V<ll>; using vvll = V<vll>; using vs = V<str>; // loops #define FOR(i, a, b...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
162
#include <bits/stdc++.h> #include <cstdio> #include <iostream> using namespace std; typedef long long ll; int main() { char a[3]; cin >> a; if (a == "ARC") cout << "ABC" << endl; else cout << "ARC" << endl; return 0; }
#include <bits/stdc++.h> #include <cstdio> #include <iostream> using namespace std; typedef long long ll; int main() { string a; cin >> a; if (a == "ARC") cout << "ABC" << endl; else cout << "ARC" << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 14, 8, 9, 0, 43, 49, 80, 0, 70], ["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 0, 14, 8, 9, 0, 43, 49, 80, 0, 73]]
1
59
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdint> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #define rep(i, n) for (int i = 0; ...
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdint> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #define rep(i, n) for (int i = 0; ...
[["+", 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
100
s=input() if s == ARC: print("ABC") elif s == ABC: print("ARC") else: print("input is wrong")
s=input() if s == "ARC": print("ABC") elif s == "ABC": print("ARC") else: print("input is wrong")
[["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 654], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 655]]
5
35
#--A - A?C S = input() if(S == "ABC"): print("ARC") else: print("ARC")
#--A - A?C S = input() if(S == "ABC"): print("ARC") else: print("ABC")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
29
#include <bits/stdc++.h> using namespace std; int main() { string a; if (a == "ABC") { cout << "ARC" << endl; } else if (a == "ARC") { cout << "ABC" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; if (a == "ABC") { cout << "ARC" << endl; } else if (a == "ARC") { cout << "ABC" << endl; } }
[["+", 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
52
#include <cmath> #include <iostream> #include <map> #include <numeric> #include <set> #include <vector> #define ll long long #define MOD = 1e9 + 7 using namespace std; int main() { string S; cin >> S; if (S == "ABC") cout << "ARC" << endl; if (S == "ARC") cout << "ARC" << endl; }
#include <cmath> #include <iostream> #include <map> #include <numeric> #include <set> #include <vector> #define ll long long #define MOD = 1e9 + 7 using namespace std; int main() { string S; cin >> S; if (S == "ABC") cout << "ARC" << endl; if (S == "ARC") cout << "ABC" << endl; }
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
67
#include <algorithm> #include <bitset> #include <cmath> #include <ctype.h> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <ios> #include <iostream> #include <istream> #include <list> #include <map> #include <math.h> #include <queue> #include <random> #include <set> #include <stack...
#include <algorithm> #include <bitset> #include <cmath> #include <ctype.h> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <ios> #include <iostream> #include <istream> #include <list> #include <map> #include <math.h> #include <queue> #include <random> #include <set> #include <stack...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
247
#include <bits/stdc++.h> using namespace std; int main() { string A, C, R; C == "ABC"; R == "ARC"; cin >> A; if (A == C) { cout << R << endl; } if (A == R) { cout << C << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string A, C, R; C = "ABC"; R = "ARC"; cin >> A; if (A == C) { cout << R << endl; } if (A == R) { cout << C << endl; } return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 60], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32]]
1
66
package main import ( "bufio" "fmt" "os" "sort" "strconv" "strings" ) func main() { a := reads() if a == "ABC" { fmt.Println("ARC") } else { fmt.Println("ARC") } } // IO--------------------------------------------------- func readi() (n int) { fmt.Scan(&n) return } func readf() (n float64) { fmt....
package main import ( "bufio" "fmt" "os" "sort" "strconv" "strings" ) func main() { a := reads() if a == "ABC" { fmt.Println("ARC") } else { fmt.Println("ABC") } } // IO--------------------------------------------------- func readi() (n int) { fmt.Scan(&n) return } func readf() (n float64) { fmt....
[["+", 36, 36, 36, 36, 36, 36, 0, 434, 0, 165]]
7
947
a = input() if a == input(): print('ARC') elif a == 'ARC': print('ABC')
a = input() if a == 'ABC': print('ARC') elif a == 'ARC': print('ABC')
[["-", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["-", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["-", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655]]
5
31
string = int(input()) if string=="ABC": print("ARC") elif string=="ARC": print("ABC")
string = input() if string=="ABC": print("ARC") elif string=="ARC": print("ABC")
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
34
#include <bits/stdc++.h> using namespace std; int main(void) { string S; if (S == "ARC") { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
#include <bits/stdc++.h> using namespace std; int main(void) { string S; cin >> S; if (S == "ARC") { cout << "ABC" << endl; } else { cout << "ARC" << endl; } }
[["+", 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
45
a = int(input) if a == 'ABC': print('ARC') elif a == 'ARC': print('ABC')
#提出時にコメントアウトを外す。 a = input() if a == 'ABC': print('ARC') elif a == 'ARC': print('ABC')
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24]]
5
32
if input()=="ABC": print("ARC") else: print("ARC")
if input()=="ABC": print("ARC") else: print("ABC")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
23
/* * author :Sadik Hassan * */ #include "bits/stdc++.h" using namespace std; #define ll long long #define nl "\n" #define pb push_back #define fi first #define se second #define PI (acos(-1.0)) #define repp(i, a, n) for (int i = a; i < n; i++) #define rep(i, n) for (int i = 0; i < n; i++) #define SZ(s) s.size() #def...
/* * author :Sadik Hassan * */ #include "bits/stdc++.h" using namespace std; #define ll long long #define nl "\n" #define pb push_back #define fi first #define se second #define PI (acos(-1.0)) #define repp(i, a, n) for (int i = a; i < n; i++) #define rep(i, n) for (int i = 0; i < n; i++) #define SZ(s) s.size() #def...
[["+", 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
191
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s == "ABC") cout << "ARC"; else cout << s; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s == "ABC") cout << "ARC"; else cout << "ABC"; }
[["-", 0, 57, 75, 76, 0, 1, 0, 16, 12, 22], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
38
#include <bits/stdc++.h> using namespace std; // typedef typedef long long ll; typedef vector<int> vi; typedef vector<string> vs; // define #define rep(i, n) for (int i = 0, i < n, i++) //////////////////////////////////////////////////////////////////// int main() { string a; cin >> a; if (a == "ABC") { cou...
#include <bits/stdc++.h> using namespace std; // typedef typedef long long ll; typedef vector<int> vi; typedef vector<string> vs; // define #define rep(i, n) for (int i = 0, i < n, i++) //////////////////////////////////////////////////////////////////// int main() { string a; cin >> a; if (a == "ABC") { cou...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
81
#include <bits/stdc++.h> #include <vector> using namespace std; int main(void) { string A; cin >> A; if (A == "ABC") { cout << "ARC"; } else { cout << "ARC"; } }
#include <bits/stdc++.h> #include <vector> using namespace std; int main(void) { string A; cin >> A; if (A == "ABC") { cout << "ARC"; } else { cout << "ABC"; } }
[["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
47
n = input() print(["ABC","ARC"][n=="ARC"])
n = input() print(["ABC","ARC"][n=="ABC"])
[["-", 3, 4, 0, 206, 206, 666, 0, 557, 0, 6], ["+", 3, 4, 0, 206, 206, 666, 0, 557, 0, 6]]
5
24
s=int(input()) if s=='ABC': print('ARC') else: print('ABC')
s=(input()) if s=='ABC': print('ARC') else: print('ABC')
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
29
#pragma GCC target("avx2") #pragma GCC optimization("O3") #pragma GCC optimization("unroll-loops") #include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios_base::sync_with_stdio(0); cin.tie(0); string s; cin >> s; s[1] = (s[1] == 'R' ? 'C' : 'R'); cout << s << '\n'; return 0; }...
#pragma GCC target("avx2") #pragma GCC optimization("O3") #pragma GCC optimization("unroll-loops") #include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios_base::sync_with_stdio(0); cin.tie(0); string s; cin >> s; s[1] = (s[1] == 'R' ? 'B' : 'R'); cout << s << '\n'; return 0; }...
[["-", 0, 11, 12, 23, 0, 41, 64, 103, 0, 125], ["+", 0, 11, 12, 23, 0, 41, 64, 103, 0, 125]]
1
79
if __name__ == '__main__': from sys import stdin # from collections import defaultdict import math input = stdin.readline # import random a = input()[-1] if a == 'ARC': print('ABC') else: print('ARC')
if __name__ == '__main__': from sys import stdin # from collections import defaultdict import math input = stdin.readline # import random a = input()[:3] if a == 'ARC': print('ABC') else: print('ARC')
[["-", 0, 1, 0, 662, 12, 206, 206, 664, 17, 33], ["-", 0, 1, 0, 662, 12, 206, 206, 664, 28, 612], ["+", 0, 1, 0, 662, 12, 206, 206, 663, 0, 102], ["+", 0, 1, 0, 662, 12, 206, 206, 663, 0, 612]]
5
50
#include <bits/stdc++.h> #include <cmath> #include <cstdlib> #include <math.h> #include <stdio.h> #include <string> using namespace std; int main() { string tx; cin >> tx; if (tx == "ARC") { cout << "ABC"; } { cout << "ARC"; } }
#include <bits/stdc++.h> #include <cmath> #include <cstdlib> #include <math.h> #include <stdio.h> #include <string> using namespace std; int main() { string tx; cin >> tx; if (tx == "ARC") { cout << "ABC"; } else { cout << "ARC"; } }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
53
#include <iostream> #include <string> using namespace std; int main(void) { string s, t; cin >> s; if (s == "ABC") { cout << "ARC"; } else { cout << "ARC"; } return 0; }
#include <iostream> #include <string> using namespace std; int main(void) { string s, t; cin >> s; if (s == "ABC") { cout << "ARC"; } else { cout << "ABC"; } return 0; }
[["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
52
#include <bits/stdc++.h> using namespace std; #define ios \ ios_base::sync_with_stdio(0); \ cin.tie(NULL); \ cout.tie(NULL) #define ll lon...
#include <bits/stdc++.h> using namespace std; #define ios \ ios_base::sync_with_stdio(0); \ cin.tie(NULL); \ cout.tie(NULL) #define ll lon...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
54
#include <stdio.h> #include <string.h> int main(void) { char *s; scanf("%s", s); if (strcmp(s, "ABC") == 0) printf("ARC\n"); else printf("ABC\n"); return 0; }
#include <stdio.h> #include <string.h> int main(void) { char s[4]; scanf("%s", s); if (strcmp(s, "ABC") == 0) printf("ARC\n"); else printf("ABC\n"); return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 84, 0, 48], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 0, 70], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 0, 73]]
0
57
// Problem : A - A?C // Contest : AtCoder - AtCoder Beginner Contest 166 // URL : https://atcoder.jp/contests/abc166/tasks/abc166_a // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) #include <bits/stdc++.h> using namespace std; typedef long long ll; typed...
// Problem : A - A?C // Contest : AtCoder - AtCoder Beginner Contest 166 // URL : https://atcoder.jp/contests/abc166/tasks/abc166_a // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) #include <bits/stdc++.h> using namespace std; typedef long long ll; typede...
[["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 70], ["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 73], ["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104], ["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 62], ["+", 0, 57, 15, 339, 51, 16, 1...
1
283
print("ABC"if input()=="ABC"else"ARC")
print("ABC"if input()=="ARC"else"ARC")
[["-", 3, 4, 0, 41, 0, 666, 0, 557, 0, 6], ["+", 3, 4, 0, 41, 0, 666, 0, 557, 0, 6]]
5
18
# -*- coding: utf-8 -*- # スペース区切りの整数の入力 #N, K = map(int, input().split()) # 文字列の入力 s = input() #開業されたN個要素を受け付ける #list = [input() for i in range(N)] if s==ABC: print("ARC") else: print("ABC")
# -*- coding: utf-8 -*- # スペース区切りの整数の入力 #N, K = map(int, input().split()) # 文字列の入力 s = input() #開業されたN個要素を受け付ける #list = [input() for i in range(N)] if s=="ABC": print("ARC") else: print("ABC")
[["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655]]
5
30
#include <bits/stdc++.h> #define ll long long #define rep(i, a, n) for (int i = a; i < n; i++) #define pb push_back #define endl "\n" #define dd double #define mp make_pair #define fi first #define se second #define ull unsigned int long long const int INF = INT_MAX; #define INFL LLONG_MAX #define f_scan ios_base::sync...
#include <bits/stdc++.h> #define ll long long #define rep(i, a, n) for (int i = a; i < n; i++) #define pb push_back #define endl "\n" #define dd double #define mp make_pair #define fi first #define se second #define ull unsigned int long long const int INF = INT_MAX; #define INFL LLONG_MAX #define f_scan ios_base::sync...
[["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]]
1
114
#include <stdio.h> #include <string.h> int main(void) { char s[4]; scanf("%s", &s); if (strcmp(s, "ABC")) printf("ARC"); else printf("ABC"); return 0; }
#include <stdio.h> #include <string.h> int main(void) { char s[4]; scanf("%s", &s); if (!strcmp(s, "ABC")) printf("ARC"); else printf("ABC"); return 0; }
[["+", 8, 9, 0, 57, 15, 23, 0, 91, 17, 111]]
0
56
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const int maxn = 1e5 + 10; void solved() { string s; cin >> s; if (s == "ABC") cout << "ARC" << endl; cout << "ABC" << endl; } int main() { solved(); return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const int maxn = 1e5 + 10; void solved() { string s; cin >> s; if (s == "ABC") cout << "ARC" << endl; else cout << "ABC" << endl; } int main() { solved(); return 0; }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
70
#include <bits/stdc++.h> #define ll long long using namespace std; const int MX = 200'000 + 5; // check bounds! int main() { string s; cin >> s; cout << (s == "ABC" ? "ARC" : s); return 0; }
#include <bits/stdc++.h> #define ll long long using namespace std; const int MX = 200'000 + 5; // check bounds! int main() { string s; cin >> s; cout << (s == "ABC" ? "ARC" : "ABC"); return 0; }
[["-", 0, 1, 0, 16, 12, 23, 0, 41, 75, 22], ["+", 0, 16, 12, 23, 0, 41, 75, 5, 0, 62], ["+", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
50
s = str(input()) if s == 'ABC': print('ARC') else: print('ARC')
s = str(input()) if s == 'ABC': print('ARC') else: print('ABC')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
29
#include <algorithm> #include <bits/stdc++.h> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <iterator> #include <map> #include <numeric> #include <set> #include <string> #include <utility> #include <vector> using namespace std; #define ll long long int #define M 1000000007 int mai...
#include <algorithm> #include <bits/stdc++.h> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <iterator> #include <map> #include <numeric> #include <set> #include <string> #include <utility> #include <vector> using namespace std; #define ll long long int #define M 1000000007 int mai...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
88
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using P = pair<int, int>; string str; int main() { cin >> str; if (str == "ABC") { cout << "AGC" << endl; } else { cout << "ABC" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using P = pair<int, int>; string str; int main() { cin >> str; if (str == "ABC") { cout << "ARC" << endl; } else { cout << "ABC" << endl; } return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
75
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef double db; void fastInputOutput() { ios_base::sync_with_stdio(false); cin.tie(NULL); } ll GCD(ll a, ll b) { ll gcd, g; g = __gcd(a, b); return g; } ll LCM(ll a, ll b) { ll gcd, g; g = __gcd(a, b); return (a / g) * b; } ll PowF...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef double db; void fastInputOutput() { ios_base::sync_with_stdio(false); cin.tie(NULL); } ll GCD(ll a, ll b) { ll gcd, g; g = __gcd(a, b); return g; } ll LCM(ll a, ll b) { ll gcd, g; g = __gcd(a, b); return (a / g) * b; } ll PowF...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
223
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, x) for (int i = 0; i < x; i++) #define put(ans) cout << ans << endl; #define sort(s) sort(s.begin(), s.end()) #define reverse(s) reverse(s.begin(), s.end()) //最大公約数 ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } //最小公倍数 ll lcm(ll ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, x) for (int i = 0; i < x; i++) #define put(ans) cout << ans << endl; #define sort(s) sort(s.begin(), s.end()) #define reverse(s) reverse(s.begin(), s.end()) //最大公約数 ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } //最小公倍数 ll lcm(ll ...
[["-", 75, 76, 0, 9, 0, 1, 0, 2, 63, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 2, 63, 22], ["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
199
#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 li long #define ll long long #define ull unsigned long long #define ff first #define ss second #define pii pair<int, int> #define pli pair<li, li> #define pll p...
#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 li long #define ll long long #define ull unsigned long long #define ff first #define ss second #define pii pair<int, int> #define pli pair<li, li> #define pll p...
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["-", 75, 76, 0, 1, 0, 11, 12, 103, 0, 125], ["+", 75, 76, 0, 1, 0, 11, 12, 103, 0, 125]]
1
332
S = input() if(s=='ARC'): print('ABC') else: print('ARC')
s = input() if(s=='ARC'): print('ABC') else: print('ARC')
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22]]
5
28
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(sc.next() == "ABC" ? "ARC" : "ABC"); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(sc.next().equals("ABC") ? "ARC" : "ABC"); } }
[["-", 0, 492, 3, 4, 0, 510, 15, 16, 17, 60], ["+", 0, 492, 3, 4, 0, 510, 15, 492, 0, 131], ["+", 0, 492, 3, 4, 0, 510, 15, 492, 141, 22], ["+", 3, 4, 0, 510, 15, 492, 3, 4, 0, 24], ["+", 3, 4, 0, 510, 15, 492, 3, 4, 0, 25]]
3
60
#include <bits/stdc++.h> using namespace std; #define stop exit(0) int main() { vector<long long> v; long long a, b, c, i; string s; cin >> s; if (s == "ABC") { cout << "ARG"; } else { cout << "ABC"; } }
#include <bits/stdc++.h> using namespace std; #define stop exit(0) int main() { vector<long long> v; long long a, b, c, i; string s; cin >> s; if (s == "ABC") { cout << "ARC"; } else { cout << "ABC"; } }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
64
import sys import math input = sys.stdin.readline s = input() if s == 'ABC': print('ARC') else: print('ABC')
import sys import math input = sys.stdin.readline s = input() if s == 'ABC\n': print('ARC') else: print('ABC')
[["+", 0, 57, 15, 666, 0, 557, 0, 6, 0, 44]]
5
37
import sys read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines def main(): s = readline().strip() if s == "ABC": print("ARC") else: print("ARC") if __name__ == "__main__": main()
import sys read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines def main(): s = readline().strip() if s == "ABC": print("ARC") else: print("ABC") 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
68
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; #define ll long long #define vec vector<int> #define vecll vector<ll> #define vec2 vector<vector<int>> #define vec2ll vector<vector<ll>> #define vpair vector<pair<int, int>> #define vpairll vector<pair<ll, ll>> #define rep(i, n) for (ll i = (ll)0;...
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; #define ll long long #define vec vector<int> #define vecll vector<ll> #define vec2 vector<vector<int>> #define vec2ll vector<vector<ll>> #define vpair vector<pair<int, int>> #define vpairll vector<pair<ll, ll>> #define rep(i, n) for (ll i = (ll)0;...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
185
from sys import stdin S = int(stdin.readline().rstrip()) if S=="ABC": print("ARC") else: print("ABC")
from sys import stdin S = stdin.readline().rstrip() if S=="ABC": print("ARC") else: print("ABC")
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
39
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rrep(i, n) for (int i = 1; i < (int)(n); i++) #define dunk(n) cout << n << endl #define all(a) (a).begin(), (a).end() typedef pair<int, int> P; typedef long long ll; int main() { string s...
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rrep(i, n) for (int i = 1; i < (int)(n); i++) #define dunk(n) cout << n << endl #define all(a) (a).begin(), (a).end() typedef pair<int, int> P; typedef long long ll; int main() { string s...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
89
s = input() if (s[1] == B): print("ARC") else: print("ABC")
s = input() if (s[1] == "B"): print("ARC") else: print("ABC")
[["+", 0, 57, 15, 23, 0, 666, 0, 557, 0, 654], ["+", 0, 57, 15, 23, 0, 666, 0, 557, 0, 655]]
5
29