buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
#include <bits/stdc++.h> #define MEM 100006 #define sanic ios_base::sync_with_stdio(0) #define pb push_back using namespace std; typedef long long ll; typedef pair<ll, ll> pii; const ll MOD = 1e9 + 7; char c; int main() { sanic; cin.tie(0); cin >> c; if (90 <= c) cout << 'a'; else cout << 'A'; }
#include <bits/stdc++.h> #define MEM 100006 #define sanic ios_base::sync_with_stdio(0) #define pb push_back using namespace std; typedef long long ll; typedef pair<ll, ll> pii; const ll MOD = 1e9 + 7; char c; int main() { sanic; cin.tie(0); cin >> c; // cout << (int)c; if (97 <= c) cout << 'a'; else ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 13]]
1
78
#include <stdio.h> int main(void) { char a; if (scanf("%c", &a)) { char ans; if (a >= 'A') { ans = 'A'; } else { ans = 'a'; } printf("%c\n", ans); } }
#include <stdio.h> int main(void) { char a; if (scanf("%c", &a)) { char ans; if (a >= 'a') { ans = 'a'; } else { ans = 'A'; } printf("%c\n", ans); } }
[["-", 0, 57, 15, 23, 0, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 23, 0, 16, 12, 103, 0, 125], ["-", 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]]
0
64
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { /* Input */ int alpha; cin >> alpha; /* Main Logic */ if (isupper(alpha)) cout << 'A' << endl; else cout << 'a' << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { /* Input */ char alpha; cin >> alpha; /* Main Logic */ if (isupper(alpha)) { cout << 'A' << endl; } else { cout << 'a' << endl; } return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
1
56
#include <iostream> using ll = long long; #define rep(i, a, b) for (ll i = a; i < ll(b); i++) #define repr(i, a, b) for (ll i = a; i >= ll(b); i--) #define endl "\n" #define ALL(x) x.begin(), x.end() using namespace std; char a; int main() { cin >> a; if (a < 'A') cout << 'a' << endl; else cout << 'A' <<...
#include <iostream> using ll = long long; #define rep(i, a, b) for (ll i = a; i < ll(b); i++) #define repr(i, a, b) for (ll i = a; i >= ll(b); i--) #define endl "\n" #define ALL(x) x.begin(), x.end() using namespace std; char a; int main() { cin >> a; if (a < 'a') cout << 'A' << endl; else cout << 'a' <<...
[["-", 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, 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
82
#include <iostream> #include <math.h> #include <time.h> using namespace std; int main() { char a; cin >> a; if ('A' <= a && a <= 'Z') { cout << a << endl; } else { cout << a << endl; } }
#include <iostream> #include <math.h> #include <time.h> using namespace std; int main() { char a; cin >> a; if ('A' <= a && a <= 'Z') { cout << 'A' << endl; } else { cout << 'a' << endl; } }
[["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
54
#include <iostream> #include <string.h> using namespace std; int main() { string alphabet; cin >> alphabet; if (alphabet[0] > 'A' && alphabet[0] < 'Z') { cout << "A" << endl; } if (alphabet[0] > 'a' && alphabet[0] < 'z') { cout << "a" << endl; } }
#include <iostream> #include <string.h> using namespace std; int main() { string alphabet; cin >> alphabet; if (alphabet[0] >= 'A' && alphabet[0] <= 'Z') { cout << "A" << endl; } if (alphabet[0] >= 'a' && alphabet[0] <= 'z') { cout << "a" << endl; } }
[["-", 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
81
#include <stdio.h> int main(void) { int a; scanf("%d", &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\n"); } if ((a >= 'A') && (a <= 'Z')) { printf("A\n"); } return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 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, 44]]
0
79
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { char a; cin >> a; if (isupper(a)) cout << 'A' << endl; else cout << 'B' << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) 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, 125], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
51
#include <stdio.h> int main(void) { char a; scanf("%c", &a); if (a >= 65 && a <= 97) printf("A\n"); else printf("a\n"); return 0; }
#include <stdio.h> int main(void) { char a; scanf("%c", &a); if (a >= 65 && a < 97) printf("A\n"); else printf("a\n"); return 0; }
[["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18]]
0
52
#include <ctype.h> #include <stdio.h> #include <stdlib.h> int main() { char S; scanf("%c", &S); if (isupper(S)) { printf("%c", 'A'); } if (islower(S)) { printf("%c", 'A'); } return 0; }
#include <ctype.h> #include <stdio.h> #include <stdlib.h> int main() { char S; scanf("%c", &S); if (isupper(S)) { printf("%c", 'A'); } if (islower(S)) { printf("%c", 'a'); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 103, 0, 125], ["+", 0, 1, 0, 2, 3, 4, 0, 103, 0, 125]]
0
68
#include <stdio.h> int main() { char s; scanf("%c", &s); if ('A' <= s <= 'Z') { printf("A"); } else { printf("a"); } return 0; }
#include <stdio.h> int main() { char s; scanf("%c", &s); if ('A' <= s && s <= 'Z') { printf("A"); } else { printf("a"); } return (0); }
[["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 37, 0, 23, 0, 24], ["+", 0, 14, 8, 9, 0, 37, 0, 23, 0, 25]]
0
55
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; #define debug(x) cout << '>' << #x << ':' << x << endl; #define loop(i, n) for (int i = 0; i < (int)(n); i++) #define foi(i, k, n) for (int i = (k); i < (int)(n); i += 1) #define fod(i, n, k) for (int i ...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; #define debug(x) cout << '>' << #x << ':' << x << endl; #define loop(i, n) for (int i = 0; i < (int)(n); i++) #define foi(i, k, n) for (int i = (k); i < (int)(n); i += 1) #define fod(i, n, k) for (int i ...
[["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
304
#include <bits/stdc++.h> using namespace std; using ll = long long; using vi = vector<int>; using vll = vector<long long>; using vvi = vector<vector<int>>; using pii = pair<int, int>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define pb push_back int main() { char a; cin >> a; if ('a' <= a && a <= 'z...
#include <bits/stdc++.h> using namespace std; using ll = long long; using vi = vector<int>; using vll = vector<long long>; using vvi = vector<vector<int>>; using pii = pair<int, int>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define pb push_back int main() { char a; cin >> a; if ('a' <= a && a <= 'z...
[["-", 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
105
A = input() print('A') if A.issuper() else print('a')
A = input() print('A') if A.isupper() else print('a')
[["-", 0, 1, 0, 41, 0, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 41, 0, 652, 63, 319, 319, 22]]
5
24
<?php $alphabet = trim(fgets(STDIN)); if(preg_match('/[A-Z]/', $alphabet)) { echo "A"; } else if(preg_match('/[a-z]/', $alpabet)) { echo "a"; }
<?php $alphabet = trim(fgets(STDIN)); if(preg_match('/[A-Z]/', $alphabet)) { echo "A"; } else if(preg_match('/[a-z]/', $alphabet)) { echo "a"; }
[["-", 0, 613, 3, 3, 0, 28, 0, 606, 0, 141], ["+", 0, 613, 3, 3, 0, 28, 0, 606, 0, 141]]
6
51
#include <bits/stdc++.h> using namespace std; #define rep(i, n) \ for (int i = 0; i < (int)(n); i++) \ ; #define _GLIBCXX_DEBUG #define _LIBCPP_DEBUG 0 int main() { char c; cin >> c; if (c <= 'Z') { ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) \ for (int i = 0; i < (int)(n); i++) \ ; #define _GLIBCXX_DEBUG #define _LIBCPP_DEBUG 0 int main() { char c; cin >> c; if (c <= 'Z') { ...
[["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
62
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { char C; cin >> C; if (C >= 'A' && C <= 'A') cout << 'A' << endl; else cout << 'a' << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { char C; cin >> C; if (C >= 'A' && C <= 'Z') cout << 'A' << endl; else cout << 'a' << endl; }
[["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
56
import sys def input(): return sys.stdin.readline().rstrip() def main(): s = input() if 'a' < s and s < 'z': print("a") else: print("A") if __name__=='__main__': main()
import sys def input(): return sys.stdin.readline().rstrip() def main(): s = input() if 'a' <= s and s <= 'z': print("a") else: print("A") if __name__=='__main__': main()
[["-", 8, 196, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 8, 196, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 19]]
5
66
#define _CRT_SECURE_NO_WARNINGS #include <ctype.h> #include <stdio.h> int main(void) { char a; scanf("%c", &a); if (a >= 'A' && a <= 'Z') { a = 'a'; } else if (a <= 'z' && a >= 'a') { a = 'A'; } printf("%c", a); return 0; }
#define _CRT_SECURE_NO_WARNINGS #include <ctype.h> #include <stdio.h> int main(void) { char a; scanf("%c", &a); if (a >= 'A' && a <= 'Z') { a = 'A'; } else if (a <= 'z' && a >= 'a') { a = 'a'; } printf("%c", a); return 0; }
[["-", 64, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["+", 64, 9, 0, 1, 0, 11, 12, 103, 0, 125]]
0
83
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (isupper(c)) cout << 'a' << endl; else cout << 'A' << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (islower(c)) cout << 'a' << endl; else cout << 'A' << endl; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 2, 63, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 2, 63, 22]]
1
46
#include <bits/stdc++.h> #include <set> using namespace std; using pii = pair<int, int>; using pll = pair<long long, long long>; const long long INF = 1 << 29; const int MOD = 1000000007; long long ruizyou(long long m, long long n) { if (m == 0) return 0; if (m == 1) return 1; long long ans = 1; long l...
#include <bits/stdc++.h> #include <set> using namespace std; using pii = pair<int, int>; using pll = pair<long long, long long>; const long long INF = 1 << 29; const int MOD = 1000000007; long long ruizyou(long long m, long long n) { if (m == 0) return 0; if (m == 1) return 1; long long ans = 1; long l...
[["-", 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, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 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, ...
1
1,162
#include <stdio.h> int main() { int a; scanf("%d", &a); if (a >= 'a' && a <= 'z') { puts("a"); } else if (a >= 'A' && a <= 'Z') { puts("A"); } return 0; }
#include <stdio.h> int main() { char a; scanf("%c", &a); if (a >= 'a' && a <= 'z') { puts("a"); } else if (a >= 'A' && a <= 'Z') { puts("A"); } return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
71
#include <stdio.h> int main() { char a; scanf("%c"); 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; }
[["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22]]
1
70
#include <stdio.h> int main() { int alphabet, lowercase, uppercase; scanf("%d", &alphabet); if (alphabet >= 'a' && alphabet <= 'z') { printf("a"); } else { printf("A"); } return 0; }
#include <stdio.h> int main() { int alphabet, lowercase, uppercase; scanf("%s", &alphabet); if (alphabet >= 'a' && alphabet <= 'z') { puts("a"); } else { puts("A"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 57, 64, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 2, 63, 22], ["-", 75, 76, 0, 9, 0, 1, 0, 2, 63, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 2, 63, 22]]
1
61
#include <bits/stdc++.h> #include <functional> // for less #include <iostream> #define ll long long #define ull unsigned long long #define ld long double #define all(ar) ar.begin(), ar.end() #define mp make_pair #define sot(bello) bello.begin(), bello.end() #define bitc __builtin_popcountl #define fr(i, a, b) for (int ...
#include <bits/stdc++.h> #include <functional> // for less #include <iostream> #define ll long long #define ull unsigned long long #define ld long double #define all(ar) ar.begin(), ar.end() #define mp make_pair #define sot(bello) bello.begin(), bello.end() #define bitc __builtin_popcountl #define fr(i, a, b) for (int ...
[["-", 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,568
#include "bits/stdc++.h" #include <cstring> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; int main() { char s; cin >> s; if ('A' < s && s < 'Z') { cout << 'A'; return 0; } else { cout << 'a'; return 0; } return 0; }
#include "bits/stdc++.h" #include <cstring> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; int main() { char s; cin >> s; if ('A' <= s && s <= 'Z') { cout << 'A'; return 0; } else { cout << 'a'; return 0; } 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
76
#include <bits/stdc++.h> using namespace std; int main() { char alpha; cin >> alpha; if ('a' <= alpha && 'z' >= alpha) cout << "A" << endl; else cout << "a" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { char alpha; cin >> alpha; if ('a' <= alpha && 'z' >= alpha) 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
50
#include <iostream> using namespace std; int main() { char a; cin >> a; if (a >= 'A' && a <= 'Z') { cout << 'A' << endl; } else { cout << 'B' << endl; } }
#include <iostream> using namespace std; int main() { char a; cin >> a; if (a >= 'A' && a <= 'Z') { 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
54
N = input() A, a = 0, 0 for i in range(65, 90): if i==ord(N): A += 1 for i in range(97, 123): if i==ord(N): a += 1 if A==1: print('A') if a==1: print('a')
N = input() A, a = 0, 0 for i in range(65, 91): if i==ord(N): A += 1 for i in range(97, 123): if i==ord(N): a += 1 if A==1: print('A') if a==1: print('a')
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]]
5
76
#include <bits/stdc++.h> using namespace std; int main() { char ch; cin >> ch; if (ch >= 'A' && ch < 'Z') cout << "A"; if (ch >= 'a' && ch < 'z') cout << "a"; }
#include <bits/stdc++.h> using namespace std; int main() { char ch; cin >> ch; if (ch >= 'A' && ch <= 'Z') cout << "A"; if (ch >= 'a' && ch <= 'z') cout << "a"; }
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]]
1
59
#include <iostream> using namespace std; int main() { char s; cin >> s; if (isupper(s) == 1) { cout << "A" << endl; } else cout << "a" << endl; return 0; }
#include <iostream> using namespace std; int main() { char s; cin >> s; if (isupper(s) != 0) { cout << "A" << endl; } else cout << "a" << endl; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
50
#include <bits/stdc++.h> using namespace std; #define rep(i, a, n) for (int i = a; i < n; i++) #define per(i, a, n) for (int i = n - 1; i >= a; i--) #define pb push_back #define mp make_pair #define all(x) (x).begin(), (x).end() #define fi first #define se second #define SZ(x) ((int)(x).size()) #define fast ...
#include <bits/stdc++.h> using namespace std; #define rep(i, a, n) for (int i = a; i < n; i++) #define per(i, a, n) for (int i = n - 1; i >= a; i--) #define pb push_back #define mp make_pair #define all(x) (x).begin(), (x).end() #define fi first #define se second #define SZ(x) ((int)(x).size()) #define fast ...
[["-", 15, 339, 51, 16, 31, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 31, 16, 12, 103, 0, 125]]
1
256
/* The ASCII value of the lowercase alphabet is from 97 to 122. And, the ASCII * value of the uppercase alphabet is from 65 to 90.*/ #include <bits/stdc++.h> #include <math.h> using namespace std; int main() { char abc; cin >> abc; if (abc >= 'a' || abc <= 'z') { cout << 'a'; } else { cout << 'A'; ...
/* The ASCII value of the lowercase alphabet is from 97 to 122. And, the ASCII * value of the uppercase alphabet is from 65 to 90.*/ #include <bits/stdc++.h> #include <math.h> using namespace std; int main() { char abc; cin >> abc; if (abc >= 'a' && abc <= 'z') { cout << 'a'; } else { cout << 'A'; ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
56
#include <bits/stdc++.h> using namespace std; using ll = long long int; #define REP(i, n) for (ll i = 0; i < (n); i++) #define REP2(i, x, n) for (ll i = x; i < (n); i++) #define REP3(i, x, n) for (ll i = x; i > (n); i--) #define zero_pad(num) setfill('0') << std::right << setw(num) #define space_pad(num) setfill(' ') <...
#include <bits/stdc++.h> using namespace std; using ll = long long int; #define REP(i, n) for (ll i = 0; i < (n); i++) #define REP2(i, x, n) for (ll i = x; i < (n); i++) #define REP3(i, x, n) for (ll i = x; i > (n); i--) #define zero_pad(num) setfill('0') << std::right << setw(num) #define space_pad(num) setfill(' ') <...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]]
1
160
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; cout << (c >= 65 && c <= 90 ? 'A' : 'b') << "\n"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; cout << (c >= 65 && c <= 90 ? 'A' : 'a') << "\n"; return 0; }
[["-", 31, 16, 12, 23, 0, 41, 75, 103, 0, 125], ["+", 31, 16, 12, 23, 0, 41, 75, 103, 0, 125]]
1
46
#include <bits/stdc++.h> using namespace std; int main(void) { char ch; cin >> ch; if (ch >= 'A' && ch <= 'Z') { cout << "a"; } else { cout << "A"; } }
#include <bits/stdc++.h> using namespace std; int main(void) { char ch; cin >> ch; if (ch >= 'A' && ch <= 'Z') { cout << "A"; } else { cout << "a"; } }
[["-", 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
51
#include <stdio.h> int main(void) { char s; scanf("%c", s); if ((s >= 'A') && (s <= 'Z')) { printf("A"); } else { printf("a"); } return 0; }
#include <stdio.h> int main(void) { char s; scanf("%c", &s); if ((s >= 'A') && (s <= 'Z')) { printf("A\n"); } else { printf("a\n"); } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
61
#include <iostream> using namespace std; int main() { char s; cin >> s; int a = s; if (a >= 65) cout << "a" << endl; else cout << "A" << endl; return 0; }
#include <iostream> using namespace std; int main() { char s; cin >> s; int a = s; if (a >= 97) 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
50
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if ('A' <= c <= 'Z') cout << 'A'; else cout << 'a'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c >= 'A' && c <= 'Z') cout << 'A'; else cout << 'a'; 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
47
#include <bits/stdc++.h> using namespace std; #define rep(i, k, n) for (int i = k; i < n; i++) #define repp(i, k, n) for (int i = k; i <= n; i++) #define per(i, k, n) for (int i = k; i >= n; i--) #define int long long #define all(a) a.begin(), a.end() #define pb push_back typedef long long ll; typedef pair<int, int> ...
#include <bits/stdc++.h> using namespace std; #define rep(i, k, n) for (int i = k; i < n; i++) #define repp(i, k, n) for (int i = k; i <= n; i++) #define per(i, k, n) for (int i = k; i >= n; i--) #define int long long #define all(a) a.begin(), a.end() #define pb push_back typedef long long ll; typedef pair<int, int> ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
270
#include <bits/stdc++.h> using namespace std; int main() { char ch; cin >> ch; if (ch >= 'A' && ch <= 'Z') cout << "A" << endl; else cout << "B" << endl; }
#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; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
50
letter = str(input()) if letter.islower is True: print('a') else: print('A')
letter = str(input()) if letter.islower() is 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 <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char str; scanf("%c", &str); int d = str; if (d > 65 && d < 92) printf("A"); else printf("a"); return 0; }
#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char str; scanf("%c", &str); int d = str; if (d >= 65 && d <= 92) printf("A"); else printf("a"); 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
60
a = str(input()) if a.upper(): print('A') elif a.lower(): print('a')
a=input() if a.isupper(): print('A') elif a.lower(): 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, 656, 0, 57, 15, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 57, 15, 652, 63, 319, 319, 22]]
5
34
function Main(input) { const a = input; if (isUpperCase(a)) { console.log('A'); } else { console.log('a'); } } function isUpperCase(str) { return str.match(/^[A-Z]+$/); } //*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します) Main(require("fs").readFileSync("/dev/stdin", "utf8"));
function Main(input) { const a = input.trim(); if (isUpperCase(a)) { console.log('A'); } else { console.log('a'); } } function isUpperCase(str) { return str.match(/^[A-Z]+$/); } //*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します) Main(require("fs").readFileSync("/dev/stdin", "utf8"));
[["+", 0, 570, 0, 200, 51, 2, 63, 558, 0, 131], ["+", 0, 570, 0, 200, 51, 2, 63, 558, 559, 560], ["+", 0, 570, 0, 200, 51, 2, 3, 3, 0, 24], ["+", 0, 570, 0, 200, 51, 2, 3, 3, 0, 25]]
2
81
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if ((int)(a - 'A') < 0) { cout << 'a' << endl; } else { cout << 'A' << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if ((int)(a - 'a') < 0) { cout << 'A' << endl; } else { cout << 'a' << endl; } return 0; }
[["-", 31, 74, 51, 23, 0, 16, 12, 103, 0, 125], ["+", 31, 74, 51, 23, 0, 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
58
def main(): a = input() if ord(a) < ord('A'): print('a') else: print('A') main()
def main(): a = input() if ord(a) > ord('Z'): print('a') else: print('A') main()
[["-", 0, 14, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 667, 47], ["-", 15, 666, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 15, 666, 0, 652, 3, 4, 0, 557, 0, 6]]
5
40
#include <stdio.h> int main() { putchar(((getchar() - 'a') / 26) ? 'A' : 'a'); }
#include <stdio.h> int main() { putchar(((getchar() - 'A') / 26) ? 'a' : 'A'); }
[["-", 0, 16, 31, 23, 0, 16, 12, 103, 0, 125], ["+", 0, 16, 31, 23, 0, 16, 12, 103, 0, 125], ["-", 0, 2, 3, 4, 0, 41, 64, 103, 0, 125], ["+", 0, 2, 3, 4, 0, 41, 64, 103, 0, 125], ["-", 0, 2, 3, 4, 0, 41, 75, 103, 0, 125], ["+", 0, 2, 3, 4, 0, 41, 75, 103, 0, 125]]
0
33
#include <stdio.h> int main() { char a; scanf("%c", &a); if ((int)a <= 97) printf("A\n"); else printf("a\n"); return 0; }
#include <stdio.h> int main() { char a; scanf("%c", &a); if ((int)a < 97) printf("A\n"); else printf("a\n"); return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18]]
0
50
#include <ctype.h> #include <stdio.h> #define LENGE 128 int main(void) { char str[LENGE]; char n; scanf("%s", &n); if (isupper(n)) { printf("A\n"); } if (islower(n)) { printf("B\n"); } }
#include <ctype.h> #include <stdio.h> #define LENGE 128 int main(void) { char str[LENGE]; char n; scanf("%s", &n); if (isupper(n)) { printf("A\n"); } if (islower(n)) { printf("a\n"); } }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
67
// poland.cpp : このファイルには 'main' // 関数が含まれています。プログラム実行の開始と終了がそこで行われます。 // #include <iostream> #include <istream> #include <stack> double read_and_evaluate(std::istream &ins) { std::stack<char> operations; char tmp; while (true) { char c = ins.get(); if (c >= '0' && c <= '9') { operations.push(c); ...
// poland.cpp : このファイルには 'main' // 関数が含まれています。プログラム実行の開始と終了がそこで行われます。 // #include <iostream> #include <istream> #include <stack> double read_and_evaluate(std::istream &ins) { std::stack<char> operations; char tmp; while (true) { char c = ins.get(); if (c >= '0' && c <= '9') { operations.push(c); ...
[["+", 75, 76, 0, 1, 0, 16, 31, 343, 345, 348], ["+", 75, 76, 0, 1, 0, 16, 31, 343, 0, 349], ["+", 75, 76, 0, 1, 0, 16, 31, 343, 141, 22], ["+", 0, 57, 75, 76, 0, 1, 0, 16, 17, 151]]
1
178
if input().isupper: print("A") else: print("a")
if input().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
21
if 'a' < input() < 'z':print('a') else:print('A')
if 'a' <= input() <= 'z':print('a') else:print('A')
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]]
5
27
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll INF = 9223372036854775807; const ll MOD = 1000000007; #define pb push_back #define mp make_pair #define all(v) v.begin(), v.end() #define o0(a) cout << a << " " #define o1(a) cout << a << "\n" #define o2(a, b) cout << a << " " << b << "\n" #de...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll INF = 9223372036854775807; const ll MOD = 1000000007; #define pb push_back #define mp make_pair #define all(v) v.begin(), v.end() #define o0(a) cout << a << " " #define o1(a) cout << a << "\n" #define o2(a, b) cout << a << " " << b << "\n" #de...
[["-", 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, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
612
N=input() if N.isupper()=="TRUE": print("A") else: print("a")
N=input() if N.isupper()==True: print("A") else: print("a")
[["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6], ["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 146]]
5
30
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; c = (c >= 65) ? 'A' : 'a'; cout << c << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; c = (c >= 97) ? 'a' : 'A'; cout << c << endl; return 0; }
[["-", 0, 11, 12, 41, 15, 23, 0, 16, 12, 13], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 12, 13], ["-", 0, 1, 0, 11, 12, 41, 64, 103, 0, 125], ["+", 0, 1, 0, 11, 12, 41, 64, 103, 0, 125], ["-", 0, 1, 0, 11, 12, 41, 75, 103, 0, 125], ["+", 0, 1, 0, 11, 12, 41, 75, 103, 0, 125]]
1
44
N = input() if N.isupper(): print('A') else: print(a)
N = input() if N.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
24
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c - 'Z' < 0) { cout << 'A' << endl; } else { cout << 'a' << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c - 'Z' <= 0) { cout << 'A' << endl; } else { cout << 'a' << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
50
#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; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 106], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 98]]
0
73
#include <stdio.h> #include <string.h> int main() { char x; scanf("%c", &x); if (x > 96) { printf("B\n"); } else { printf("A\n"); } }
#include <stdio.h> #include <string.h> int main() { char x; scanf("%c", &x); if (x > 96) { printf("a\n"); } else { printf("A\n"); } }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
50
#include <iostream> using namespace std; int main() { char a; cin >> a; char ans = 'a'; if (a >= 'A' && a <= 'A') ans = 'A'; cout << ans << endl; return 0; }
#include <iostream> using namespace std; int main() { char a; cin >> a; char ans = 'a'; if (a >= 'A' && a <= 'Z') ans = 'A'; cout << ans << endl; return 0; }
[["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
55
#include <iostream> int main() { char character; std::cin >> character; int x = int(character); if (x < 90) { std::cout << "A" << std::endl; } else { std::cout << "a" << std::endl; } }
#include <iostream> int main() { char character; std::cin >> character; int x = int(character); if (x < 91) { std::cout << "A" << std::endl; } else { std::cout << "a" << std::endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
60
alpha = input() code = ord(alpha) if code >= 97 and code < 122: print("a") else: print("A")
alpha = input() code = ord(alpha) if code >= 97 and code <= 122: print("a") else: print("A")
[["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19]]
5
34
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (int(c) > 80) cout << "a" << endl; else { cout << "A" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (int(c) > 94) cout << "a" << endl; else { cout << "A" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
47
def main(): s = input() ko = [i for i in range(ord('a'),ord('z')+1)] if s in ko: print('a') else: print('A') if __name__ == "__main__": main()
def main(): s = input() ko = [i for i in range(ord('a'),ord('z')+1)] if ord(s) in ko: print('a') else: print('A') if __name__ == "__main__": main()
[["+", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]]
5
65
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <limits.h> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #include <stdio.h> #include <stdlib.h> #define rep(i, n) for (ll i = 0; i < (ll)n; i++) #define swap(a,...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <limits.h> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #include <stdio.h> #include <stdlib.h> #define rep(i, n) for (ll i = 0; i < (ll)n; i++) #define swap(a,...
[["-", 0, 57, 15, 339, 51, 16, 31, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 31, 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
152
#include <stdio.h> int main(void) { int i; char moji; scanf("%c", &moji); if ((moji >= 'a') && (moji <= 'z')) { printf("A"); } else if ((moji >= 'A') && (moji <= 'Z')) { printf("a"); } return 0; }
#include <stdio.h> int main(void) { int i; char moji; scanf("%c", &moji); if ((moji >= 'a') && (moji <= 'z')) { printf("a"); } else if ((moji >= 'A') && (moji <= 'Z')) { 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
83
// CPP program for finding number of divisor #include <iostream> // #include <bits/stdc++.h> using namespace std; #define ll long long // driver program int main() { char c; cin >> c; if (c <= 97) cout << "a"; else cout << "A"; return 0; }
// CPP program for finding number of divisor #include <iostream> // #include <bits/stdc++.h> using namespace std; #define ll long long // driver program int main() { char c; cin >> c; if (c >= 97) cout << "a"; else cout << "A"; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
47
#include <ctype.h> #include <iostream> using namespace std; int main(void) { char a; cin >> a; bool oomoji = toupper(a); if (oomoji) { cout << "A" << endl; } else { cout << "a" << endl; } }
#include <ctype.h> #include <iostream> using namespace std; int main(void) { char a; cin >> a; bool oomoji = isupper(a); if (oomoji) { cout << "A" << endl; } else { cout << "a" << endl; } }
[["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22]]
1
55
#include <iostream> using namespace std; int main() { char c; cin >> c; if (c >= 65 || c <= 90) cout << "A" << endl; else cout << "a" << endl; return 0; }
#include <iostream> using namespace std; int main() { char c; cin >> c; if (c >= 65 && c <= 90) { 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], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46]]
1
49
a = input() if a.lower() == a: print('A') else: print('a')
a = input() if a.isupper(): print('A') else: print('a')
[["-", 0, 57, 15, 666, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 57, 15, 652, 63, 319, 319, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]]
5
28
#include <bits/stdc++.h> using namespace std; int main() { char ch; cin >> ch; if ((int)ch > 97) { cout << 'a'; } else cout << 'A'; }
#include <bits/stdc++.h> using namespace std; int main() { char ch; cin >> ch; if ((int)ch < 97) { cout << 'A'; } else cout << 'a'; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["-", 64, 9, 0, 1, 0, 16, 12, 103, 0, 125], ["+", 64, 9, 0, 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
43
s = input() if s == s.upper: print("A") else: print("a")
s = input() if s == s.upper(): 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
if input().isUpper(): print('A') else: print('a')
if input().isupper(): print('A') else: print('a')
[["-", 0, 656, 0, 57, 15, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 57, 15, 652, 63, 319, 319, 22]]
5
23
alf=input() if 'alf'.isupper(): print('A') else: print('a')
alf=input() if alf.isupper(): print('A') else: print('a')
[["-", 0, 57, 15, 652, 63, 319, 500, 557, 0, 654], ["-", 0, 57, 15, 652, 63, 319, 500, 557, 0, 655]]
5
28
import re a = str(input()) m = re.match("[A-B]", a) if m: print("A") else: print("a")
import re # ABC171 # A alphabet a = str(input()) m = re.match("[A-Z]", a) if m: print("A") else: print("a")
[["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6]]
5
39
#include <bits/stdc++.h> #define two(a) (1 << (a)) #define LINF (1ll << 61) #define EPS (1e-14) #define Lshift(a, b) ((a) << (b)) #define Rshift(a, b) ((a) >> (b)) #define rep(a, b) for (a = 0; a < b; a++) #define xrep(a, b, c) for (a = b; a < c; a++) #define INF (1 << 29) #define sz(a) int(a.size()) #define mset(x) me...
#include <bits/stdc++.h> #define two(a) (1 << (a)) #define LINF (1ll << 61) #define EPS (1e-14) #define Lshift(a, b) ((a) << (b)) #define Rshift(a, b) ((a) >> (b)) #define rep(a, b) for (a = 0; a < b; a++) #define xrep(a, b, c) for (a = b; a < c; a++) #define INF (1 << 29) #define sz(a) int(a.size()) #define mset(x) me...
[["-", 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, 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
165
def main(istr, ostr): s = istr.readline().strip() if 'a' <= s and s <= 'z': print('a', file=ostr) print('A', file=ostr) if __name__ == "__main__": import sys main(sys.stdin, sys.stdout)
def main(istr, ostr): s = istr.readline().strip() if 'a' <= s and s <= 'z': print('a', file=ostr) else: print('A', file=ostr) if __name__ == "__main__": import sys main(sys.stdin, sys.stdout)
[["+", 0, 14, 8, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 14, 8, 196, 0, 57, 75, 76, 0, 102]]
5
71
alpa = str(input()) if alpa.isupper(): print("A") else : print("B")
alpa = str(input()) if alpa.isupper(): 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
29
a=input() if(a.islower()==True): print("A") else: print("a")
a=input() if(a.islower()==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
30
#include <cmath> #include <iostream> using namespace std; int main() { char c; scanf("%c", &c); printf("%c", isupper(c) ? c - 'A' + 'a' : 'a'); return 0; }
#include <cmath> #include <iostream> using namespace std; int main() { char c; scanf("%c", &c); printf("%c", isupper(c) ? 'A' : 'a'); return 0; }
[["-", 3, 4, 0, 41, 64, 16, 31, 16, 31, 22], ["-", 3, 4, 0, 41, 64, 16, 31, 16, 17, 33], ["-", 0, 41, 64, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 2, 3, 4, 0, 41, 64, 16, 17, 72], ["-", 3, 4, 0, 41, 64, 16, 12, 103, 0, 104], ["-", 3, 4, 0, 41, 64, 16, 12, 103, 0, 125]]
1
56
s = input() if 65<=ord(s)<=90: print(A) else: print(a)
s = input() if 65<=ord(s)<=90: 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 <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<int, int> P; typedef pair<ll, ll> l_l; typedef vector<int> vi; typedef vector<ll> vl; typedef vector<P> vp; typedef vector<l_l> vpl; typedef vector<string> vs; typedef pair<l_l, ll> lll; #define pb push_back #define...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<int, int> P; typedef pair<ll, ll> l_l; typedef vector<int> vi; typedef vector<ll> vl; typedef vector<P> vp; typedef vector<l_l> vpl; typedef vector<string> vs; typedef pair<l_l, ll> lll; #define pb push_back #define...
[["-", 31, 74, 51, 23, 0, 16, 12, 103, 0, 125], ["+", 31, 74, 51, 23, 0, 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
281
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) #define repr(i, n) for (int i = n - 1; i >= 0; i--) #define MAX(a, b) a = a > b ? a : b #define MIN(a, b) a = a < b ? a : b #define REP(i, x, n) for (int i = x; i < n; i++) #define REPR(i, x, n) for (int i = n - 1; i >= x; i--) #define pb push_back ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) #define repr(i, n) for (int i = n - 1; i >= 0; i--) #define MAX(a, b) a = a > b ? a : b #define MIN(a, b) a = a < b ? a : b #define REP(i, x, n) for (int i = x; i < n; i++) #define REPR(i, x, n) for (int i = n - 1; i >= x; i--) #define pb push_back ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
721
a = input() if a.isupper(): print(A) else: print(a)
a = input() if a.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
22
x = input() print('A') if isupper(x) else print('a')
x = input() print('A') if x.isupper() else print('a')
[["+", 0, 1, 0, 41, 0, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 41, 0, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 41, 0, 652, 3, 4, 0, 22]]
5
23
#include <stdio.h> int main() { char x; scanf("%c", &x); if (x >= 'A' && x <= 'Z') { printf("A"); } else { printf("B"); } return 0; }
#include <stdio.h> int main() { char abjad; scanf("%c", &abjad); if (abjad >= 'A' && abjad <= 'Z') { printf("A"); } else { printf("a"); } return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 23,...
0
57
#include <bits/stdc++.h> #include <bitset> #include <iostream> #include <stdio.h> #include <stdlib.h> #include <string> typedef long long ll; using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) const int mod = 1000000007; // const int mod = 998244353; struct mint { ll x; // typedef long long ll; ...
#include <bits/stdc++.h> #include <bitset> #include <iostream> #include <stdio.h> #include <stdlib.h> #include <string> typedef long long ll; using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) const int mod = 1000000007; // const int mod = 998244353; struct mint { ll x; // typedef long long ll; ...
[["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
809
#include <bits/stdc++.h> using namespace std; int main() { string N; cin >> N; if (N == "a" || N == "b" || N == "c" || N == "d" || N == "e" || N == "f" || N == "g" || N == "h" || N == "i" || N == "j" || N == "k" || N == "l" || N == "m" || N == "n" || N == "o" || N == "p" || N == "q" || N == "r" || ...
#include <bits/stdc++.h> using namespace std; int main() { string N; cin >> N; if (N == "a" || N == "b" || N == "c" || N == "d" || N == "e" || N == "f" || N == "g" || N == "h" || N == "i" || N == "j" || N == "k" || N == "l" || N == "m" || N == "n" || N == "o" || N == "p" || N == "q" || N == "r" || ...
[["-", 15, 339, 51, 16, 12, 16, 12, 5, 0, 6], ["+", 15, 339, 51, 16, 12, 16, 12, 5, 0, 6]]
1
198
a = input() if 'a'<= a[0] : print("A") else: print("a")
a = input() if 'a'<= a[0] : 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
29
a = gets.to_s if a == a.upcase puts "A" else puts "B" end
a = gets.to_s if a == a.upcase puts "A" else puts "a" end
[["-", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6]]
4
21
#include <stdio.h> int main() { char a; scanf("%c", &a); if ('a' <= a && a <= 'z') { printf("'a'"); } else if ('A' <= a && a <= 'z') { printf("'A'"); } 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, 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, 44]]
0
71
a = input() ans = upper(a) if a == ans: print("A") else: print("a")
a = input() ans = a.upper() if a == ans: print("A") else: print("a")
[["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
30
s = input() if s.isuppper(): print("A") elif s.islower(): print("a")
s = input() if s.isupper(): print("A") elif s.islower(): print("a")
[["-", 0, 656, 0, 57, 15, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 57, 15, 652, 63, 319, 319, 22]]
5
31
puts (gets[0].match?(/a-z/) ? :a : :A)
puts (gets[0].match?(/[a-z]/) ? :a : :A)
[["-", 0, 754, 15, 652, 3, 4, 0, 575, 0, 6], ["+", 0, 754, 15, 652, 3, 4, 0, 575, 0, 6]]
4
18
data = input() if data >= "a" and data <= "z": print("a") elif data >= "A" and data <= "Z": print("a")
data = input() if data >= "a" and data <= "z": print("a") elif data >= "A" and data <= "Z": print("A")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
43
x = input() print('A' if ord(x) < ord('A') else 'a')
x = input() print('A' if ord(x) < ord('a') else 'a')
[["-", 0, 666, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 666, 0, 652, 3, 4, 0, 557, 0, 6]]
5
27
#include <iostream> using namespace std; int main() { char a; cin >> a; if (0 <= (a - 'A')) { cout << "A" << endl; } else { cout << "a" << endl; } return 0; }
#include <iostream> using namespace std; int main() { char a; cin >> a; if (isupper(a)) { cout << "A" << endl; } else { cout << "a" << endl; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 2, 63, 22], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 33], ["-", 51, 16, 12, 23, 0, 16, 12, 103, 0, 104], ["-", 51, 16, 12, 23, 0, 16, 12, 103, 0, 125]]
1
55
#include <bits/stdc++.h> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { string a; cin >> a; string dummy = a; transform(a.begin(), a.end(), a.begin(), ::tolower); string lower = a; string ...
#include <bits/stdc++.h> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { string a; cin >> a; string dummy = a; transform(a.begin(), a.end(), a.begin(), ::tolower); string lower = a; string ...
[["-", 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
135
/[A-Z]/.test(require("fs").readFileSync("/dev/stdin", "utf8")) ? "A" : "a"
console.log( /[A-Z]/.test(require("fs").readFileSync("/dev/stdin", "utf8")) ? "A" : "a");
[["+", 0, 493, 0, 1, 0, 2, 63, 558, 500, 22], ["+", 0, 493, 0, 1, 0, 2, 63, 558, 0, 131], ["+", 0, 493, 0, 1, 0, 2, 63, 558, 559, 560], ["+", 0, 493, 0, 1, 0, 2, 3, 3, 0, 24], ["+", 0, 493, 0, 1, 0, 2, 3, 3, 0, 25], ["+", 36, 36, 36, 36, 0, 493, 0, 1, 0, 35]]
2
32