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 |
|---|---|---|---|---|
// ░░░░░░░░( •̪●)░░░░░░░░░░░░░░░░░░░░░░░░
// ░░░░░░███████ ]▄▄▄▄▄▄▄▄▃░░░▃░░░░ ▃░
// ▂▄▅█████████▅▄▃▂░░░░░░░░░░░░░░░░░
// [███████████████████].░░░░░░░░░░░░░░
// ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤...░░░░░░░░░░░░
// PointBlank's code (⌐■_■)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define repp(I, A, B) for (in... | // ░░░░░░░░( •̪●)░░░░░░░░░░░░░░░░░░░░░░░░
// ░░░░░░███████ ]▄▄▄▄▄▄▄▄▃░░░▃░░░░ ▃░
// ▂▄▅█████████▅▄▃▂░░░░░░░░░░░░░░░░░
// [███████████████████].░░░░░░░░░░░░░░
// ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤...░░░░░░░░░░░░
// PointBlank's code (⌐■_■)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define repp(I, A, B) for (in... | [["-", 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 | 237 |
//インクルード(アルファベット順)
#include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <cmath> //pow,logなど
#include <complex> //複素数
#include <deque> //両端アクセスのキュー
#include <functional> //sortのgreater
#include <iomanip> //setprecision(浮動小数点の出力の誤差)
#include <iostream> /... | //インクルード(アルファベット順)
#include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <cmath> //pow,logなど
#include <complex> //複素数
#include <deque> //両端アクセスのキュー
#include <functional> //sortのgreater
#include <iomanip> //setprecision(浮動小数点の出力の誤差)
#include <iostream> /... | [["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6]] | 1 | 215 |
import sys
readline = sys.stdin.readline
def main():
print("A" + ("R" if readline().rstrip()[1] == "B" else "R") + "C")
if __name__ == '__main__':
main()
| import sys
readline = sys.stdin.readline
def main():
print("A" + ("R" if readline().rstrip()[1] == "B" else "B") + "C")
if __name__ == '__main__':
main()
| [["-", 31, 657, 12, 23, 0, 41, 0, 557, 0, 6], ["+", 31, 657, 12, 23, 0, 41, 0, 557, 0, 6]] | 5 | 59 |
#include <bits/stdc++.h>
#define pb push_back
#define f first
#define s second
using namespace std;
#define error(args...) \
{ \
string _s = #args; ... | #include <bits/stdc++.h>
#define pb push_back
#define f first
#define s second
using namespace std;
#define error(args...) \
{ \
string _s = #args; ... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 60], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32]] | 1 | 129 |
package main
import "fmt"
func main() {
var s string
fmt.Sprintf("%s", &s)
if s == "ABC" {
fmt.Print("ARC")
} else {
fmt.Print("ABC")
}
}
| package main
import "fmt"
func main() {
var s string
fmt.Scanf("%s", &s)
if s == "ABC" {
fmt.Print("ARC")
} else {
fmt.Print("ABC")
}
}
| [["-", 36, 36, 36, 36, 36, 36, 0, 434, 0, 165], ["+", 36, 36, 36, 36, 36, 36, 0, 434, 0, 165], ["-", 8, 196, 0, 1, 0, 2, 63, 438, 119, 120], ["+", 8, 196, 0, 1, 0, 2, 63, 438, 119, 120]] | 7 | 61 |
S = input()
if(S is 'ARC'):
print("ABC")
else:
print("ARC") | S = input()
if(S == 'ARC'):
print("ABC")
else:
print("ARC") | [["-", 0, 656, 0, 57, 15, 23, 0, 666, 667, 709], ["+", 0, 656, 0, 57, 15, 23, 0, 666, 667, 60]] | 5 | 28 |
s=input()
if s==ABC:
print('ARC')
elif s==ARC:
print('ABC')
| s=input()
if s=='ABC':
print('ARC')
elif s=='ARC':
print('ABC')
| [["+", 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 | 27 |
#include <stdio.h>
#include <string.h>
int main(void) {
char s1[4] = {0};
scanf("%s", s1);
if (strcmp(s1, "ABC"))
puts("ARC");
else if (strcmp(s1, "ARC"))
puts("ABC");
return 0;
} | #include <stdio.h>
#include <string.h>
int main(void) {
char s1[4] = {0};
scanf("%s", s1);
if (!strcmp(s1, "ABC"))
puts("ARC");
else if (!strcmp(s1, "ARC"))
puts("ABC");
return 0;
} | [["+", 8, 9, 0, 57, 15, 339, 51, 91, 17, 111], ["+", 75, 76, 0, 57, 15, 339, 51, 91, 17, 111]] | 1 | 70 |
#include <iostream>
using namespace std;
int main(void) {
string S;
cin >> S;
if (S == "ABC") {
cout << "ARC" << endl;
} else if (S == "ARC") {
cout << "ARC" << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
string S;
cin >> S;
if (S == "ABC") {
cout << "ARC" << endl;
} else if (S == "ARC") {
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 | 60 |
#include <iostream>
#include <stack>
#include <string.h>
#include <vector>
using namespace std;
int main() {
string N;
cin >> N;
if (N == "ABC")
cout << "ARC" << endl;
else
cout << "ARC" << endl;
return 0;
} | #include <iostream>
#include <stack>
#include <string.h>
#include <vector>
using namespace std;
int main() {
string N;
cin >> N;
if (N == "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 | 53 |
<?php
fscanf(STDIN, "%s", $name);
if($name = "ABC"){
echo "ARC";
}else{
echo "ABC";
}
?> | <?php
fscanf(STDIN, "%s", $name);
if($name == "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, 60], ["+", 36, 36, 36, 36, 0, 493, 0, 260, 0, 35]] | 6 | 38 |
a = gets.chomp
if a == ABC
puts "ARC"
else
puts "ABC"
end | a = gets.chomp
if a == "ABC"
puts "ARC"
else
puts "ABC"
end | [["+", 0, 493, 0, 121, 15, 738, 12, 557, 0, 62]] | 4 | 19 |
#include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "ABC")
cout << "ARC" << endl;
else
;
cout << "ABC" << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "ABC")
cout << "ARC" << endl;
else
cout << "ABC" << endl;
return 0;
} | [["-", 8, 9, 0, 57, 75, 76, 0, 1, 0, 35]] | 1 | 48 |
#include <stdio.h>
#include <string.h>
int main() {
char S[3];
scanf("%s", S);
if (strcmp(S, "ABC") == 0) {
printf("ARC");
} else {
printf("ARC");
}
return 0;
}
| #include <stdio.h>
#include <string.h>
int main() {
char S[10];
scanf("%s", S);
if (strcmp(S, "ABC") == 0) {
printf("ARC");
} else {
printf("ABC");
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 60 |
#include <stdio.h>
int main(void) {
char s[4];
scanf("%s", s);
if (s == "ABC")
printf("ARC");
else
printf("ABC");
return 0;
}
| #include <stdio.h>
int main(void) {
char s[4];
scanf("%s", s);
if (s[1] == 'B')
printf("ARC");
else
printf("ABC");
return 0;
}
| [["+", 0, 57, 15, 23, 0, 16, 31, 69, 0, 70], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 71, 13], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 0, 73], ["-", 0, 57, 15, 23, 0, 16, 12, 5, 0, 62], ["-", 0, 57, 15, 23, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 23, 0, 16, 12, 103, 0, 104], ["+", 0, 57, 15, 23, 0, 16, 12, 103, 0, 125]] | 0 | 50 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i, a, n, op) for (int i = a; i < (int)(n); i##op##op)
#define cout(val) cout << val << endl
using namespace std;
int main() {
string a;
cin >> a;
if (a == "ABC") {
cout("ABC");
} else {
cout("ABC");
}
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i, a, n, op) for (int i = a; i < (int)(n); i##op##op)
#define cout(val) cout << val << endl
using namespace std;
int main() {
string a;
cin >> a;
if (a == "ABC") {
cout("ARC");
} else {
cout("ABC");
}
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 72 |
#include <stdio.h>
int main() {
char S[3];
scanf("%s", S);
if (S[2] == 'B') {
printf("ARC\n");
} else {
printf("ABC\n");
}
return 0;
} | #include <stdio.h>
int main() {
char S[3];
scanf("%s", S);
if (S[1] == 'B') {
printf("ARC\n");
} else {
printf("ABC\n");
}
return 0;
} | [["-", 0, 57, 15, 23, 0, 16, 31, 69, 71, 13], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 71, 13]] | 0 | 58 |
import java.util.Scanner;
public class Main {
public static void main(String arg[]) {
Scanner scan = new Scanner(System.in);
String abc = scan.nextLine();
if (abc == "ABC") {
System.out.println("ARC");
} else {
System.out.println("ABC");
}
}
} | import java.util.Scanner;
public class Main {
public static void main(String arg[]) {
Scanner scan = new Scanner(System.in);
String abc = scan.nextLine();
if (abc.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 |
s=string(input())
print('ARC') if s=='ABC' else print('ABC') | s=input()
print('ARC') if s=='ABC' 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 | 27 |
#include <bits/stdc++.h>
#define boost \
ios::sync_with_stdio(false); \
cin.tie(0)
#define ll long long int
#define ld long double
#define mk make_pair
#define pb push_back
#define f first
#define s seco... | #include <bits/stdc++.h>
#define boost \
ios::sync_with_stdio(false); \
cin.tie(0)
#define ll long long int
#define ld long double
#define mk make_pair
#define pb push_back
#define f first
#define s seco... | [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 126 |
import java.util.*;
class Main {
public static void main(String args[]) {
Scanner inp = new Scanner(System.in);
String s = inp.nextLine();
String ans = (s == "ABC" ? "ARC" : "ABC");
System.out.println(ans);
}
} | import java.util.*;
class Main {
public static void main(String args[]) {
Scanner inp = new Scanner(System.in);
String s = inp.nextLine();
String ans = (s.equals("ABC") ? "ARC" : "ABC");
System.out.println(ans);
}
} | [["-", 49, 200, 51, 23, 0, 510, 15, 16, 17, 60], ["+", 49, 200, 51, 23, 0, 510, 15, 492, 0, 131], ["+", 49, 200, 51, 23, 0, 510, 15, 492, 141, 22], ["+", 51, 23, 0, 510, 15, 492, 3, 4, 0, 24], ["+", 51, 23, 0, 510, 15, 492, 3, 4, 0, 25]] | 3 | 71 |
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using ll = long long;
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
string s;
cin >> s;
if (s == "ABC")
cout << "ARC" << endl;
else
cout << "ARC" << endl;
return 0;
}
| #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using ll = long long;
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
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 | 67 |
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define STR 4
int main() {
char S[STR];
scanf("%s", S);
if (S != "ABC\n") {
printf("ABC\n");
} else {
printf("ARC\n");
}
return 0;
} | #include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define STR 4
int main() {
char S[STR];
scanf("%s", S);
if (S[1] != 'B') {
printf("ABC\n");
} else {
printf("ARC\n");
}
return 0;
} | [["+", 0, 57, 15, 23, 0, 16, 31, 69, 0, 70], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 71, 13], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 0, 73], ["-", 0, 57, 15, 23, 0, 16, 12, 5, 0, 62], ["-", 0, 57, 15, 23, 0, 16, 12, 5, 0, 6], ["-", 0, 57, 15, 23, 0, 16, 12, 5, 0, 44], ["+", 0, 57, 15, 23, 0, 16, 12, 103, 0, 104], ["+", 0, 57,... | 0 | 67 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S[1] == 'B')
cout << "ARC";
else
cout << "ARC";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S[1] == 'B')
cout << "ARC";
else
cout << "ABC";
} | [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 43 |
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack... | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack... | [["+", 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 | 105 |
#include <iostream>
#include <string>
using namespace std;
int main() {
string a;
cin >> a;
if (a == "ARC") {
cout << "ABC" << endl;
} else if (a == "ARC") {
cout << "ARC" << endl;
}
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string a;
cin >> a;
if (a == "ARC") {
cout << "ABC" << endl;
} else if (a == "ABC") {
cout << "ARC" << endl;
}
return 0;
} | [["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6]] | 1 | 61 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string s;
cin >> s;
cout << (s == "ABC" ? "AGC" : "ABC");
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string s;
cin >> s;
cout << (s == "ABC" ? "ARC" : "ABC");
return 0;
}
| [["-", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6]] | 1 | 67 |
function main(input) {
if (input === 'ABC') {
console.log('ARC')
} else {
console.log('ABC')
}
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')) | function main(input) {
if (input.match('ABC')) {
console.log('ARC')
} else {
console.log('ABC')
}
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')) | [["-", 8, 556, 0, 57, 15, 23, 0, 16, 17, 565], ["+", 0, 57, 15, 23, 0, 2, 63, 558, 0, 131], ["+", 0, 57, 15, 23, 0, 2, 63, 558, 559, 560], ["+", 0, 57, 15, 23, 0, 2, 3, 3, 0, 24], ["+", 0, 57, 15, 23, 0, 2, 3, 3, 0, 25]] | 2 | 56 |
#include <stdio.h>
int main(void) {
char s[5];
scanf("%s", s);
if (s[1] == "B")
puts("ARC");
else
puts("ABC");
return 0;
} | #include <stdio.h>
int main(void) {
char s[5];
scanf("%s", s);
if (s[1] == 'B')
puts("ARC");
else
puts("ABC");
return 0;
} | [["-", 0, 57, 15, 23, 0, 16, 12, 5, 0, 62], ["+", 0, 57, 15, 23, 0, 16, 12, 103, 0, 104]] | 0 | 53 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
if (s == "ABC") {
cout << "ARC" << endl;
}
if (s == "ARC") {
cout << "ABC" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "ABC") {
cout << "ARC" << endl;
}
if (s == "ARC") {
cout << "ABC" << endl;
}
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 | 54 |
#include <stdio.h>
#include <string.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define ifb(N, n) if (N & (1 << n))
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#define V [0x1000]
#define AV = malloc(0x8000)
#define VZ(v) memset(v, 0, 0x1000)
#define addv(a, b) a = (unsi... | #include <stdio.h>
#include <string.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define ifb(N, n) if (N & (1 << n))
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#define V [0x1000]
#define AV = malloc(0x8000)
#define VZ(v) memset(v, 0, 0x1000)
#define addv(a, b) a = (unsi... | [["-", 36, 36, 36, 36, 0, 30, 0, 134, 39, 40], ["-", 36, 36, 0, 30, 0, 134, 49, 84, 0, 48], ["-", 36, 36, 0, 30, 0, 134, 49, 84, 49, 78], ["-", 36, 36, 36, 36, 0, 30, 0, 134, 0, 35], ["-", 36, 36, 36, 36, 0, 30, 0, 134, 0, 157], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 0 | 129 |
#include <stdio.h>
#include <string.h>
int main(void) {
char S;
scanf("%s", &S);
if (strcmp(S, "ABC") == 0) {
printf("ARC\n");
} else if (strcmp(S, "ARC") == 0) {
printf("ABC\n");
}
return (0);
} | #include <stdio.h>
#include <string.h>
int main(void) {
char S[10];
scanf("%s", &S);
if (strcmp(S, "ABC") == 0) {
printf("ARC\n");
} else if (strcmp(S, "ARC") == 0) {
printf("ABC\n");
}
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 | 76 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ff(i, n) for (i = 0; i < n; i++)
#define pb push_back
ll bg = 998244353;
ll fac[300000];
ll power(ll x, ll y) {
if (y == 0)
return 1;
ll d = power(x, y / 2) % bg;
ll f = (d * d) % bg;
if (y % 2 == 0)
return f;
else
retu... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ff(i, n) for (i = 0; i < n; i++)
#define pb push_back
ll bg = 998244353;
ll fac[300000];
ll power(ll x, ll y) {
if (y == 0)
return 1;
ll d = power(x, y / 2) % bg;
ll f = (d * d) % bg;
if (y % 2 == 0)
return f;
else
retu... | [["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 1 | 261 |
#include <bits/stdc++.h>
using namespace std;
#define FAST_INP \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
int main() {
FAST_INP;
string s;
if (s == "ABC")
cout << "ARC\n";
else
cout << ... | #include <bits/stdc++.h>
using namespace std;
#define FAST_INP \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
int main() {
FAST_INP;
string s;
cin >> s;
if (s == "ABC")
cout << "ARC\n";
else
... | [["+", 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 | 47 |
puts gets == "ABC" ? "ARC" : "ABC" | puts gets.chomp == "ABC" ? "ARC" : "ABC" | [["+", 3, 4, 0, 754, 15, 738, 31, 652, 17, 131], ["+", 3, 4, 0, 754, 15, 738, 31, 652, 735, 22]] | 4 | 14 |
if readline == "ARC"
puts "ABC"
else
puts "ARC"
end | if readline.chomp == "ARC"
puts "ABC"
else
puts "ARC"
end | [["+", 0, 493, 0, 121, 15, 738, 31, 652, 17, 131], ["+", 0, 493, 0, 121, 15, 738, 31, 652, 735, 22]] | 4 | 16 |
if gets().to_s == "ARC"
puts "ABC"
else
puts "ARC"
end | if gets().chomp == "ARC"
puts "ABC"
else
puts "ARC"
end | [["-", 0, 493, 0, 121, 15, 738, 31, 652, 735, 22], ["+", 0, 493, 0, 121, 15, 738, 31, 652, 735, 22]] | 4 | 20 |
S = input().split()
if S == 'ARC':
print('ABC')
else:
print('ARC') | S = input()
if S == 'ARC':
print('ABC')
else:
print('ARC') | [["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 30 |
#include <bits/stdc++.h>
#define inf 0xffffff
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef unsigned long long ull;
const long double PI = acos(-1);
const int maxn = 10000005;
const int mod = 100000007;
ll qpow(ull a, ull b, int n) {
ll ans = 1, res = a % n;
while (b) {
if (b & ... | #include <bits/stdc++.h>
#define inf 0xffffff
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef unsigned long long ull;
const long double PI = acos(-1);
const int maxn = 10000005;
const int mod = 100000007;
ll qpow(ull a, ull b, int n) {
ll ans = 1, res = a % n;
while (b) {
if (b & ... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 78], ["-", 36, 36, 0, 30, 0, 43, 49, 80, 0, 70], ["-", 36, 36, 0, 30, 0, 43, 49, 80, 81, 13], ["-", 36, 36, 0, 30, 0, 43, 49, 80, 0, 73]] | 1 | 214 |
import sys
s = input()
if s == " ARC":
print("ABC")
else :
print("ARC")
| import sys
s = input()
if s == "ARC":
print("ABC")
else :
print("ARC")
| [["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6]] | 5 | 28 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String a = scan.nextLine();
String test = a == "ABC" ? "ARC" : "ABC";
System.out.println(test);
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String a = scan.nextLine();
String test = a.equals("ABC") ? "ARC" : "ABC";
System.out.println(test);
}
} | [["-", 0, 503, 49, 200, 51, 510, 15, 16, 17, 60], ["+", 0, 503, 49, 200, 51, 510, 15, 492, 0, 131], ["+", 0, 503, 49, 200, 51, 510, 15, 492, 141, 22], ["+", 49, 200, 51, 510, 15, 492, 3, 4, 0, 24], ["+", 49, 200, 51, 510, 15, 492, 3, 4, 0, 25]] | 3 | 70 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
if (s == "ABC")
cout << "ARC";
else
cout << "ABC";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "ABC")
cout << "ARC";
else
cout << "ABC";
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 | 39 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
if (S == "ABC") {
cout << "ARC" << endl;
}
if (S == "ARC") {
cout << "ABC" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S == "ABC") {
cout << "ARC" << endl;
}
if (S == "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 | 51 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S == "ARC")
cout << "ABC";
else if (S == "ABC")
cout << "ARS";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S == "ARC")
cout << "ABC";
else if (S == "ABC")
cout << "ARC";
return 0;
} | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]] | 1 | 51 |
#include <bits/stdc++.h>
#define ll long long int
#define sz 200010
#define fast \
ios_base ::sync_with_stdio(false); \
cin.tie(0); \
cout.ti... | #include <bits/stdc++.h>
#define ll long long int
#define sz 200010
#define fast \
ios_base ::sync_with_stdio(false); \
cin.tie(0); \
cout.ti... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 89 |
S = 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') | [["+", 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 | 32 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "ABC")
cout << "ARC";
else
cout << "ARC";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s == "ABC")
cout << "ARC";
else
cout << "ABC";
}
| [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 40 |
S == input()
if S[1] == 'R':
print('ABC')
else:
print('ARC') | S = input()
if S[1] == 'R':
print('ABC')
else:
print('ARC') | [["-", 36, 36, 0, 656, 0, 1, 0, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32]] | 5 | 29 |
<?php
const CONTEST_A = 'ABC';
const CONTEST_B = 'ARC';
$s = trim(fgets(STDIN));
if ($s == CONTEST_A){
echo CONTEST_B;
}
echo CONTEST_A; | <?php
const CONTEST_A = 'ABC';
const CONTEST_B = 'ARC';
$s = trim(fgets(STDIN));
if ($s == CONTEST_A) {
echo CONTEST_B;
} else {
echo CONTEST_A;
}
| [["+", 36, 36, 0, 493, 0, 57, 75, 76, 0, 95], ["+", 0, 493, 0, 57, 75, 76, 8, 9, 0, 45], ["+", 0, 493, 0, 57, 75, 76, 8, 9, 0, 46]] | 6 | 41 |
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep3(i, m, n) for (int(i) = m; (i) <= (n); (i)++)
#define rep3rev(i, m, n) for (int(i) = m; (i) >= (n); (i)--)
#define all(a) (a.begin()), (a.end())
#define rall(a) (a.rbegin()), (a.rend())
#define fi first
#defi... | #include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep3(i, m, n) for (int(i) = m; (i) <= (n); (i)++)
#define rep3rev(i, m, n) for (int(i) = m; (i) >= (n); (i)--)
#define all(a) (a.begin()), (a.end())
#define rall(a) (a.rbegin()), (a.rend())
#define fi first
#defi... | [["-", 0, 11, 12, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 11, 12, 16, 31, 16, 12, 103, 0, 125]] | 1 | 173 |
#include <stdio.h>
int main(void) {
char x;
scanf("%c", &x);
printf("%c", x);
scanf("%c", &x);
int y = 0, tmp = 0;
for (int i = 0; i < 6; i++) {
y++;
}
while (y) {
for (int i = 0; i < 11; i++) {
tmp++;
}
y--;
}
if ((int)x != tmp) {
printf("B");
} else {
int out = 0;
... | #include <stdio.h>
int main(void) {
char x;
scanf("%c", &x);
printf("%c", x);
scanf("%c", &x);
int y = 0, tmp = 0;
for (int i = 0; i < 6; i++) {
y++;
}
while (y) {
for (int i = 0; i < 11; i++) {
tmp++;
}
y--;
}
if ((int)x != tmp) {
printf("B");
} else {
int out = 0;
... | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 2, 3, 4, 0, 21]] | 0 | 211 |
s = input()
ans = "ABC" if s == "ARC" else s
print(ans) | s = input()
ans = "ABC" if s == "ARC" else "ARC"
print(ans)
| [["-", 0, 656, 0, 1, 0, 662, 12, 41, 0, 22], ["+", 0, 1, 0, 662, 12, 41, 0, 557, 0, 654], ["+", 0, 1, 0, 662, 12, 41, 0, 557, 0, 6], ["+", 0, 1, 0, 662, 12, 41, 0, 557, 0, 655]] | 5 | 22 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
string s;
cin >> s;
if (s == "ABC") {
cout << "ARC" << endl;
} else {
cout << "ARC" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
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 |
import sys
sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline
def solve():
s = list(input())
a = ('ABC')
if s == a:
print('ARC')
exit()
else:
print('ABC')
if __name__ == '__main__':
solve()
| import sys
sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline
def solve():
s = list(input())
a = list('ABC')
if s == a:
print('ARC')
exit()
else:
print('ABC')
if __name__ == '__main__':
solve()
| [["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 69 |
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
int i, l;
char str2[5];
for (i = 0; i < 3; i++) {
cin >> str2[i];
}
for (i = 0; i < l; i++) {
if (str2[i] == 'A' && str2[i + 1] == 'B' && str2[i + 2] == 'C') {
cout << "ARC";
return 0;
}
}
... |
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
int i;
char str2[5];
for (i = 0; i < 3; i++) {
cin >> str2[i];
}
for (i = 0; i < 3; i++) {
if (str2[i] == 'A' && str2[i + 1] == 'B' && str2[i + 2] == 'C') {
cout << "ARC";
return 0;
}
}
c... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 114 |
S = input()
if (S == 'ABC'):
print('ARC')
print('ABC') | S = input()
if(S == 'ABC'):
print('ARC')
else:
print('ABC')
| [["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102]] | 5 | 26 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string a;
cin >> a;
if (a[1] == 'B') {
a[1] == 'R';
} else {
a[1] = 'B';
}
cout << a << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a;
cin >> a;
if (a[1] == 'B') {
a[1] = 'R';
} else {
a[1] = 'B';
}
cout << a << endl;
return 0;
}
| [["-", 0, 57, 64, 9, 0, 1, 0, 16, 17, 60], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32]] | 1 | 62 |
contest= input()
if contest[1]=='B':
print("ARC")
elif contest[2]=='R':
print("ABC") | contest= input()
if contest[1]=='B':
print("ARC")
elif contest[1]=='R':
print("ABC") | [["-", 0, 57, 75, 665, 15, 666, 0, 206, 206, 612], ["+", 0, 57, 75, 665, 15, 666, 0, 206, 206, 612]] | 5 | 37 |
//#define _GLIBCXX_DEBUG
#include "bits/stdc++.h"
using namespace std;
//------------------------------- Type Names -------------------------------//
using i64 = int_fast64_t;
using seika = string;
//{akari : 1D, yukari : 2D, maki : 3D} vector
template <class kizuna> using akari = vector<kizuna>;
template <class yu... | //#define _GLIBCXX_DEBUG
#include "bits/stdc++.h"
using namespace std;
//------------------------------- Type Names -------------------------------//
using i64 = int_fast64_t;
using seika = string;
//{akari : 1D, yukari : 2D, maki : 3D} vector
template <class kizuna> using akari = vector<kizuna>;
template <class yu... | [["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]] | 1 | 222 |
s = input("S : ")
if s == "ABC":
print('ARC')
elif s == "ARC":
print('ABC') | s = input()
if s == "ABC":
print('ARC')
elif s == "ARC":
print('ABC') | [["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 655]] | 5 | 34 |
x = input()
def f(x):
if x == "ABC":
print("ARC")
elif x == "ARC":
print("ABC")
else:
print("ivalid input")
print(f(x)) | x = input()
def f(x):
if x == "ABC":
print("ARC")
elif x == "ARC":
print("ABC")
else:
print("invalid input")
f(x) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 52 |
a = raw_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, 656, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 31 |
#include <iostream>
#include <string>
int main() {
std::string str;
std::cin >> str;
if (str == "ABC")
std::cout << "ARC";
else
std::cout << "ARC";
} | #include <iostream>
#include <string>
int main() {
std::string str;
std::cin >> str;
if (str == "ABC")
std::cout << "ARC";
else
std::cout << "ABC";
} | [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 46 |
$s = trim(fgets(STDIN));
echo $s==="ABC" ? "ARC":"ABC"; | <?php
$s = trim(fgets(STDIN));
echo $s == "ABC" ? "ARC" : "ABC";
?> | [["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 605], ["-", 0, 493, 0, 608, 0, 41, 15, 16, 17, 565], ["+", 0, 493, 0, 608, 0, 41, 15, 16, 17, 60], ["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 611]] | 6 | 27 |
x = input()
if x == ABC:
print('ARC')
else:
print('ABC') | x = input()
if x == '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 | 24 |
#include <cstdlib>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
char S[4];
scanf("%s", S);
if (S == "ABC") {
printf("ARC");
} else {
printf("ABC");
}
return 0;
} | #include <cstdlib>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
char S[4];
scanf("%s", S);
if (S[1] == 'B') {
printf("ARC");
} else {
printf("ABC");
}
return 0;
} | [["+", 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, 5, 0, 62], ["-", 0, 57, 15, 339, 51, 16, 12, 5, 0, 6], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104], ["+", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 61 |
/*
* Author: heyuhhh
* Created Time: 2020/5/5 18:32:48
*/
#include <algorithm>
#include <assert.h>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
#define MP make_pair
#define fi first
#define se second
#d... | /*
* Author: heyuhhh
* Created Time: 2020/5/5 18:32:48
*/
#include <algorithm>
#include <assert.h>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
#define MP make_pair
#define fi first
#define se second
#d... | [["-", 0, 30, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 0, 30, 0, 43, 49, 50, 51, 5, 0, 6]] | 1 | 303 |
a = int(input())
if a == "ARC" :
ans = "ABC"
else:
ans = "ARC"
print(ans) | a = input()
if a == "ARC" :
ans = "ABC"
else:
ans = "ARC"
print(ans) | [["-", 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 | 31 |
N=input()
def contest(N):
if N=="ABC":
return "ARC"
else:
return "ABC"
contest(N)
| N=input()
def contest(N):
if N=="ABC":
return "ARC"
else:
return "ABC"
print(contest(N)) | [["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 32 |
package main
import (
"fmt"
)
func main() {
var s string
fmt.Scan(&s)
if s == "ABC" {
fmt.Println("AGC")
}else {
fmt.Println("ABC")
}
} | package main
import (
"fmt"
)
func main() {
var s string
fmt.Scan(&s)
if s == "ABC" {
fmt.Println("ARC")
}else {
fmt.Println("ABC")
}
} | [] | 7 | 59 |
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], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 29 |
S = str(input())
if S =="ABC":
print("ARC")
else:
print(S)
| S = str(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 | 27 |
s = input()
if s == 'ABC':
print('ABC')
if s == 'ARC':
print('ARC')
| s = input()
if s == 'ABC':
print('ARC')
if s == 'ARC':
print('ABC')
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 31 |
function main(input) {
const next = input === 'ABC' ? 'ARC' : 'ABC';
console.log(next);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | function main(input) {
const next = input.trim() === 'ABC' ? 'ARC' : 'ABC';
console.log(next);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8')); | [["+", 51, 510, 15, 16, 31, 2, 63, 558, 0, 131], ["+", 51, 510, 15, 16, 31, 2, 63, 558, 559, 560], ["+", 51, 510, 15, 16, 31, 2, 3, 3, 0, 24], ["+", 51, 510, 15, 16, 31, 2, 3, 3, 0, 25]] | 2 | 52 |
import sys
input = sys.stdin.readline
def main():
S = input()
if S == 'ARC':
print("ABC")
else:
print("ARC")
if __name__ == '__main__':
main() | import sys
input = sys.stdin.readline
def main():
S = input().rstrip()
if S == 'ARC':
print("ABC")
else:
print("ARC")
if __name__ == '__main__':
main() | [["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 50 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s.at(2) == 'B') {
cout << "ARC" << endl;
} else {
cout << "ABC" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s.at(1) == 'B') {
cout << "ARC" << endl;
} else {
cout << "ABC" << endl;
}
return 0;
} | [["-", 15, 339, 51, 16, 31, 2, 3, 4, 0, 13], ["+", 15, 339, 51, 16, 31, 2, 3, 4, 0, 13]] | 1 | 56 |
S = input()
assert S == ("ABC" or "ARC"), "Sは、ABCまたはARCです"
if S == "ABC":
print("ARC")
else:
print("ABC") | S = input()
assert S == "ABC" or "ARC", "Sは、ABCまたはARCです"
if S == "ABC":
print("ARC")
else:
print("ABC")
| [["-", 0, 656, 0, 710, 0, 666, 0, 23, 0, 24], ["-", 0, 656, 0, 710, 0, 666, 0, 23, 0, 25]] | 5 | 42 |
S = input()
if(S == ABC):
print("ARC")
elif(S == ARC):
print("ABC")
| S = input()
if(S == "ABC"):
print("ARC")
elif(S == "ARC"):
print("ABC")
| [["+", 0, 57, 15, 23, 0, 666, 0, 557, 0, 654], ["+", 0, 57, 15, 23, 0, 666, 0, 557, 0, 655], ["+", 75, 665, 15, 23, 0, 666, 0, 557, 0, 654], ["+", 75, 665, 15, 23, 0, 666, 0, 557, 0, 655]] | 5 | 31 |
#include "bits/stdc++.h"
using namespace std;
const long long inf = 1e18;
#define ll long long
#define fr(i, a, n) for (int i = a; i < n; i++)
#define rfr(i, n, a) for (int i = n; i >= a; i--)
#define mp make_pair
#define pb push_back
#define pii pair<int, int>
#define pll pair<ll, ll>
#define endl "\n"
typedef vecto... | #include "bits/stdc++.h"
using namespace std;
const long long inf = 1e18;
#define ll long long
#define fr(i, a, n) for (int i = a; i < n; i++)
#define rfr(i, n, a) for (int i = n; i >= a; i--)
#define mp make_pair
#define pb push_back
#define pii pair<int, int>
#define pll pair<ll, ll>
#define endl "\n"
typedef vecto... | [["-", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]] | 1 | 153 |
a = input()[1]
print(f'A{"B" if a=="B" else "R"}C') | a = input()[1]
print(f'A{"R" if a=="B" else "B"}C')
| [["-", 0, 557, 0, 284, 205, 41, 0, 557, 0, 6], ["+", 0, 557, 0, 284, 205, 41, 0, 557, 0, 6]] | 5 | 30 |
#include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define int long long
#define big 998244353
#define ff first
#define se second
#define pb push_back
#define pii pair<int, int>
#define fast \
ios_base::sync_with_stdio(0); ... | #include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define int long long
#define big 998244353
#define ff first
#define se second
#define pb push_back
#define pii pair<int, int>
#define fast \
ios_base::sync_with_stdio(0); ... | [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 255 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int mod = 1000000007;
const ll INF = 1001001001;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int mod = 1000000007;
const ll INF = 1001001001;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 157 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef float fl;
typedef long long ll;
string S;
int main() {
cin >> S;
cout << ((S == "ARC") ? "AGC" : "ARC") << endl;
return 0;
}
| #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef float fl;
typedef long long ll;
string S;
int main() {
cin >> S;
cout << ((S == "ARC") ? "ABC" : "ARC") << endl;
return 0;
}
| [["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6]] | 1 | 61 |
#include <stdio.h>
int main() {
char a[3];
scanf("%s", a);
if (a[2] == 'B') {
printf("ARC");
} else {
printf("ABC");
}
return 0;
} | #include <stdio.h>
int main() {
char a[3];
scanf("%s", a);
if (a[1] == 'B') {
printf("ARC");
} else {
printf("ABC");
}
return 0;
} | [["-", 0, 57, 15, 23, 0, 16, 31, 69, 71, 13], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 71, 13]] | 0 | 56 |
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main(void) {
string S;
cin >> S;
if (S == "ABC")
S = "ABC";
else
S = "ARC";
cout << S << endl;
return 0;
} | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main(void) {
string S;
cin >> S;
if (S == "ABC")
S = "ARC";
else
S = "ABC";
cout << S << endl;
return 0;
} | [["-", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 11, 12, 5, 0, 6]] | 1 | 54 |
#include <stdio.h>
int main() {
char s[100];
scanf("%s", s);
if (s[1] = 'B')
printf("ARC");
else
printf("ABC");
} | #include <stdio.h>
int main() {
char s[100];
scanf("%s", s);
if (s[1] == 'B')
printf("ARC");
else
printf("ABC");
} | [["-", 8, 9, 0, 57, 15, 23, 0, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60]] | 0 | 49 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
getline(cin, s);
if (s == "ABC") {
cout << "ARC"
<< "\n";
} else {
cout << s << "\n";
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
getline(cin, s);
if (s == "ABC") {
cout << "ARC"
<< "\n";
} else {
cout << "ABC"
<< "\n";
}
return 0;
} | [["-", 0, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 56 |
#include <bits/stdc++.h>
using namespace std;
using i64 = int64_t;
#define rep(i, x, y) \
for (i64 i = i64(x), i##_max_for_repmacro = i64(y); \
i < i##_max_for_repmacro; ++i)
#define debug(x) #x << "=" << (x)
#ifdef DEBUG
#de... | #include <bits/stdc++.h>
using namespace std;
using i64 = int64_t;
#define rep(i, x, y) \
for (i64 i = i64(x), i##_max_for_repmacro = i64(y); \
i < i##_max_for_repmacro; ++i)
#define debug(x) #x << "=" << (x)
#ifdef DEBUG
#de... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 888 |
#include "bits/stdc++.h"
#include <cstring>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
int main() {
string s;
cin >> s;
if (s == "ABC")
cout << "ARC";
else
cout << "ARC";
return 0;
} | #include "bits/stdc++.h"
#include <cstring>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
int main() {
string s;
cin >> s;
if (s == "ABC")
cout << "ARC";
else
cout << "ABC";
return 0;
} | [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 60 |
#include <stdio.h>
int main(void) {
char str[8];
scanf("%s", str);
if (str == 'ABC') {
printf("ARC\n");
} else {
printf("ABC\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
char str[8];
scanf("%s", str);
if (str[1] == 'B') {
printf("ARC\n");
} else {
printf("ABC\n");
}
return 0;
}
| [["+", 0, 57, 15, 23, 0, 16, 31, 69, 0, 70], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 71, 13], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 0, 73], ["-", 0, 57, 15, 23, 0, 16, 12, 103, 0, 125], ["-", 15, 23, 0, 16, 12, 103, 0, 42, 0, 22], ["+", 0, 57, 15, 23, 0, 16, 12, 103, 0, 125]] | 0 | 57 |
$lastweek = trim(fgets(STDIN));
if($lastweek=="ARC"){
echo "ABC";
}else{
echo "ARC";
} | <?php
$lastweek = trim(fgets(STDIN));
if($lastweek=="ARC"){
echo "ABC";
}else{
echo "ARC";
} | [["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 605]] | 6 | 35 |
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <string.h>
#include <vector>
using namespace std;
#define rep(i, a, b) for (int i = a; i < b; i++)
#define repn(i, a, b) for (int i = a; i >= b; i--)
#define vi vector<int>
#d... | #include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <string.h>
#include <vector>
using namespace std;
#define rep(i, a, b) for (int i = a; i < b; i++)
#define repn(i, a, b) for (int i = a; i >= b; i--)
#define vi vector<int>
#d... | [["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13]] | 1 | 262 |
#include <iostream>
#include <stdio.h>
//#include <bits/stdc++.h>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <float.h>
#include <iomanip>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#i... | #include <iostream>
#include <stdio.h>
//#include <bits/stdc++.h>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <float.h>
#include <iomanip>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#i... | [["-", 0, 1, 0, 16, 12, 23, 0, 42, 0, 32], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 17, 60]] | 1 | 151 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
String s = scn.nextLine();
if (s.equals("abc")) {
System.out.println("arc");
} else {
System.out.println("abc");
}
}
}
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
String s = scn.nextLine();
if (s.equals("ABC")) {
System.out.println("ARC");
} else {
System.out.println("ABC");
}
}
}
| [["-", 15, 15, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 15, 15, 0, 492, 3, 4, 0, 5, 0, 491], ["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 82 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define endl '\n';
#define FASTER \
ios_base::sync_with_stdio(false); \
cin.tie(NULL... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define endl '\n';
#define FASTER \
ios_base::sync_with_stdio(false); \
cin.tie(NULL... | [["+", 0, 1, 0, 16, 31, 16, 12, 69, 28, 22], ["+", 0, 16, 31, 16, 12, 69, 341, 342, 0, 70], ["+", 0, 16, 31, 16, 12, 69, 341, 342, 0, 73]] | 1 | 221 |
const input = require("fs").readFileSync("/dev/stdin", "utf8");
// const input = 'ABC';
function Main(input) {
const nextContest = {ARC : 'ABC', ABC : 'ARC'}
console.log(nextContest[input])
}
// Don't edit this line!
Main(input); | const input = require("fs").readFileSync("/dev/stdin", "utf8");
// const input = 'ABC';
function Main(input) {
const nextContest = {ARC : 'ABC', ABC : 'ARC'}
console.log(nextContest[input.trim()])
}
// Don't edit this line!
Main(input); | [["+", 3, 3, 0, 69, 71, 2, 63, 558, 0, 131], ["+", 3, 3, 0, 69, 71, 2, 63, 558, 559, 560], ["+", 3, 3, 0, 69, 71, 2, 3, 3, 0, 24], ["+", 3, 3, 0, 69, 71, 2, 3, 3, 0, 25]] | 2 | 60 |
puts gets=="ABC" ? "ARC" : "ABC" | puts gets=="ABC\n" ? "ARC" : "ABC" | [["+", 3, 4, 0, 754, 15, 738, 12, 557, 0, 44]] | 4 | 14 |
#include <iostream>
#include <string>
using namespace std;
int main() {
string a;
if (a == "ABC") {
cout << "ARC";
} else {
cout << "ABC";
}
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
string a;
cin >> a;
if (a == "ABC") {
cout << "ARC";
} else {
cout << "ABC";
}
}
| [["+", 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 | 42 |
#include <iostream>
#include <string>
using namespace std;
string s;
int main(void) {
if (s == "ABC")
cout << "ARC" << endl;
else
cout << "ABC" << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
string s;
int main(void) {
cin >> s;
if (s == "ABC")
cout << "ARC" << endl;
else
cout << "ABC" << endl;
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 | 46 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
/* code start */
string str;
cin >> str;
if (str == "ABC") {
cout << "ARC" << endl;
} else {
cout << "ARC" << endl;
}
/* code end */
return 0;
}
/* === 2 dimention arr sort ===
struct data{
in... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
/* code start */
string str;
cin >> str;
if (str == "ABC") {
cout << "ARC" << endl;
} else {
cout << "ABC" << endl;
}
/* code end */
return 0;
}
/* === 2 dimention arr sort ===
struct data{
in... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 63 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.