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
X = input() if X.isupper == True: print('A') else: print('a')
X = input() if X.isupper() == True: print('A') else: print('a')
[["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]]
5
26
c=input() if c.isupper: print('A') else: print('a')
c=input() if c.isupper(): print('A') else: print('a')
[["+", 0, 656, 0, 57, 15, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 57, 15, 652, 3, 4, 0, 25]]
5
24
#include <stdio.h> signed main() { char a; scanf("%c", a); if (a >= 'a') { printf("a"); } else { printf("A"); } return (0); }
#include <stdio.h> signed main() { char a; scanf("%c", &a); if (a >= 'a') { printf("a"); } else { printf("A"); } return (0); }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
52
c = input() if c>=A and c<=Z: print('A') else: print('a')
c = input() if c>='A' and c<='Z': print('A') else: print('a')
[["+", 0, 57, 15, 679, 31, 666, 0, 557, 0, 654], ["+", 0, 57, 15, 679, 31, 666, 0, 557, 0, 655], ["+", 0, 57, 15, 679, 12, 666, 0, 557, 0, 654], ["+", 0, 57, 15, 679, 12, 666, 0, 557, 0, 655]]
5
28
s = input() if s.isupper() == True: print('a') else: print('A')
s = input() if s.isupper() == True: print('A') else: print('a')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
28
#include <bits/stdc++.h> #define ll long long #define sc(a) scanf("%d", &a) #define sc2(a, b) scanf("%lld%lld", &a, &b) #define pf(a) printf("%d\n", a) #define pf2(a) printf("%lld\n", a) using namespace std; int main() { char c; cin >> c; if (isupper(c)) { "A"; } else cout << "a"; }
#include <bits/stdc++.h> #define ll long long #define sc(a) scanf("%d", &a) #define sc2(a, b) scanf("%lld%lld", &a, &b) #define pf(a) printf("%d\n", a) #define pf2(a) printf("%lld\n", a) using namespace std; int main() { char c; cin >> c; if (isupper(c)) { cout << "A"; } else cout << "a"; }
[["+", 0, 57, 64, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 17, 151]]
1
68
a=str(input()) if "a".isupper()==True: print("A") else: print("a")
a=str(input()) if a.isupper()==True: print("A") else: print("a")
[["-", 15, 666, 0, 652, 63, 319, 500, 557, 0, 654], ["-", 15, 666, 0, 652, 63, 319, 500, 557, 0, 655]]
5
33
#include <iostream> using namespace std; int main() { char c; if (c <= 'z' && c >= 'a') { cout << 'a' << endl; } else if (c >= 'A' && c <= 'Z') { cout << 'A' << endl; } return 0; }
#include <iostream> using namespace std; int main() { char c; cin >> c; if (c <= 'z' && c >= 'a') { cout << 'a' << endl; } else if (c >= 'A' && c <= 'Z') { cout << 'A' << 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
67
x=input() if x.isupper() is True: print(A) else: print(a)
x=input() if x.isupper() is True: print("A") else: print("a")
[["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]]
5
24
s = gets.chomp if (s =~ /^[a-z]+$/) == 0 p 'a' else p 'A' end
s = gets.chomp if (s =~ /^[a-z]+$/) == 0 print 'a' else print 'A' end
[["-", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["+", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["-", 0, 493, 0, 121, 75, 95, 0, 652, 735, 22], ["+", 0, 493, 0, 121, 75, 95, 0, 652, 735, 22]]
4
25
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { char s; cin >> s; if (s - 0x41 >= 0 && s - 0x41 <= 24) { cout << "A" << endl; } else { cout << "a" << endl; } }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { char s; cin >> s; if (s - 0x41 >= 0 && s - 0x41 <= 25) { cout << "A" << endl; } else { cout << "a" << endl; } }
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
62
#abc171a c=input() if c.islower(): print('A') else: print('a')
#abc171a c=input() if c.islower(): print('a') else: print('A')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
27
a = gets.chomp if a.downcase == a then puts 'A' else puts 'a' end
a = gets.chomp if a.downcase == a then puts 'a' else puts 'A' end
[["-", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6]]
4
22
#include <bits/stdc++.h> using namespace std; #define f first #define s second #define pb push_back #define mp make_pair #define all(v) v.begin(), v.end() #define sz(v) (int)v.size() #define MOO(i, a, b) for (int i = a; i < b; i++) #define M00(i, a) for (int i = 0; i < a; i++) #define MOOd(i, a, b) for (int i = (b)-...
#include <bits/stdc++.h> using namespace std; #define f first #define s second #define pb push_back #define mp make_pair #define all(v) v.begin(), v.end() #define sz(v) (int)v.size() #define MOO(i, a, b) for (int i = a; i < b; i++) #define M00(i, a) for (int i = 0; i < a; i++) #define MOOd(i, a, b) for (int i = (b)-...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 15, 339, 51, 16, 12, 16, 31, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 31, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]]
1
198
// author: Harsh :) #include <bits/stdc++.h> using ll = long long; using ld = long double; #define F first #define S second const ll mod = 1e9 + 7; const ll INF = 922337203685477; #define pb push_back #define deb(x) cout << '>' << #x << ':' << x << endl; #define fastio ...
// author: Harsh :) #include <bits/stdc++.h> using ll = long long; using ld = long double; #define F first #define S second const ll mod = 1e9 + 7; const ll INF = 922337203685477; #define pb push_back #define deb(x) cout << '>' << #x << ':' << x << endl; #define fastio ...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
93
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String str[] = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v",...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String str[] = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v",...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
3
218
alfa = input() if str.isupper('alfa'): print('A') else: print('a')
alfa = input() if alfa.isupper(): print('A') else: print('a')
[["-", 0, 656, 0, 57, 15, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 57, 15, 652, 63, 319, 500, 22], ["-", 0, 57, 15, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 57, 15, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 57, 15, 652, 3, 4, 0, 557, 0, 655]]
5
29
#include <bits/stdc++.h> typedef long long int ll; typedef unsigned long long ull; typedef long double ld; #define F first #define S second #define pb push_back #define mp make_pair #define pll pair<ll, ll> #define pii pair<int, int> #define len(s) s.length() #define all(v) v.begin(), v.end() const ll INF = INT_MAX; co...
#include <bits/stdc++.h> typedef long long int ll; typedef unsigned long long ull; typedef long double ld; #define F first #define S second #define pb push_back #define mp make_pair #define pll pair<ll, ll> #define pii pair<int, int> #define len(s) s.length() #define all(v) v.begin(), v.end() const ll INF = INT_MAX; co...
[["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
170
#include <iostream> using namespace std; int main(void) { char a; cin >> a; if (a - 'A' <= 26) { cout << 'A' << endl; } else { cout << 'B' << endl; } return 0; }
#include <iostream> using namespace std; int main(void) { char a; cin >> a; if (a - 'A' <= 26) { cout << 'A' << endl; } else { cout << 'a' << endl; } return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
54
x = gets.chomp if ['a'..'z'].include?(x) puts 'a' else puts 'A' end
x = gets.chomp if ('a'..'z').to_a.include?(x) puts 'a' else puts 'A' end
[["-", 0, 493, 0, 121, 15, 652, 486, 516, 0, 70], ["+", 0, 121, 15, 652, 486, 652, 486, 739, 0, 24], ["-", 0, 493, 0, 121, 15, 652, 486, 516, 0, 73], ["+", 0, 121, 15, 652, 486, 652, 486, 739, 0, 25], ["+", 0, 493, 0, 121, 15, 652, 486, 652, 17, 131], ["+", 0, 493, 0, 121, 15, 652, 486, 652, 735, 22]]
4
30
#include <bits/stdc++.h> using namespace std; int main() { char ch; cin >> ch; if (ch == isupper(ch)) { cout << "A" << '\n'; } else cout << "a" << '\n'; }
#include <bits/stdc++.h> using namespace std; int main() { char ch; cin >> ch; if (ch < 96) { cout << "A" << '\n'; } else cout << "a" << '\n'; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 0, 57, 15, 339, 51, 16, 12, 2, 63, 22], ["-", 15, 339, 51, 16, 12, 2, 3, 4, 0, 24], ["-", 15, 339, 51, 16, 12, 2, 3, 4, 0, 22], ["-", 15, 339, 51, 16, 12, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
51
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if (a >= 60 && a < 97) { cout << 'a' << "\n"; } else cout << 'A' << "\n"; }
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if (a >= 60 && a < 97) { cout << 'A' << "\n"; } else cout << 'a' << "\n"; }
[["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
52
/* @uthor: Kashish Gilhotra user: CodeChef, CodeForces, HackerEarth, HackerRank, SPOJ: kashish001 */ #include <bits/stdc++.h> //#include<boost/multiprecision/cpp_int.hpp> using namespace std; // using namespace boost::multiprecision; #define int long long int typedef vector<int> vi; typedef pair<int, ...
/* @uthor: Kashish Gilhotra user: CodeChef, CodeForces, HackerEarth, HackerRank, SPOJ: kashish001 */ #include <bits/stdc++.h> //#include<boost/multiprecision/cpp_int.hpp> using namespace std; // using namespace boost::multiprecision; #define int long long int typedef vector<int> vi; typedef pair<int, ...
[["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
410
print('A' if(input().islower()) else 'a')
print('a' if (input().islower()) else 'A')
[["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]]
5
20
#include <bits/stdc++.h> using namespace std; #define fastIO \ ios_base::sync_with_stdio(0); \ cin.tie(0); #define int long long int #define endl '\n' void solveTestCase() { char ch; cin >> ch; i...
#include <bits/stdc++.h> using namespace std; #define fastIO \ ios_base::sync_with_stdio(0); \ cin.tie(0); #define int long long int #define endl '\n' void solveTestCase() { char ch; cin >> ch; i...
[["-", 0, 57, 64, 1, 0, 16, 12, 103, 0, 104], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 62], ["-", 64, 1, 0, 16, 12, 103, 0, 42, 0, 42], ["-", 64, 1, 0, 16, 12, 103, 0, 42, 0, 22], ["-", 75, 76, 0, 1, 0, 16, 12, 103, 0, 104], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 62], ["-", 0, 1, 0, 16, 12, 103, 0, 42, 0, 42], ["-", 0, 1, 0,...
1
74
#include <bits/stdc++.h> using namespace std; int main() { char a; if (isupper(a)) cout << 'A'; else cout << 'a'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if (isupper(a)) cout << 'A'; else cout << 'a'; 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
38
package main import ( "fmt" "unicode" ) func main() { var a string fmt.Scan(&a) if unicode.IsUpper(rune(a[0])) { println("A") } else { println("a") } }
package main import ( "fmt" "unicode" ) func main() { var a string fmt.Scan(&a) if unicode.IsUpper(rune(a[0])) { fmt.Println("A") } else { fmt.Println("a") } }
[["-", 0, 57, 64, 196, 0, 1, 0, 2, 63, 22], ["+", 64, 196, 0, 1, 0, 2, 63, 438, 439, 22], ["+", 64, 196, 0, 1, 0, 2, 63, 438, 0, 131], ["+", 64, 196, 0, 1, 0, 2, 63, 438, 119, 120], ["-", 0, 57, 75, 196, 0, 1, 0, 2, 63, 22], ["+", 75, 196, 0, 1, 0, 2, 63, 438, 439, 22], ["+", 75, 196, 0, 1, 0, 2, 63, 438, 0, 131], ["+"...
7
66
#include <bits/stdc++.h> using namespace std; #define PI acos(-1) #define int long long int #define MOD (ll)(1e9 + 7) #define in_arr(ar) \ for (int i = 0; i < sizeof(ar) / sizeof(ar[0]); i++) \ cin >> ar[i]; #define val(x) cout <<...
#include <bits/stdc++.h> using namespace std; #define PI acos(-1) #define int long long int #define MOD (ll)(1e9 + 7) #define in_arr(ar) \ for (int i = 0; i < sizeof(ar) / sizeof(ar[0]); i++) \ cin >> ar[i]; #define val(x) cout <<...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]]
1
120
#define _DEBUG #ifdef _DEBUG #define _GLIBCXX_DEBUG \ -Wall - Wextra - Wshadow - D_GLIBCXX_ASSERTIONS - DDEBUG - ggdb3 - fmax - \ errors = 2 #endif #pragma warn + xxx #include <bits/stdc++.h> using namespace std; #define F first #define S second #defin...
#define _DEBUG #ifdef _DEBUG #define _GLIBCXX_DEBUG \ -Wall - Wextra - Wshadow - D_GLIBCXX_ASSERTIONS - DDEBUG - ggdb3 - fmax - \ errors = 2 #endif #pragma warn + xxx #include <bits/stdc++.h> using namespace std; #define F first #define S second #defin...
[["-", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22]]
1
510
#include <algorithm> #include <iostream> #include <math.h> #include <vector> using namespace std; int main() { char input; cin >> input; if (input < 'Z' && input > 'A') { cout << "A"; } else { cout << 'a'; } }
#include <algorithm> #include <iostream> #include <math.h> #include <vector> using namespace std; int main() { char input; cin >> input; if (input <= 'Z' && input >= 'A') { cout << "A"; } else { cout << "a"; } }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20], ["-", 0, 9, 0, 1, 0, 16, 12, 103, 0, 104], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 62]]
1
56
a = input() lettre = "abcdefghijklmnopqrstuvwxyz" if a in "abcdefghijklmnopqrstuvwxyz": print(a) elif a in lettre.upper(): print("A")
a = input() lettres = "abcdefghijklmnopqrstuvwxyz" if a in "abcdefghijklmnopqrstuvwxyz": print("a") elif a in lettres.upper(): print("A")
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655], ["-", 75, 665, 15, 666, 0, 652, 63, 319, 500, 22], ["+", 75, 665, 15, 666, 0, 652, 63, 319, 500, 22]]
5
36
#include <bits/stdc++.h> using namespace std; int main() { char sa; cin >> sa; if (sa >= 'A' && sa <= 'B') { cout << "A" << endl; } else if (sa >= 'a' && sa <= 'b') { cout << "a" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { char sa; cin >> sa; if (sa >= 'A' && sa <= 'Z') { cout << "A" << endl; } else if (sa >= 'a' && sa <= 'z') { cout << "a" << endl; } }
[["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
68
#include <stdio.h> int main() { char al; scanf("%c", al); if (al >= 'A' && 'Z' >= al) printf("A"); else printf("a"); return 0; }
#include <stdio.h> int main() { char al; scanf("%c", &al); if (al >= 'A' && 'Z' >= al) printf("A"); else printf("a"); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
52
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class Main { private static Scanner sc; public static void main(String[] args) { Main instance = new Main(); sc = instance.n...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class Main { private static Scanner sc; public static void main(String[] args) { Main instance = new Main(); sc = instance.n...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
393
#include <iostream> #include <stdio.h> #include <string.h> #include <vector> using namespace std; int main() { string a; a = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; char x; cin >> x; int k = 0; for (int i = 0; i <= 52; i++) { if (x == a[i]) { k = i; } } if (k <= 26) ...
#include <iostream> #include <stdio.h> #include <string.h> #include <vector> using namespace std; int main() { string a; a = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; char x; cin >> x; int k = 0; for (int i = 0; i <= 52; i++) { if (x == a[i]) { k = i; } } if (k <= 25) ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
96
#include <iostream> using namespace std; int main() { char a; cin >> a; if (a >= 'a' and a <= 'z') cout << 'a' << endl; else if (a >= 'A' and a <= 'B') cout << 'A' << endl; }
#include <iostream> using namespace std; int main() { char a; cin >> a; if (a >= 'a' and a <= 'z') cout << 'a' << endl; else if (a >= 'A' and a <= 'Z') cout << 'A' << endl; }
[["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
64
#include <bits/stdc++.h> using namespace std; int main() { char ch; cin >> ch; if (ch - 'A' >= 0) cout << 'A' << endl; else cout << 'a' << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char ch; cin >> ch; if (ch - 'a' >= 0) cout << 'a' << endl; else cout << 'A' << endl; return 0; }
[["-", 15, 339, 51, 16, 31, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 31, 16, 12, 103, 0, 125], ["-", 64, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 64, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
49
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #define MODULE #define RAND(min, max) (rand() % (max - min + 1) + min) #define LOGI(log) printf("\n%d\n", log); #define LOGS(log) printf("\n%s\n", log); #define DEBUG() \ { ...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #define MODULE #define RAND(min, max) (rand() % (max - min + 1) + min) #define LOGI(log) printf("\n%d\n", log); #define LOGS(log) printf("\n%s\n", log); #define DEBUG() \ { ...
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 19]]
0
106
#include <bits/stdc++.h> using namespace std; int main() { char alpha, ans; cin >> alpha; if ('A' < alpha && alpha < 'Z') { ans = 'A'; } else if ('a' < alpha && alpha < 'z') { ans = 'a'; } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { char alpha, ans; cin >> alpha; if ('A' <= alpha && alpha <= 'Z') { ans = 'A'; } else if ('a' <= alpha && alpha <= 'z') { ans = 'a'; } cout << ans << endl; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]]
1
72
a = input() if(a == a.upper): print("A") else: print("a")
a = input() if(a == a.upper()): print("A") else: print("a")
[["+", 15, 23, 0, 666, 0, 652, 3, 4, 0, 24], ["+", 15, 23, 0, 666, 0, 652, 3, 4, 0, 25]]
5
28
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ordered_set \ tree<int, null_type, less<int>, rb_tree_tag, \ tree_order_statistic...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ordered_set \ tree<int, null_type, less<int>, rb_tree_tag, \ tree_order_statistic...
[["-", 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
1,304
#include <iostream> using namespace std; int main() { char s; cin >> s; if ('A' < s && s < 'Z') { cout << "A" << endl; } else { cout << "a" << endl; } return 0; }
#include <iostream> using namespace std; int main() { char s; cin >> s; if ('A' <= s && s <= 'Z') { cout << "A" << endl; } else { cout << "a" << endl; } return 0; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]]
1
57
#include <iostream> using namespace std; int main() { char ch; cin >> ch; cout << (ch < 'Z' ? 'A' : 'a') << endl; }
#include <iostream> using namespace std; int main() { char ch; cin >> ch; cout << (ch <= 'Z' ? 'A' : 'a') << endl; }
[["-", 31, 16, 12, 23, 0, 41, 15, 16, 17, 18], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 19]]
1
39
int main() { putchar(getchar() & 97); }
int main() { putchar(getchar() & 97 | 1); }
[["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 139], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
0
15
α = input() if α.isupper() == True : print("A") if α.islower() == True : print("B")
α = input() if α.isupper() == True : print("A") if α.islower() == True : print("a")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
35
a =input() if(a.islower): print("a") else: print("A")
a =input() if(a.islower()): print("a") else: print("A")
[["+", 0, 57, 15, 23, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 23, 0, 652, 3, 4, 0, 25]]
5
26
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; #define sz(s) s.size() #define ll long long int #define ull unsigned ll #define ld long double #define print(v) ...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; #define sz(s) s.size() #define ll long long int #define ull unsigned ll #define ld long double #define print(v) ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 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, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
513
x = str(input()) if(x.islower == True): print('a') else: print('A')
x = str(input()) if(x.islower()): print('a') else: print('A')
[["-", 0, 656, 0, 57, 15, 23, 0, 666, 667, 60], ["-", 0, 656, 0, 57, 15, 23, 0, 666, 0, 146], ["+", 0, 57, 15, 23, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 23, 0, 652, 3, 4, 0, 25]]
5
31
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int n; cin >> n; if (65 <= n && n <= 91) { cout << "A"; } else { cout << "a"; } return 0; }
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { char n; cin >> n; if ('A' <= n && n <= 'Z') { cout << "A"; } else { cout << "a"; } return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 13], ["+", 15, 339, 51, 16, 31, 16, 31, 103, 0, 104], ["+", 15, 339, 51, 16, 31, 16, 31, 103, 0, 125], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, ...
1
51
#include <algorithm> #include <bits/stdc++.h> #include <iostream> using namespace std; int main() { char n; cin >> n; for (int i = 65; i <= 90; i++) { if (char(i) == 'n') { cout << "A"; return 0; } } cout << "a"; return 0; }
#include <algorithm> #include <bits/stdc++.h> #include <iostream> using namespace std; int main() { char n; cin >> n; for (int i = 65; i <= 90; i++) { if (char(i) == n) { cout << "A"; return 0; } } cout << "a"; return 0; }
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104]]
1
70
#include <iostream> using namespace std; /* run this program using the console pauser or add your own getch, * system("pause") or input loop */ int main() { char a; cin >> a; if (a >= 'z' && a <= 'a') cout << 'a'; else cout << 'A'; return 0; }
#include <iostream> using namespace std; /* run this program using the console pauser or add your own getch, * system("pause") or input loop */ int main() { char a; cin >> a; if (a <= 'z' && a >= 'a') cout << 'a'; else cout << 'A'; return 0; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20]]
1
50
x = str(input()) if x.isupper() == True: print(A) else: print(a)
x = str(input()) if x.isupper() == True: print("A") else: print("a")
[["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]]
5
27
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (isupper(x)) { cout << "A" << endl; } else { cout << "a" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { char x; cin >> x; if (isupper(x)) { cout << "A" << endl; } else { cout << "a" << endl; } }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
47
c=input() if str.islower(c): print('B') else: print('A')
c=input() if str.islower(c): print('a') else: print('A')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
27
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c <= 'z') cout << "a" << endl; else cout << "A" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c <= 'Z') cout << "A" << endl; else cout << "a" << endl; return 0; }
[["-", 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
47
#include <iostream> using namespace std; int main() { char x; cin >> x; if (x >= 65 && x <= 90) { cout << "A"; } else { cout << "B"; } }
#include <iostream> using namespace std; int main() { char x; cin >> x; if (x >= 65 && x <= 90) { cout << "A"; } else { cout << "a"; } }
[["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
46
#include <bits/stdc++.h> #include <math.h> #define ALL(a) a.begin(), a.end() using namespace std; int main() { char s; cin >> s; if ((s >= 'a') && (s <= 'z')) { cout << "A"; ; } else if ((s >= 'A') && (s <= 'Z')) { cout << "A"; } }
#include <bits/stdc++.h> #include <math.h> #define ALL(a) a.begin(), a.end() using namespace std; int main() { char s; cin >> s; if ((s >= 'a') && (s <= 'z')) { cout << "a"; ; } else if ((s >= 'A') && (s <= 'Z')) { cout << "A"; } }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
81
#include <bits/stdc++.h> using namespace std; int main() { char s[2]; cin >> s; for (int i = 0; i < 2; i++) { if (s[i] >= 'A' && s[i] <= 'B') { cout << "A" << endl; return 0; } else { cout << "a" << endl; return 0; } } }
#include <bits/stdc++.h> using namespace std; int main() { char s[2]; cin >> s; for (int i = 0; i < 2; i++) { if (s[i] >= 'A' && s[i] <= 'Z') { cout << "A" << endl; return 0; } else { cout << "a" << endl; return 0; } } }
[["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
85
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { char c; cin >> c; if (c >= 'a' && c <= 'z') cout << 'A'; else if (c >= 'A' && c <= 'Z') cout << 'a'; }
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { char c; cin >> c; if (c >= 'a' && c <= 'z') cout << 'a'; else if (c >= 'A' && c <= 'Z') cout << 'A'; }
[["-", 0, 57, 64, 1, 0, 16, 12, 103, 0, 125], ["+", 0, 57, 64, 1, 0, 16, 12, 103, 0, 125]]
1
62
#include <stdio.h> int main() { char a[1] = {}; scanf("%s", a); if ('A' <= a[0] && a[0] <= 'Z') printf("A"); else printf("B"); return 0; }
#include <stdio.h> int main() { char a[1] = {}; scanf("%s", a); if ('A' <= a[0] && a[0] <= 'Z') printf("A"); else printf("a"); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
64
#include <bits/stdc++.h> using namespace std; int main() { int i, p; p = 0; char str; cin >> str; string test = "abcdefghijklmnopqrstuvwxyz"; for (i = 0; i < 25; i++) { if (test.at(i) == str) { p = 1; } } if (p == 1) { cout << 'a' << endl; } else { cout << 'A' << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int i, p; p = 0; char str; cin >> str; string test = "abcdefghijklmnopqrstuvwxyz"; for (i = 0; i < 26; i++) { if (test.at(i) == str) { p = 1; } } if (p == 1) { cout << 'a' << endl; } else { cout << 'A' << endl; } }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
94
#include <bits/stdc++.h> using namespace std; #define fio \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0) #define int lon...
#include <bits/stdc++.h> using namespace std; #define fio \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0) #define int lon...
[["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
72
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) using ll = long long; int main() { char alpha; cin >> alpha; if (alpha >= 'a' || alpha <= 'z') { cout << "a" << endl; } if (alpha >= 'A' || alpha <= 'Z') { cout << "A" << endl; } }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) using ll = long long; int main() { char alpha; cin >> alpha; if (alpha >= 'a' && alpha <= 'z') { cout << "a" << endl; } if (alpha >= 'A' && alpha <= 'Z') { cout << "A" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
81
a=input() sult='A' if a.islower==True: sult='a' print(sult)
a=input() sult='A' if a.islower()==True: sult='a' print(sult)
[["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]]
5
26
a = input() tf = a.isupper() if tf == True: print('A') else: print(a)
a = input() tf = a.isupper() if tf == True: print('A') else: print('a')
[["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]]
5
29
#include <algorithm> #include <array> #include <bitset> #include <cassert> #include <complex> #include <cstdio> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <limits.h> #include <map> #include <math.h> #include <numeric> #include <queue> #include <random> #...
#include <algorithm> #include <array> #include <bitset> #include <cassert> #include <complex> #include <cstdio> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <limits.h> #include <map> #include <math.h> #include <numeric> #include <queue> #include <random> #...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
1,605
a = input() print('A') if c.isupper() is True else print('a')
a = input() print('A') if a.isupper() is True else print('a')
[["-", 0, 41, 0, 666, 0, 652, 63, 319, 500, 22], ["+", 0, 41, 0, 666, 0, 652, 63, 319, 500, 22]]
5
26
#include <bits/stdc++.h> using namespace std; #define rep(i, s, n) for (int i = s; i < n; i++) int main() { char c; cin >> c; if ('a' < c && c < 'z') cout << 'a' << endl; else cout << 'A' << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, s, n) for (int i = s; i < n; i++) int main() { char c; cin >> c; if ('a' <= c && c <= 'z') cout << 'a' << endl; else cout << 'A' << endl; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]]
1
60
if(input().islower):print('a') else: print('A')
if (input().islower()):print('a') else: print('A')
[["+", 0, 57, 15, 23, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 23, 0, 652, 3, 4, 0, 25]]
5
23
#include <iostream> using namespace std; int main() { char s; cin >> s; if (s >= 'A' && s <= 'Z') { cout << "A" << endl; } else if (s <= 'a' && s <= 'z') { cout << "a" << endl; } return 0; }
#include <iostream> using namespace std; int main() { char s; cin >> s; if (s >= 'A' && s <= 'Z') { cout << "A" << endl; } else if (s >= 'a' && s <= 'z') { cout << "a" << endl; } return 0; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20]]
1
71
a = input() b = a.isupper() print(b) if b == True: print("A") else: print("a")
a = input() b = a.isupper() if b == True: print("A") else: print("a")
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
35
#include <iostream> using namespace std; int main() { char x, a, A; cin >> x; if (x == 'a') cout << a; else if (x == 'b') cout << a; else if (x == 'c') cout << a; else if (x == 'd') cout << a; else if (x == 'e') cout << a; else if (x == 'f') cout << a; else if (x == 'g') c...
#include <iostream> using namespace std; int main() { char x, a = 'a', A = 'A'; cin >> x; if (x == 'a') cout << a; else if (x == 'b') cout << a; else if (x == 'c') cout << a; else if (x == 'd') cout << a; else if (x == 'e') cout << a; else if (x == 'f') cout << a; else if (x =...
[["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 8, 9, 0, 43, 49, 50, 51, 103, 0, 104], ["+", 8, 9, 0, 43, 49, 50, 51, 103, 0, 125], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22]]
1
365
#include <iostream> using namespace std; int main() { char c; cin >> c; c = c + 1; if ('A' + 1 <= c && c <= 'Z') { cout << "A\n"; } else { cout << "a\n"; } }
#include <iostream> using namespace std; int main() { char c; cin >> c; c = c + 1; if ('A' + 1 <= c && c <= 'Z' + 1) { cout << "A\n"; } else { cout << "a\n"; } }
[["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 72], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 12, 13]]
1
60
#include <bits/stdc++.h> #include <math.h> using namespace std; int main() { char a; int b = 95; cin >> a; if (a >= b) { cout << "A" << endl; } else { cout << "a" << endl; } }
#include <bits/stdc++.h> #include <math.h> using namespace std; int main() { char a; int b = 95; cin >> a; if (a <= b) { cout << "A" << endl; } else { cout << "a" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
53
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s = scanner.next(); if (s.equals(s.toUpperCase())) { System.out.println("A"); } else { System.out.println("B"); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s = scanner.next(); if (s.equals(s.toUpperCase())) { System.out.println("A"); } else { System.out.println("a"); } } }
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
84
#include <stdio.h> int main(void) { char a; scanf("%c", &a); if ('A' <= a && a <= 'Z') printf("%c\n", 'A'); else if ('a' <= a && a <= 'z') printf("%c\n", 'B'); return 0; }
#include <stdio.h> int main(void) { char a; scanf("%c", &a); if ('A' <= a && a <= 'Z') printf("%c\n", 'A'); else if ('a' <= a && a <= 'z') printf("%c\n", 'a'); return 0; }
[["-", 64, 1, 0, 2, 3, 4, 0, 103, 0, 125], ["+", 64, 1, 0, 2, 3, 4, 0, 103, 0, 125]]
0
78
#include <bits/stdc++.h> using namespace std; int main() { char x; cin >> x; if (isupper(x)) cout << 'A'; else cout << 'B'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char x; cin >> x; if (isupper(x)) cout << 'A'; else cout << 'a'; return 0; }
[["-", 75, 76, 0, 1, 0, 16, 12, 103, 0, 125], ["+", 75, 76, 0, 1, 0, 16, 12, 103, 0, 125]]
1
42
import string # print(string.ascii_letters) # print(string.ascii_lowercase) # print(string.ascii_uppercase) n = input() # print(n) if n in string.ascii_lowercase: print("B") elif n in string.ascii_uppercase: print("A")
import string # print(string.ascii_letters) # print(string.ascii_lowercase) # print(string.ascii_uppercase) n = input() # print(n) if n in string.ascii_lowercase: print("a") elif n in string.ascii_uppercase: print("A")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
37
#include <algorithm> #include <bits/stdc++.h> #include <numeric> using namespace std; #define ll long long #define fn for (i = 0; i < n; i++) #define f(k, n) for (i = k; i < n; i++) #define deb(x) cout << #x << " " << x << endl; #define read(x) getline(cin, x) typedef pair<int, int> pairii; typedef vector<int> veci;...
#include <algorithm> #include <bits/stdc++.h> #include <numeric> using namespace std; #define ll long long #define fn for (i = 0; i < n; i++) #define f(k, n) for (i = k; i < n; i++) #define deb(x) cout << #x << " " << x << endl; #define read(x) getline(cin, x) typedef pair<int, int> pairii; typedef vector<int> veci;...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]]
1
295
<?php fscanf(STDIN, "%d", $a); echo (ord($a) <= 90) ? 'A' : 'a';
<?php fscanf(STDIN, "%s", $a); echo (ord($a) <= 90) ? 'A' : 'a';
[["-", 0, 613, 3, 3, 0, 28, 0, 609, 0, 610], ["+", 0, 613, 3, 3, 0, 28, 0, 609, 0, 610]]
6
32
#include <iostream> using namespace std; main() { int i, alpha; cin >> alpha; if (alpha >= 65 && alpha <= 90) cout << 'A'; else cout << 'a'; return 0; }
#include <iostream> using namespace std; main() { int i; char alpha; cin >> alpha; if (alpha >= 65 && alpha <= 90) cout << 'A'; else cout << 'a'; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
46
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define PB push_back #define ALL(v) (v).begin(), (v).end() #define FOR(i, n) for (ll(i) = 0; (i) < (n); (i)++) #define RFOR(i, n) for (ll(i) = (n)-1; (i) >= 0; (i)--) #define REP(i, x, n) for (ll(i) = (x); (i) < (n); (i)++) #def...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define PB push_back #define ALL(v) (v).begin(), (v).end() #define FOR(i, n) for (ll(i) = 0; (i) < (n); (i)++) #define RFOR(i, n) for (ll(i) = (n)-1; (i) >= 0; (i)--) #define REP(i, x, n) for (ll(i) = (x); (i) < (n); (i)++) #def...
[["-", 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
122
#pragma GCC optimize("O3") #include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef unsigned long long int ull; typedef long double ld; #define test(t) \ int t; ...
#pragma GCC optimize("O3") #include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef unsigned long long int ull; typedef long double ld; #define test(t) \ int t; ...
[["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
201
#include <bits/stdc++.h> using namespace std; int main() { char alpha; cin >> alpha; if (alpha == 'a' || alpha == 'b' || alpha == 'c' || alpha == 'd' || alpha == 'e') { cout << 'a' << endl; } if (alpha == 'f' || alpha == 'g' || alpha == 'h' || alpha == 'i' || alpha == 'j') { cout << 'a'...
#include <bits/stdc++.h> using namespace std; int main() { char alpha; cin >> alpha; if (alpha == 'a' || alpha == 'b' || alpha == 'c' || alpha == 'd' || alpha == 'e') { cout << 'a' << endl; } else if (alpha == 'f' || alpha == 'g' || alpha == 'h' || alpha == 'i' || alpha == 'j') { c...
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
262
#include <cstdio> using namespace std; int main(int argc, char **argv) { char a = getchar(); if ('a' <= a && a <= 'z') putchar('a'); else putchar('b'); return 0; }
#include <cstdio> using namespace std; int main(int argc, char **argv) { char a = getchar(); if ('a' <= a && a <= 'z') putchar('a'); else putchar('A'); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 103, 0, 125], ["+", 0, 1, 0, 2, 3, 4, 0, 103, 0, 125]]
1
58
#include <bits/stdc++.h> using namespace std; using ll = long long; using vi = vector<int>; using vvi = vector<vi>; using vl = vector<ll>; using vvl = vector<vl>; using vb = vector<bool>; using vvb = vector<vb>; using pii = pair<int, int>; using pli = pair<ll, int>; using pll = pair<ll, ll>; using vpii = vector<pii>; u...
#include <bits/stdc++.h> using namespace std; using ll = long long; using vi = vector<int>; using vvi = vector<vi>; using vl = vector<ll>; using vvl = vector<vl>; using vb = vector<bool>; using vvb = vector<vb>; using pii = pair<int, int>; using pli = pair<ll, int>; using pll = pair<ll, ll>; using vpii = vector<pii>; u...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
188
#include <bits/stdc++.h> using namespace std; #define int long long #define f(i, x, n) for (int i = x; i < n; i++) #define all(c) c.begin(), c.end() const int MOD = 1e9 + 7, N = 5e5 + 10; const int LINF = LLONG_MAX; int32_t main() { ios_base::sync_with_stdio(false); cin.tie(NULL); char ch; cin >> ch; if (ch ...
#include <bits/stdc++.h> using namespace std; #define int long long #define f(i, x, n) for (int i = x; i < n; i++) #define all(c) c.begin(), c.end() const int MOD = 1e9 + 7, N = 5e5 + 10; const int LINF = LLONG_MAX; int32_t main() { ios_base::sync_with_stdio(false); cin.tie(NULL); char ch; cin >> ch; if (ch ...
[["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
104
S = str(input()) if S .isupper(): print(A) else: print(a)
S = str(input()) if S.isupper(): print ("A") else: print ("a")
[["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]]
5
25
#include <ctype.h> #include <stdio.h> int main(void) { char s; scanf("%c", &s); if (isupper(s)) { printf('A'); } else { printf('a'); } return 0; }
#include <ctype.h> #include <stdio.h> int main(void) { char s; scanf("%c", &s); if (isupper(s)) { printf("A"); } else { printf("a"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 103, 0, 104], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62]]
0
53
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String str = sc.next(); sc.close(); if (Character.isUpperCase(str.charAt(0))) { System.out.println("B"); } else { System.out.println("a"); } } }
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String str = sc.next(); sc.close(); if (Character.isUpperCase(str.charAt(0))) { System.out.println("A"); } else { System.out.println("a"); } } }
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
90
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if ((int)('a') <= c && c <= (int)('z')) cout << "A" << endl; else cout << "a" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if ((int)('a') <= c && c <= (int)('z')) cout << "a" << endl; else cout << "A" << endl; }
[["-", 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
60
#include <bits/stdc++.h> #include <vector> #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) using namespace std; int main() { char s; cin >> s; if (97 <= s && s <= 122) { cout << 'B' << endl; } else { cout << 'A' << endl; } }
#include <bits/stdc++.h> #include <vector> #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) using namespace std; int main() { char s; cin >> s; if (97 <= s && s <= 122) { cout << 'a' << endl; } else { cout << 'A' << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
60
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #define ll long long #define pi 3.14 using namespace std; void put(int x) { if (x < 0) { putchar('-'); x *= -1; } if (x == 0) { putchar('0'); } int num = 0; ...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #define ll long long #define pi 3.14 using namespace std; void put(int x) { if (x < 0) { putchar('-'); x *= -1; } if (x == 0) { putchar('0'); } int num = 0; ...
[["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104]]
1
289
#include <bits/stdc++.h> #include <iostream> using namespace std; #define pb push_back #define mp make_pair #define N 2 * 10e5 #define precise cout << fixed << setprecision(10) #pragma GCC optimize("O0") #pragma GCC optimize("Ofast") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #pragma ...
#include <bits/stdc++.h> #include <iostream> using namespace std; #define pb push_back #define mp make_pair #define N 2 * 10e5 #define precise cout << fixed << setprecision(10) #pragma GCC optimize("O0") #pragma GCC optimize("Ofast") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #pragma ...
[["-", 15, 339, 51, 16, 31, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
305
#include <iostream> int main(void) { int a; std::cin >> a; if (a >= 65 && a <= 90) std::cout << "A"; else if (a >= 97 && a <= 122) std::cout << "a"; return 0; }
#include <iostream> int main(void) { char a; std::cin >> a; if (a >= 65 && a <= 90) std::cout << "A"; else if (a >= 97 && a <= 122) std::cout << "a"; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
58
#include <iostream> using namespace std; int main() { char s; cin >> s; cout << (isupper(s) ? "a" : "A") << endl; }
#include <iostream> using namespace std; int main() { char s; cin >> s; cout << (!isupper(s) ? "a" : "A") << endl; }
[["+", 31, 16, 12, 23, 0, 41, 15, 91, 17, 111]]
1
38
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); char A; cin >> A; if (A > 'a') cout << "a\n"; else cout << "A\n"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); char A; cin >> A; if (A >= 'a') cout << "a\n"; else cout << "A\n"; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
59
print('B') if input().islower() else print('A')
print('a') if input().islower() else print('A')
[["-", 0, 41, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 41, 0, 652, 3, 4, 0, 557, 0, 6]]
5
21
#include <bits/stdc++.h> using namespace std; int main() { char c; scanf("%c", c); if ((int)c < 97) printf("A\n"); else printf("a\n"); }
#include <bits/stdc++.h> using namespace std; int main() { char c; scanf("%c", &c); if ((int)c < 97) printf("A\n"); else printf("a\n"); }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
1
50
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { char c; cin >> c; if (c >= 'Z') cout << "a" << endl; else cout << "A" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { char c; cin >> c; if (c > 'Z') cout << "a" << endl; else cout << "A" << endl; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
52