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
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); if (Character.isLowerCase(s.charAt(0))) { System.out.println("Yes"); } else { System.out.println("No"); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); if (Character.isLowerCase(s.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
85
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <string> #include <vector> using namespace std; using ll = long long; int main() { char c; cin >> c; if (isupper(c)) { cout << 'A' << endl; } else { cout << 'B' << endl; } return 0; }
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <string> #include <vector> using namespace std; using ll = long long; int main() { char c; cin >> c; if (isupper(c)) { 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
66
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if (a > 65 && a <= 91) cout << "A"; else cout << "a"; }
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if (a >= 65 && a <= 91) cout << "A"; else cout << "a"; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20]]
1
42
f=str(input()) if f.islower == True: print('a') else: print('A')
f=str(input()) if f.islower() == 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
29
#include <iostream> int main() { char Ai; std::cin >> Ai; if (Ai >= 'Z' && Ai <= 'A') { std::cout << "A"; } else { std::cout << "a"; } }
#include <iostream> int main() { char Ai; std::cin >> Ai; if (Ai <= 'Z' && Ai >= 'A') { std::cout << "A"; } else { std::cout << "a"; } }
[["-", 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
52
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a), i##formax = (b); i < i##formax; i++) #define FORR(i, a, b) for (int i = (a), i##formin = (b); i >= i##formin; i--) #define pb push_back #define eb emplace_back #define mp make_pair #define fi first #define se second #define pcnt __buil...
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a), i##formax = (b); i < i##formax; i++) #define FORR(i, a, b) for (int i = (a), i##formin = (b); i >= i##formin; i--) #define pb push_back #define eb emplace_back #define mp make_pair #define fi first #define se second #define pcnt __buil...
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]]
1
583
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); char Alpa = sc.next().charAt(0); if (Character.isUpperCase(Alpa)) System.out.println('A'); else System.out.println('...
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); char Alpa = sc.next().charAt(0); if (Character.isUpperCase(Alpa)) System.out.println('A'); else System.out.println('...
[["-", 0, 57, 75, 1, 0, 492, 3, 4, 0, 252], ["+", 0, 57, 75, 1, 0, 492, 3, 4, 0, 252]]
3
86
#include <bits/stdc++.h> #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define int long long #define ld long...
#include <bits/stdc++.h> #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define int long long #define ld long...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19]]
1
62
#include <iostream> using namespace std; int main() { char a; string ans; string S = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; cin >> a; for (int i = 0; i < 52; i++) { if (a == S[i]) { if (i <= 25) { ans = 'a'; } else { ans = 'A'; } } } cout << ans...
#include <iostream> using namespace std; int main() { char a; char ans; string S = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; cin >> a; for (int i = 0; i < 52; i++) { if (a == S[i]) { if (i <= 25) { ans = 'A'; } else { ans = 'a'; } } } cout << ans; ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 64, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["+", 64, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["-", 0, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["+", 0, 9, 0, 1, 0, 11, 12, 103, 0, 125]]
1
86
d = $stdin.read.chomp d == d.upcase ? "A" : "a"
d = $stdin.read.chomp puts(d == d.upcase ? "A" : "a")
[["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 652, 3, 4, 0, 24], ["+", 36, 36, 0, 493, 0, 652, 3, 4, 0, 25]]
4
20
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <ctime> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <tuple> #include <unordered_map> #include <unordered_set> #inc...
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <ctime> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <tuple> #include <unordered_map> #include <unordered_set> #inc...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]]
1
177
#include <bits/stdc++.h> using namespace std; char a; int main(void) { cin >> a; if ('a' <= a && a <= 'z') { cout << "a" << endl; } else { cout << "b" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; char a; int main(void) { cin >> a; if ('a' <= a && a <= 'z') { cout << "a" << endl; } else { cout << "A" << endl; } return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
58
a = int(input()) if True == a.isupper(): Print("A") else : print("a")
a = input() if True == a.isupper(): print("A") else : print("a")
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22]]
5
31
print("Aa"[ord(open(0))>95])
print("Aa"[ord(input())>95])
[["-", 206, 666, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 206, 666, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 612]]
5
17
#include <iostream> using namespace std; int main(void) { char a; cin >> a; if (a - (int)'a' <= 25) { cout << "a"; } else { cout << "B"; } }
#include <iostream> using namespace std; int main(void) { char a; cin >> a; if ((a - (int)'A') <= 25) { cout << "A"; } else { cout << "a"; } }
[["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 24], ["-", 51, 16, 31, 16, 12, 74, 51, 103, 0, 125], ["+", 31, 23, 0, 16, 12, 74, 51, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 25], ["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0...
1
50
#include <stdio.h> int main(void) { int i, n, x, y, a, b; char s[10000]; scanf("%s", s); if (s[0] >= 'a' || s[0] <= 'z') printf("a"); else printf("A"); return (0); }
#include <stdio.h> int main(void) { int i, n, x, y, a, b; char s[10000]; scanf("%s", s); if (s[0] >= 'a' && s[0] <= 'z') printf("a"); else printf("A"); return (0); }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98]]
0
77
#include <stdio.h> int main() { char a; scanf("%c", &a); if (a > 'A' && a < 'Z') printf("A\n"); else if (a > 'a' && a < 'z') printf("a\n"); return 0; }
#include <stdio.h> int main() { char a; scanf("%c", &a); if (a >= 'A' && a <= 'Z') printf("A\n"); else if (a >= 'a' && a <= 'z') printf("a\n"); return 0; }
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19]]
0
69
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if ('A' <= a && a <= 'Z') cout << "A" << endl; else cout << "B" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if ('A' <= a && a <= 'Z') cout << "A" << endl; else cout << "a" << 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
#include <iostream> int main() { char A; std::cin >> A; if ('a' < A && A < 'z') { std::cout << "a" << std::endl; } else { std::cout << "A" << std::endl; } }
#include <iostream> int main() { char A; std::cin >> A; if ('a' <= A && A <= 'z') { std::cout << "a" << std::endl; } else { std::cout << "A" << std::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
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { char a; cin >> a; if (a <= 26) { a = 'a'; } else if (65 <= a && a <= 90) { a = 'A'; } cout << a; return 0; }
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { char a; cin >> a; if (a >= 97 && a <= 122) { a = 'a'; } else if (65 <= a && a <= 90) { a = 'A'; } cout << a; return 0; }
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
61
#include <bits/stdc++.h> using namespace std; #define sim template <class c #define ris return *this #define dor > debug &operator<< #define eni(x) \ sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator<<( \ c i) { sim > ...
#include <bits/stdc++.h> using namespace std; #define sim template <class c #define ris return *this #define dor > debug &operator<< #define eni(x) \ sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator<<( \ c i) { sim > ...
[["-", 0, 42, 0, 2, 3, 4, 0, 16, 17, 106], ["+", 0, 42, 0, 2, 3, 4, 0, 16, 17, 98]]
1
332
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; public class Main { static BufferedReader reader; final static boolean MODE_DEBUG = false; static int[] read_line_int; static int read_line_int_ptr; static long[] read_line_long; static in...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; public class Main { static BufferedReader reader; final static boolean MODE_DEBUG = false; static int[] read_line_int; static int read_line_int_ptr; static long[] read_line_long; static in...
[["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 19]]
3
962
#include <iostream> using namespace std; int main(void) { char str; cin >> str; if (isupper(str)) cout << 'A' << endl; else cout << 'B' << endl; }
#include <iostream> using namespace std; int main(void) { char str; cin >> str; if (isupper(str)) 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
44
#include <iostream> using namespace std; int main() { char c; cin >> c; if (c >= 'a' && c < 'z') { cout << "a" << endl; } else { cout << "A" << endl; } return 0; }
#include <iostream> using namespace std; int main() { char c; cin >> c; if (c >= 'a' && c <= 'z') { cout << "a" << endl; } else { cout << "A" << endl; } return 0; }
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]]
1
57
#include "bits/stdc++.h" #include <random> using namespace std; using ll = long long; using dd = double; using pll = pair<ll, ll>; using tll = tuple<ll, ll, ll>; using vll = vector<ll>; using vdd = vector<dd>; using vpll = vector<pll>; using vtll = vector<tll>; using vvll = vector<vll>; using vvdd = vector<vdd>; using ...
#include "bits/stdc++.h" #include <random> using namespace std; using ll = long long; using dd = double; using pll = pair<ll, ll>; using tll = tuple<ll, ll, ll>; using vll = vector<ll>; using vdd = vector<dd>; using vpll = vector<pll>; using vtll = vector<tll>; using vvll = vector<vll>; using vvdd = vector<vdd>; using ...
[["-", 0, 30, 0, 14, 8, 9, 0, 163, 15, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 163, 15, 13]]
1
4,049
#include <iostream> using namespace std; int main(void) { char ch; if (ch >= 'A' && ch <= 'Z') cout << "A\n"; else cout << "a\n"; return 0; }
#include <iostream> using namespace std; int main(void) { char ch; cin >> ch; if (ch >= 'A' && ch <= 'Z') cout << "A\n"; else cout << "a\n"; return 0; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
48
''' Auther: ghoshashis545 Ashis Ghosh College: jalpaiguri Govt Enggineering College ''' from os import path import sys from functools import cmp_to_key as ctk from collections import deque,defaultdict as dd from bisect import bisect,bisect_left,bisect_right,insort,insort_left,insort_right from itertools impor...
''' Auther: ghoshashis545 Ashis Ghosh College: jalpaiguri Govt Enggineering College ''' from os import path import sys from functools import cmp_to_key as ctk from collections import deque,defaultdict as dd from bisect import bisect,bisect_left,bisect_right,insort,insort_left,insort_right from itertools impor...
[["+", 8, 196, 0, 57, 15, 666, 0, 206, 0, 70], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 206, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 0, 73]]
5
282
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define all(x) (x).begin(), (x).end() template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <class T> i...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define all(x) (x).begin(), (x).end() template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <class T> i...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
174
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; string ans = c < 161 ? "A" : "a"; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; string ans = (int)c < 97 ? "A" : "a"; cout << ans << endl; }
[["+", 49, 50, 51, 41, 15, 16, 31, 74, 0, 24], ["+", 51, 41, 15, 16, 31, 74, 39, 77, 39, 40], ["+", 49, 50, 51, 41, 15, 16, 31, 74, 0, 25], ["-", 0, 43, 49, 50, 51, 41, 15, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 41, 15, 16, 12, 13]]
1
40
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if (a - 'A' < 0) cout << 'a'; else cout << 'A'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if (a - 'Z' > 0) cout << 'a'; else cout << 'A'; return 0; }
[["-", 15, 339, 51, 16, 31, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 31, 16, 12, 103, 0, 125], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
45
#include <cstring> #include <iostream> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); char a; cin >> a; if ('A' <= a && a <= 'A') cout << 'A'; else cout << 'a'; return 0; }
#include <cstring> #include <iostream> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); char a; cin >> a; if ('A' <= a && a <= 'Z') cout << 'A'; else cout << 'a'; return 0; }
[["-", 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> #define fi first #define se second #define pb push_back using namespace std; typedef long long ll; typedef pair<int, int> pii; int main() { ios_base::sync_with_stdio(0); char c; cin >> c; if (c - 'a' >= 0) cout << 'A' << endl; else cout << 'a' << endl; }
#include <bits/stdc++.h> #define fi first #define se second #define pb push_back using namespace std; typedef long long ll; typedef pair<int, int> pii; int main() { ios_base::sync_with_stdio(0); char c; cin >> c; if (c - 'a' >= 0) cout << 'a' << endl; else cout << 'A' << endl; }
[["-", 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
76
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) #define pi 3.14159265359 using namespace std; const long long INF = 1e9 + 7; const string alp = "abcdefghijklmnopqrstuvwxyg"; // 26 const string ALP = "ABCDEFGHIJKLMNOPQRSTUVWXYG"; ty...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) #define pi 3.14159265359 using namespace std; const long long INF = 1e9 + 7; const string alp = "abcdefghijklmnopqrstuvwxyz"; // 26 const string ALP = "ABCDEFGHIJKLMNOPQRSTUVWXYG"; ty...
[["-", 0, 30, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 0, 30, 0, 43, 49, 50, 51, 5, 0, 6]]
1
173
#pragma GCC optimize("O3") #pragma GCC target("sse4") #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef complex<ld> cd; typedef pair<int, int> pi; typedef pair<ll, ll> pl; typedef pair<ld, ld> pd; typedef vector<int> vi; typedef vector<ld> vd; typedef vector<ll> vl...
#pragma GCC optimize("O3") #pragma GCC target("sse4") #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef complex<ld> cd; typedef pair<int, int> pi; typedef pair<ll, ll> pl; typedef pair<ld, ld> pd; typedef vector<int> vi; typedef vector<ld> vd; typedef vector<ll> vl...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]]
1
343
#include <bits/stdc++.h> #include <chrono> #include <cmath> #include <complex> #include <cstdio> #include <cstring> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define REP(i, n) for (int i = 1; i <= n; i++) #define Rep(i, a, n) for (int i = a; i < n; i++) #define ll long long int #define dd doub...
#include <bits/stdc++.h> #include <chrono> #include <cmath> #include <complex> #include <cstdio> #include <cstring> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define REP(i, n) for (int i = 1; i <= n; i++) #define Rep(i, a, n) for (int i = a; i < n; i++) #define ll long long int #define dd doub...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
207
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const ll INF = 1e18; #define endl "\n" #define fr first #define sc second #define f (i, L, R) for (int i = L; i < R; i++) #define F(i, t) for (typeof(t.begin()) i = t.begin(); i != t.end(); i++) void solve() { int x; cin >> x; if (x > 96) ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const ll INF = 1e18; #define endl "\n" #define fr first #define sc second #define f (i, L, R) for (int i = L; i < R; i++) #define F(i, t) for (typeof(t.begin()) i = t.begin(); i != t.end(); i++) void solve() { char x; cin >> x; // cout << (in...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 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]]
1
117
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if ('A' <= c <= 'Z') cout << "A\n"; else cout << "a\n"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c >= 'A' && c <= 'Z') cout << "A\n"; else cout << "a\n"; return 0; }
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
49
#include <bits/stdc++.h> using namespace std; int main() { char ch; cin >> ch; if (ch >= 'A' && ch >= 'Z') { cout << "A" << endl; } if (ch >= 'a' && ch >= 'z') { cout << "a" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { char ch; cin >> ch; if (ch >= 'A' && ch <= 'Z') { cout << "A" << endl; } if (ch >= 'a' && ch <= 'z') { cout << "a" << endl; } }
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]]
1
67
#include <stdio.h> int main() { char s; scanf("%s", &s); if ('A' <= s && s <= "Z") { printf("A"); } else { printf("a"); } }
#include <stdio.h> int main() { char s; scanf("%s", &s); if ('A' <= s && s <= 'Z') { printf("A"); } else { printf("a"); } }
[["-", 15, 23, 0, 16, 12, 16, 12, 5, 0, 62], ["+", 15, 23, 0, 16, 12, 16, 12, 103, 0, 104]]
0
54
/* A - αlphabet https://atcoder.jp/contests/abc171/tasks/abc171_ae */ #include <algorithm> #include <cmath> #include <iostream> #include <vector> using namespace std; #define ll long long // 10 ^ 18 #define forn(i, s, n) for (int i = s; i < n; i++) #define whilen(val, n) while (n-- && cin >> val) #define r_...
/* A - αlphabet https://atcoder.jp/contests/abc171/tasks/abc171_ae */ #include <algorithm> #include <cmath> #include <iostream> #include <vector> using namespace std; #define ll long long // 10 ^ 18 #define forn(i, s, n) for (int i = s; i < n; i++) #define whilen(val, n) while (n-- && cin >> val) #define r_...
[["+", 64, 1, 0, 16, 31, 16, 12, 103, 0, 104]]
1
95
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String a = scan.next(); if (Character.isUpperCase(a.charAt(0))) System.out.println("A"); else System.out.println("B"); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String a = scan.next(); if (Character.isUpperCase(a.charAt(0))) System.out.println('A'); else System.out.println('a'); } }
[["-", 64, 1, 0, 492, 3, 4, 0, 5, 0, 62], ["-", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 57, 64, 1, 0, 492, 3, 4, 0, 252], ["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 62], ["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 57, 75, 1, 0, 492, 3, 4, 0, 252]]
3
81
#include <algorithm> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; typedef long long ll; int main() { char a; cin >> a; if (a - 'A' <= 23) { cout << "A" << endl; } else { cout << "a" << endl; } return 0; }
#include <algorithm> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; typedef long long ll; int main() { char a; cin >> a; // cout<<a - 'A'<<endl; if (a - 'A' <= 25) { cout << "A" << endl; } else { cout << "a" << endl; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
66
a - input() if a.islower(): print("a") else: print("A")
a = input() if a.islower() == True: print("a") else: print("A")
[["-", 36, 36, 0, 656, 0, 1, 0, 657, 17, 33], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 146]]
5
26
#include <iostream> using namespace std; int main() { char ch; cin >> ch; if (ch >= 'A') cout << 'A'; else cout << 'a'; return 0; }
#include <iostream> using namespace std; int main() { char ch; cin >> ch; if (ch >= 'A' and ch <= 'Z') cout << 'A'; else cout << 'a'; return 0; }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 355], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
43
#include <bits/stdc++.h> using namespace std; void solve() { char c; cin >> c; if (c >= 'A' && c <= 'B') c = 'A'; if (c >= 'a' && c <= 'b') c = 'a'; cout << c << endl; } int main() { int tt = 1; // cin >> tt; while (tt--) solve(); }
#include <bits/stdc++.h> using namespace std; void solve() { char c; cin >> c; if (c >= 'A' && c <= 'Z') c = 'A'; if (c >= 'a' && c <= 'z') c = 'a'; cout << c << endl; } int main() { int tt = 1; // cin >> tt; while (tt--) solve(); }
[["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
86
#pragma GCC optimize("Ofast", 3, "inline") #include <bits/stdc++.h> using namespace std; #define fir first #define sec second #define m_p make_pair #define y1 ygftgfgcdtfgxffgx #define y2 yfdsesgvtyghftfvv #define x1 xvyr6cf6fgcfgf676 #define x2 xcr6rfc5r66y6r6fr #define up_bound upper_bound #define low_bound lower_bou...
#pragma GCC optimize("Ofast", 3, "inline") #include <bits/stdc++.h> using namespace std; #define fir first #define sec second #define m_p make_pair #define y1 ygftgfgcdtfgxffgx #define y2 yfdsesgvtyghftfvv #define x1 xvyr6cf6fgcfgf676 #define x2 xcr6rfc5r66y6r6fr #define up_bound upper_bound #define low_bound lower_bou...
[["+", 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
208
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ios::sync_with_stdio(0); cin.tie(0); char c; cin >> c; if (isupper(c)) cout << 'A'; else { cout << c; } return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ios::sync_with_stdio(0); cin.tie(0); char c; cin >> c; if (isupper(c)) cout << 'A'; else { cout << 'a'; } return 0; }
[["-", 75, 76, 0, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 9, 0, 1, 0, 16, 12, 103, 0, 104], ["+", 0, 9, 0, 1, 0, 16, 12, 103, 0, 125]]
1
59
#ifdef DEBUG #else #pragma GCC optimize("O3,no-stack-protector") #pragma GCC optimize("unroll-loops") #if __cplusplus < 201703L #pragma GCC target("avx") #else #pragma GCC target("avx2") #endif #endif #define _USE_MATH_DEFINES #include <bits/stdc++.h> #define dump(x) cout << x << endl typedef int64_t Int; typedef ...
#ifdef DEBUG #else #pragma GCC optimize("O3,no-stack-protector") #pragma GCC optimize("unroll-loops") #if __cplusplus < 201703L #pragma GCC target("avx") #else #pragma GCC target("avx2") #endif #endif #define _USE_MATH_DEFINES #include <bits/stdc++.h> #define dump(x) cout << x << endl typedef int64_t Int; typedef ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
162
#include <iostream> using namespace std; int main() { // 文字列の入力 char c; cin >> c; // 出力 if (c >= 65 && 90 >= c) { cout << "A" << endl; } else cout << "A" << endl; return 0; }
#include <iostream> using namespace std; int main() { // 文字列の入力 char c; cin >> c; // 出力 if (c >= 65 && 90 >= c) { cout << "A" << endl; } else cout << "a" << 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
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String upperCases = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; String lowerCases = "abcdefghijklmnopqrstuvwxyz"; String oneChar = sc.next(); if (upperCases.indexOf(oneChar) > 0) { Sy...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String upperCases = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; String lowerCases = "abcdefghijklmnopqrstuvwxyz"; String oneChar = sc.next(); if (upperCases.indexOf(oneChar) >= 0) { S...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20]]
3
96
a = input() if a.str.isupper(): print("A") else: print("a")
a = input() if a.isupper(): print("A") else: print("a")
[["-", 0, 57, 15, 652, 63, 319, 500, 319, 319, 22], ["-", 0, 656, 0, 57, 15, 652, 63, 319, 0, 131]]
5
28
#include <stdio.h> int main() { char a; scanf("%c", &a); if ('a' <= a && 'z' >= a) printf('a'); else if ('A' <= a && 'Z' >= a) printf('A'); }
#include <stdio.h> int main() { char a; scanf("%c", &a); if ('a' <= a && 'z' >= a) printf("a"); else if ('A' <= a && 'Z' >= a) printf("A"); }
[["-", 64, 1, 0, 2, 3, 4, 0, 103, 0, 104], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 62]]
0
64
function Main(input) { console.log(/^'[A-Z]'$/g.test(input) == true ? "A" : "a") } Main(require("fs").readFileSync("/dev/stdin", "utf8"));
function Main(input) { console.log(/[A-Z]/g.test(input) == true ? 'A' : 'a') } Main(require("fs").readFileSync("/dev/stdin", "utf8"));
[["-", 15, 16, 31, 2, 63, 558, 500, 575, 374, 576], ["+", 15, 16, 31, 2, 63, 558, 500, 575, 374, 576], ["-", 0, 2, 3, 3, 0, 510, 64, 557, 0, 62], ["+", 0, 2, 3, 3, 0, 510, 64, 557, 0, 104], ["-", 0, 2, 3, 3, 0, 510, 75, 557, 0, 62], ["+", 0, 2, 3, 3, 0, 510, 75, 557, 0, 104]]
2
52
#include <stdio.h> int main() { char a; scanf("%c", &a); if (a - 97 >= 0) printf("A"); else printf("a"); return 0; }
#include <stdio.h> int main() { char a; scanf("%c", &a); if (a - 97 >= 0) printf("a"); else printf("A"); return 0; }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
47
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; int a = (int)c; if (a >= 65) cout << 'A' << endl; else cout << 'a' << endl; }
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; int a = (int)c; if (a < 97) 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, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
50
// file creato da gio il 2020-06-24 19:30:16.613933 #include <bits/stdc++.h> #define FAST #ifdef FAST #pragma GCC optimize("Ofast") #pragma GCC target( \ "fma,sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native") #pragma GCC optimize("unroll-loop...
// file creato da gio il 2020-06-24 19:30:16.613933 #include <bits/stdc++.h> #define FAST #ifdef FAST #pragma GCC optimize("Ofast") #pragma GCC target( \ "fma,sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native") #pragma GCC optimize("unroll-loop...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
83
#include <bits/stdc++.h> typedef long long int ll; using namespace std; #define maxN 200005 #define mod 1000000007 #define pi 3.14159265358979323846264338327950 void solve() { char c; cin >> c; if (islower(c)) { cout << "A\n"; } else { cout << "a\n"; } } int main() { ios::sync_with_stdio(0); cin...
#include <bits/stdc++.h> typedef long long int ll; using namespace std; #define maxN 200005 #define mod 1000000007 #define pi 3.14159265358979323846264338327950 void solve() { char c; cin >> c; if (!islower(c)) { cout << "A\n"; } else { cout << "a\n"; } } int main() { ios::sync_with_stdio(0); ci...
[["+", 8, 9, 0, 57, 15, 339, 51, 91, 17, 111]]
1
84
#include <stdio.h> int main() { char first; scanf("%c", &first); if ((first >= 'A') && (first <= 'Z')) printf("A\n", first); else if ((first >= 'A') && (first <= 'Z')) printf("a\n", first); return 0; }
#include <stdio.h> int main() { char first; scanf("%c", &first); if ((first >= 'A') && (first <= 'Z')) printf("A\n", first); else if ((first >= 'a') && (first <= 'z')) printf("a\n", first); return 0; }
[["-", 0, 16, 31, 23, 0, 16, 12, 103, 0, 125], ["+", 0, 16, 31, 23, 0, 16, 12, 103, 0, 125], ["-", 0, 16, 12, 23, 0, 16, 12, 103, 0, 125], ["+", 0, 16, 12, 23, 0, 16, 12, 103, 0, 125]]
0
81
#include <iostream> using namespace std; int main() { char a; scanf("%c", &a); if (a >= 'A' && a <= 'Z') { printf("A\n"); } else { printf("%c\n", a); } return 0; }
#include <iostream> using namespace std; int main() { char a; scanf("%c", &a); if (a >= 'A' && a <= 'Z') { printf("A\n"); } else { printf("a\n"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 22]]
1
65
#include <bits/stdc++.h> #define ll long long using namespace std; const int N = 2e5 + 5, mod = 1e9 + 7; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); char c; cin >> c; if (c >= 'a' && c <= 'z') cout << 'a'; else cout << 'z'; return 0; }
#include <bits/stdc++.h> #define ll long long using namespace std; const int N = 2e5 + 5, mod = 1e9 + 7; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); char c; cin >> c; if (c >= 'a' && c <= 'z') 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
87
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using namespace std; using P = pair<int, int>; using ll = long long; int main() { char c; cin >> c; if (c >= 'A') { cout << 'A' << endl; } else { cout << 'a' << endl;...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using namespace std; using P = pair<int, int>; using ll = long long; int main() { char c; cin >> c; if (c >= 'A' && c <= 'Z') { cout << 'A' << endl; } else { cout << ...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
85
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { char a; cin >> a; if (a >= 'A') { cout << "A"; } else { cout << "a"; } }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { char a; cin >> a; if (a >= 'A' && a <= 'Z') { cout << "A"; } else { cout << "a"; } }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
52
package main import ( "fmt" "strings" ) func main() { var alpha string fmt.Scan(&alpha) u := strings.ToUpper(alpha) if alpha==u { fmt.Println("A") } else { fmt.Println("B") } }
package main import ( "fmt" "strings" ) func main() { var alpha string fmt.Scan(&alpha) u := strings.ToUpper(alpha) if alpha==u { fmt.Println("A") } else { fmt.Println("a") } }
[]
7
71
#include <bits/stdc++.h> using namespace std; #define pb push_back #define all(v) ((v).begin()), ((v).end()) #define SZ(v) ((int)((v).size())) #define clr(v, d) memset(v, d, sizeof(v)) #define has(c, i) ((c).find(i) != end(c)) #define hastr(s, c) ((s).find(c) != string::npos) template <class U, class V> istream &ope...
#include <bits/stdc++.h> using namespace std; #define pb push_back #define all(v) ((v).begin()), ((v).end()) #define SZ(v) ((int)((v).size())) #define clr(v, d) memset(v, d, sizeof(v)) #define has(c, i) ((c).find(i) != end(c)) #define hastr(s, c) ((s).find(c) != string::npos) template <class U, class V> istream &ope...
[["-", 0, 57, 64, 1, 0, 16, 12, 103, 0, 125], ["+", 0, 57, 64, 1, 0, 16, 12, 103, 0, 125], ["-", 75, 76, 0, 1, 0, 16, 12, 103, 0, 125], ["+", 75, 76, 0, 1, 0, 16, 12, 103, 0, 125]]
1
296
// https://atcoder.jp/contests/abc171/tasks/abc171_a #include <bits/stdc++.h> using namespace std; #define int long long #define REP(i, n) FOR(i, 0, n) #define REPR(i, n) for (int i = n - 1; i >= 0; i--) #define FOR(i, s, n) for (int i = (s), i##_len = (n); i < i##_len; ++i) #define ALL(obj) (obj).begin(), (obj).end() ...
// https://atcoder.jp/contests/abc171/tasks/abc171_a #include <bits/stdc++.h> using namespace std; #define int long long #define REP(i, n) FOR(i, 0, n) #define REPR(i, n) for (int i = n - 1; i >= 0; i--) #define FOR(i, s, n) for (int i = (s), i##_len = (n); i < i##_len; ++i) #define ALL(obj) (obj).begin(), (obj).end() ...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
125
#include <bits/stdc++.h> using namespace std; int main() { char s; if (isupper(s)) { cout << 'A' << endl; } else { cout << 'a' << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { char s; cin >> s; if (isupper(s)) { cout << 'A' << endl; } else { cout << 'a' << 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
43
a=input() if ord(a)<ord('a'): print(A) else: print(a)
a=input() if ord(a)<ord('a'): 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
28
#include <bits/stdc++.h> using namespace std; int main() { char ch; if (ch >= 'A' && ch <= 'Z') { 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' && ch <= 'Z') { cout << "A" << endl; } else { 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
53
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if (isupper(a)) { cout << 'A' << endl; } else { cout << a << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if (isupper(a)) { cout << 'A' << endl; } else { cout << 'a' << endl; } }
[["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104]]
1
45
#include <iostream> int main() { char s; std::cin >> s; std::cout << (std::isupper(s) ? L"A" : L"a") << std::endl; return 0; }
#include <iostream> int main() { char s; std::cin >> s; std::cout << (std::isupper(s) ? "A" : "a") << std::endl; return 0; }
[["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 375], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 62], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 375], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 62]]
1
45
#include <bits/stdc++.h> using namespace std; #define fastIO \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define int ...
#include <bits/stdc++.h> using namespace std; #define fastIO \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define int ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 98]]
1
207
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if (islower(a)) { cout << "a\n"; } else { cout << "a\n"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if (islower(a)) { cout << "a\n"; } else { cout << "A\n"; } return 0; }
[["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
48
print("B"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
18
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstring> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <string> #include <unordered_map> #include <unordered_s...
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstring> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <string> #include <unordered_map> #include <unordered_s...
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["-", 64, 9, 0, 1, 0, 16, 12, 103, 0, 125], ["+", 64, 9, 0, 1, 0, 16, 12, 103, 0, 125], ["-", 0, 9, 0, 1, 0, 16, 12, 103, 0, 125], ["+", 0, 9, 0, 1, 0, 16, 12, 103, 0, 125]]
1
115
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops,no-stack-protector") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") using namespace __gnu_pbds; using namespace std; #d...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops,no-stack-protector") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") using namespace __gnu_pbds; using namespace std; #d...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]]
1
163
a=input() print("A" if a.isupper else "a")
a=input() print("A" if a.isupper() else "a")
[["+", 3, 4, 0, 41, 0, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 41, 0, 652, 3, 4, 0, 25]]
5
19
#include <iostream> using namespace std; int main() { char x; cin >> x; if (x > 65 && x < 90) { cout << "A"; } else if (x > 97 && x < 122) { cout << "a"; } }
#include <iostream> using namespace std; int main() { char x; cin >> x; if (x >= 65 && x <= 90) { cout << "A"; } else if (x >= 97 && x <= 122) { cout << "a"; } }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]]
1
56
print("aA"[input().islower()])
print("Aa"[input().islower()])
[["-", 0, 652, 3, 4, 0, 206, 51, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 206, 51, 557, 0, 6]]
5
15
#include <bits/stdc++.h> using namespace std; int main(void) { char a; cin >> a; if ('a' <= a || a <= 'z') { cout << 'a' << endl; } else { cout << 'A' << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { char a; cin >> a; if ('a' <= a && a <= 'z') { cout << 'a' << endl; } else { cout << 'A' << endl; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
58
s=raw_input() if s.islower(): print('a') else: print("A")
s=input() if s.islower(): print('a') else: print("A")
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
26
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, n) for (ll i = 0; i < (ll)n; i++) #define REPR(i, n) for (ll i = (ll)n - 1; i >= 0; i--) #define FOR(i, m, n) for (ll i = (ll)m; i < (ll)n; i++) #define FORR(i, m, n) for (ll i = (ll)m - 1; i >= (ll)n; i--) #define ALL(x) (x).begin(), (x...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, n) for (ll i = 0; i < (ll)n; i++) #define REPR(i, n) for (ll i = (ll)n - 1; i >= 0; i--) #define FOR(i, m, n) for (ll i = (ll)m; i < (ll)n; i++) #define FORR(i, m, n) for (ll i = (ll)m - 1; i >= (ll)n; i--) #define ALL(x) (x).begin(), (x...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
406
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { char a; cin >> a; cout << ('a' <= a || a <= 'z' ? 'a' : 'A') << endl; return 0...
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { char a; cin >> a; cout << ('a' <= a && a <= 'z' ? 'a' : 'A') << endl; return 0...
[["-", 31, 16, 12, 23, 0, 41, 15, 16, 17, 106], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 98]]
1
68
#include <bits/stdc++.h> #define ll long long const int N = 100005; using namespace std; string s; int main() { cin >> s; if (s[0] >= 'a' && s[0] <= 'z') cout << "A"; else cout << "a"; return 0; }
#include <bits/stdc++.h> #define ll long long const int N = 100005; using namespace std; string s; int main() { cin >> s; if (s[0] >= 'a' && s[0] <= 'z') cout << "a"; else cout << "A"; return 0; }
[["-", 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
64
#include <iostream> using namespace std; int main() { char c; cin >> c; if ('a' <= c <= 'z') cout << 'a'; else cout << 'A'; }
#include <iostream> using namespace std; int main() { char c; cin >> c; if ('a' <= c && c <= 'z') cout << 'a'; else cout << 'A'; }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]]
1
44
a=input() print('A' if(a.isupper) else 'a')
a=input() print('A' if a.isupper() else 'a')
[["-", 0, 652, 3, 4, 0, 41, 0, 23, 0, 24], ["+", 3, 4, 0, 41, 0, 652, 3, 4, 0, 24]]
5
21
#include <stdio.h> int main(void) { char c; scanf("%s", &c); if (c - 'z' > 0) { printf("A\n"); } else { printf("a\n"); } return 0; }
#include <stdio.h> int main(void) { char c; scanf("%s", &c); if (c - 'Z' > 0) { printf("a\n"); } else { printf("A\n"); } return 0; }
[["-", 15, 23, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 15, 23, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
56
#include <bits/stdc++.h> using namespace std; int main(void) { string str = "A"; smatch smatch; if (std::regex_search(str, smatch, std::regex("[A-Z]"))) { cout << "A"; } else { cout << "a"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { string str; cin >> str; smatch smatch; if (std::regex_search(str, smatch, std::regex("[A-Z]"))) { cout << "A"; } else { cout << "a"; } return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 62], ["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 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]]
1
63
// bismillahir rahmanir rahim //Author:Fayed Anik #include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> using namespace std; // using namespace __gnu_pbds; //#define ordered_set tree<int, null_type,less<int>, //rb_tree_tag,tree_order_statistics_...
// bismillahir rahmanir rahim //Author:Fayed Anik #include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> using namespace std; // using namespace __gnu_pbds; //#define ordered_set tree<int, null_type,less<int>, //rb_tree_tag,tree_order_statistics_...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
176
#include <bits/stdc++.h> #define mod 1000000007 using namespace std; typedef long long int ll; int main() { char s; cin >> s; ll n = s; if (n <= 120) cout << 'A' << "\n"; else cout << 'a' << "\n"; }
#include <bits/stdc++.h> #define mod 1000000007 using namespace std; typedef long long int ll; int main() { char s; cin >> s; ll n = s; if (n <= 90) cout << 'A' << "\n"; else cout << 'a' << "\n"; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
60
#include <stdio.h> int main(void) { char a; scanf("%c", &a); if ('a' < a && a < 'z') { printf("a"); } if ('A' < a && a < 'Z') { printf("A"); } return 0; }
#include <stdio.h> int main(void) { char a; scanf("%c", &a); if ('a' <= a && a <= 'z') { printf("a"); } else if ('A' <= a && a <= 'Z') { printf("A"); } return 0; }
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
0
71
#include <iostream> int main(void) { char c; std::cin >> c; if ('a' < c) { std::cout << 'A' << std::endl; } else { std::cout << 'a' << std::endl; } return 0; }
#include <iostream> int main(void) { char c; std::cin >> c; if ('a' > c) { std::cout << 'A' << std::endl; } else { std::cout << 'a' << std::endl; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
58
/***/ #include <bits/stdc++.h> using namespace std; #define fstinpt ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL) #define ll long long #define bn 1000090 #define sn 1010 #define mod 100000007 #define iii(i) cin >> i #define ooo(i) cout << i #define sss cout << " " #define nnn ...
/***/ #include <bits/stdc++.h> using namespace std; #define fstinpt ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL) #define ll long long #define bn 1000090 #define sn 1010 #define mod 100000007 #define iii(i) cin >> i #define ooo(i) cout << i #define sss cout << " " #define nnn ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
94
#pragma region Macros #include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, n) for (int i = 0; i < (n); i++) #define REPS(i, n) for (int i = 0; i <= (n); i++) #define FOR(i, a, b) for (int i = a; i < (b); i++) #define FORS(i, a, b) for (int i = a; i <= (b); i++) // for container x #define...
#pragma region Macros #include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, n) for (int i = 0; i < (n); i++) #define REPS(i, n) for (int i = 0; i <= (n); i++) #define FOR(i, a, b) for (int i = a; i < (b); i++) #define FORS(i, a, b) for (int i = a; i <= (b); i++) // for container x #define...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
160
#include <iostream> using namespace std; int main() { string s; if (s[0] >= 'A' && s[0] <= 'Z') cout << "A" << endl; else cout << "a" << endl; return 0; }
#include <iostream> using namespace std; int main() { string s; cin >> s; if (s[0] >= 'A' && s[0] <= 'Z') cout << "A" << endl; else 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
55
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; using pii = pair<int, int>; using pll = pair<ll, ll>; const int MAXN = 1e5 + 5; const int MOD = 1e9 + 7; const int INF = 0x3f3f3f3f; const long long int LLINF = 0x3f3f3f3f3f3f3f3f; const double EPS = 1e-9; #define NMAX ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; using pii = pair<int, int>; using pll = pair<ll, ll>; const int MAXN = 1e5 + 5; const int MOD = 1e9 + 7; const int INF = 0x3f3f3f3f; const long long int LLINF = 0x3f3f3f3f3f3f3f3f; const double EPS = 1e-9; #define NMAX ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
126
#include <bits/stdc++.h> #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define all(x) (x).begin(), (x).end()...
#include <bits/stdc++.h> #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define all(x) (x).begin(), (x).end()...
[["-", 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
495
#include <bits/stdc++.h> using namespace std; main() { #ifdef HOME freopen("input.txt", "r", stdin); #endif // HOME ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); char a; cin >> a; if ('A' <= a && a <= 'Z') cout << 'a'; else cout << 'A'; return 0; }
#include <bits/stdc++.h> using namespace std; main() { #ifdef HOME freopen("input.txt", "r", stdin); #endif // HOME ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); char a; cin >> a; if ('A' <= a && a <= 'Z') cout << 'A'; else cout << 'a'; return 0; }
[["-", 0, 57, 64, 1, 0, 16, 12, 103, 0, 125], ["+", 0, 57, 64, 1, 0, 16, 12, 103, 0, 125], ["-", 75, 76, 0, 1, 0, 16, 12, 103, 0, 125], ["+", 75, 76, 0, 1, 0, 16, 12, 103, 0, 125]]
1
86
#include <bits/stdc++.h> typedef double D; typedef long long int LL; typedef long double LD; #define OR || #define AND && #define nl '\n' #define S string #define inf INT_MAX #define SQR(a) (a) * (a) #define pb push_back #define GCD(a, b) __gcd(a, b) #define MOD 1000000007 #define PI 2.0 * acos(0.0) #define LCM(a, b) ...
#include <bits/stdc++.h> typedef double D; typedef long long int LL; typedef long double LD; #define OR || #define AND && #define nl '\n' #define S string #define inf INT_MAX #define SQR(a) (a) * (a) #define pb push_back #define GCD(a, b) __gcd(a, b) #define MOD 1000000007 #define PI 2.0 * acos(0.0) #define LCM(a, b) ...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["+", 64, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104]]
1
225
#include <bits/stdc++.h> using namespace std; #define int long long #define w(x) \ int x; \ cin >> x; \ while (...
#include <bits/stdc++.h> using namespace std; #define int long long #define w(x) \ int x; \ cin >> x; \ while (...
[["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
167
#include <bits/stdc++.h> #include <iostream> using namespace std; void test_case() { string s; cin >> s; if (s[0] >= 'a' && s[0] <= 'z') cout << "A" << endl; else cout << "a" << endl; } int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); // int t; // cin >> t; // while (t--) ...
#include <bits/stdc++.h> #include <iostream> using namespace std; void test_case() { string s; cin >> s; if (s[0] >= 'a' && s[0] <= 'z') cout << "a" << endl; else cout << "A" << endl; } int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); // int t; // cin >> t; // while (t--) ...
[["-", 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
95