buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
#include <stdio.h> int main(void) { char a; if (scanf("%s", &a) == 1) ; if (a <= 'z') { printf("a"); } else { printf("A"); } return 0; }
#include <stdio.h> int main(void) { char a; if (scanf("%s", &a) == 1) ; if (a >= 'a' && a <= 'z') { printf("a"); } else { printf("A"); } return 0; }
[["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 20], ["+", 15, 23, 0, 16, 31, 16, 12, 103, 0, 104], ["+", 15, 23, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 31, 22]]
0
57
#include <bits/stdc++.h> using namespace std; int main() { char ch; cin >> ch; if (ch >= 'A' && ch <= 'Z') cout << 'A' << endl; else if (ch >= 'a' && ch <= 'z') 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 if (ch >= 'a' && ch <= 'z') cout << 'a' << endl; }
[["-", 64, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 64, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
64
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String S = in.nextLine(); String str1 = new String(S); if (Character.isUpperCase(str1.charAt(0))) { String T = str1.toLowerCase(); System.out.println(T); } else ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String S = in.nextLine(); String str1 = new String(S); if (Character.isUpperCase(str1.charAt(0))) { String T = str1.toLowerCase(); System.out.println("A"); } els...
[["-", 64, 196, 0, 1, 0, 492, 3, 4, 0, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["-", 75, 196, 0, 1, 0, 492, 3, 4, 0, 22]]
3
108
inpt = gets.chomp.to_s if /[a-z]/.match(inpt) print a else print A end
inpt = gets.chomp.to_s if /[a-z]/.match(inpt) print "a" else print "A" end
[["+", 64, 749, 0, 652, 3, 4, 0, 557, 0, 62], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 62]]
4
22
alpha = input() if alpha.isupper(): output = A else: output = a print(output)
alpha = input() if alpha.isupper(): output = 'A' else: output = 'a' print(output)
[["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 654], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 655], ["+", 8, 196, 0, 1, 0, 662, 12, 557, 0, 654], ["+", 8, 196, 0, 1, 0, 662, 12, 557, 0, 655]]
5
24
x = input() if ord(x) in list(range(65,92)): print('a') else: print('A')
x = input() if ord(x) in list(range(65,92)): 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
35
a = str(input()) if a.isupper() == True: print('A') else: print('B')
a = str(input()) if a.isupper() == True: print('A') else: print('a')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
31
#include <bits/stdc++.h> using namespace std; #define int long long #define fi first #define se second #define pb push_back #define pr pair<int, int> #define mod 1000000007 #define endl "\n" int power(int a, int b, int m = mod) { if (b == 0) return 1; if (b == 1) return a; int res = power(a, b / 2, m); ...
#include <bits/stdc++.h> using namespace std; #define int long long #define fi first #define se second #define pb push_back #define pr pair<int, int> #define mod 1000000007 #define endl "\n" int power(int a, int b, int m = mod) { if (b == 0) return 1; if (b == 1) return a; int res = power(a, b / 2, m); ...
[["+", 0, 57, 64, 1, 0, 11, 12, 103, 0, 104]]
1
353
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c == 'a' || c == 'b' || c == 'c' || c == 'd' || c == 'e' || c == 'f' || c == 'g' || c == 'h' || c == 'i' || c == 'j' || c == 'k' || c == 'l' || c == 'm' || c == 'n' || c == 'o' || c == 'p' || c == 'q' || c == 'r' || ...
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if (c == 'a' || c == 'b' || c == 'c' || c == 'd' || c == 'e' || c == 'f' || c == 'g' || c == 'h' || c == 'i' || c == 'j' || c == 'k' || c == 'l' || c == 'm' || c == 'n' || c == 'o' || c == 'p' || c == 'q' || c == 'r' || ...
[["-", 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
197
#include <iostream> using namespace std; int main() { char let; cin >> let; if ('let' <= 'z' && 'let' >= 'a') cout << "a"; else cout << "A"; return 0; }
#include <iostream> using namespace std; int main() { char let; cin >> let; if (let <= 'z' && let >= 'a') cout << "a"; else cout << "A"; return 0; }
[["-", 15, 339, 51, 16, 31, 16, 31, 103, 0, 104], ["-", 15, 339, 51, 16, 31, 16, 31, 103, 0, 125], ["-", 51, 16, 31, 16, 31, 103, 0, 42, 0, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 15, 339, 51, 16, 12, 16, 31, 103, 0, 104], ["-", 15, 339, 51, 16, 12, 16, 31, 103, 0, 125], ["-", 51, 16, 12, 16, 31, 103,...
1
55
#include <iostream> using namespace std; int main(void) { char s; cin >> s; if (isupper(s) == true) { cout << "A\n"; } else { cout << "a\n"; } return 0; }
#include <iostream> using namespace std; int main(void) { char s; cin >> s; if (s < 91) { cout << "A\n"; } else { cout << "a\n"; } return 0; }
[["-", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["-", 15, 339, 51, 16, 31, 2, 3, 4, 0, 24], ["-", 15, 339, 51, 16, 31, 2, 3, 4, 0, 25], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 146], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
51
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> using namespace std; typedef long long ll; int main() { char a, b; scanf("%c", &a); if (a >= 'a' && a <= 'z') { printf("%c\n", a); } else printf("A\n"); return 0; }
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> using namespace std; typedef long long ll; int main() { char a, b; 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], ["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22]]
1
76
#define rep(i, n) for (int i = 0; i < (int)(n); i++) #include <algorithm> #include <iostream> #include <string> #include <unordered_set> using namespace std; int main() { char c; if ('A' <= c && c <= 'Z') { cout << 'A' << endl; } else { cout << 'a' << endl; } }
#define rep(i, n) for (int i = 0; i < (int)(n); i++) #include <algorithm> #include <iostream> #include <string> #include <unordered_set> using namespace std; int main() { char c; cin >> c; if ('A' <= c && c <= 'Z') { 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
64
#include <bits/stdc++.h> using namespace std; int main() { char x; cin >> x; if (x == 'a' || x == 'b' || x == 'c' || x == 'd' || x == 'e' || x == 'f' || x == 'g' || x == 'h' || x == 'i' || x == 'j' || x == 'k' || x == 'l' || x == 'm' || x == 'n' || x == 'o' || x == 'p' || x == 'q' || x == 'r' || ...
#include <bits/stdc++.h> using namespace std; int main() { char x; cin >> x; if (x == 'a' || x == 'b' || x == 'c' || x == 'd' || x == 'e' || x == 'f' || x == 'g' || x == 'h' || x == 'i' || x == 'j' || x == 'k' || x == 'l' || x == 'm' || x == 'n' || x == 'o' || x == 'p' || x == 'q' || x == 'r' || ...
[["-", 15, 339, 51, 16, 12, 16, 31, 103, 0, 104]]
1
200
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if ('A' <= a && a <= 'Z') cout << "A" << endl; else if ('a' <= a && a <= 'z') cout << a << endl; return 0; }
// In the name of allah// Bismillahir rahmanir rahim #include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if ('A' <= a && a <= 'Z') cout << "A" << endl; else if ('a' <= a && a <= 'z') cout << "a" << endl; return 0; }
[["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 62]]
1
65
#include <iostream> #include <unordered_map> #include <vector> using namespace std; typedef long long ll; int main() { char x; cin >> x; if (isupper(x)) { cout << "A" << endl; } else if (islower(x)) { cout << "B" << endl; } return 0; }
#include <iostream> #include <unordered_map> #include <vector> using namespace std; typedef long long ll; int main() { char x; cin >> x; if (isupper(x)) { cout << "A" << endl; } else if (islower(x)) { 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
66
#include <bits/stdc++.h> #define lln long long int #define llu unsigned lln #define sc(n) scanf("%d", &n); #define scl(n) scanf("%lld", &n); #define scd(n) scanf("%lf", &n); #define pf(res) printf("%d\n", res); #define pfl(res) printf("%lld\n", res); #define pfd(res) printf("%lf\n", res); #define maxii 100005 using na...
#include <bits/stdc++.h> #define lln long long int #define llu unsigned lln #define sc(n) scanf("%d", &n); #define scl(n) scanf("%lld", &n); #define scd(n) scanf("%lf", &n); #define pf(res) printf("%d\n", res); #define pfl(res) printf("%lld\n", res); #define pfd(res) printf("%lf\n", res); #define maxii 1005 using name...
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 15, 339, 51, 16, 31, 16, 12, 103, 0, 125], ["+", 15, 339, 51, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46]]
1
420
#include <bits/stdc++.h> using namespace std; int main() { char q; cin >> q; if (q >= 98) cout << 'a'; else { cout << 'A'; } }
#include <bits/stdc++.h> using namespace std; int main() { char q; cin >> q; if (q >= 97) cout << 'a'; else { cout << 'A'; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
40
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char c; scanf("%c", &c); if (isupper(c)) { puts('A'); } else { puts('a'); } return 0; }
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char c; scanf("%c", &c); if (isupper(c)) { puts("A"); } else { puts("a"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 103, 0, 104], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62]]
0
56
#include <iostream> using namespace std; int main() { char ch; cin >> ch; if (ch >= 65 && ch <= 90) cout << "A" << endl; else cout << "B" << endl; return 0; }
#include <iostream> using namespace std; int main() { char ch; cin >> ch; if (ch >= 65 && ch <= 90) 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
49
#include <iostream> using namespace std; int main() { string c; cin >> c; if (c >= "a" && c <= "z") { cout << "A"; } else if (c >= "A" && c <= "Z") { cout << "a"; } else { } }
#include <iostream> using namespace std; int main() { string c; cin >> c; if (c >= "a" && c <= "z") { cout << "a"; } else if (c >= "A" && c <= "Z") { cout << "A"; } else { } }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
67
a = input() if a in "abcdefghijklmnopqqrstuvwxyng": print("a") else: print("A")
a = input() if a in "abcdefghijklmnopqrstuvwxynz": print("a") else: print("A")
[["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6]]
5
26
#include <iostream> using namespace std; int main() { char ch; cin >> ch; if (int(ch) >= 97 || int(ch) <= 122) cout << "a" << endl; else if (int(ch) >= 65 || int(ch) <= 90) cout << "A" << endl; return 0; }
#include <iostream> using namespace std; int main() { char ch; cin >> ch; if (int(ch) >= 97 && int(ch) <= 122) cout << "a" << endl; else if (int(ch) >= 65 && int(ch) <= 90) 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], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 98]]
1
71
#include <bits/stdc++.h> using namespace std; int main() { char h; if (isupper(h)) { cout << 'A'; } else { cout << 'a'; } }
#include <bits/stdc++.h> using namespace std; int main() { char h; cin >> h; if (isupper(h)) { cout << 'A'; } else { cout << 'a'; } }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
39
#include <cctype> #include <iostream> using namespace std; int main() { char a; cin >> a; if (isupper(a) == 1) cout << "A"; else cout << "a"; return 0; }
#include <cctype> #include <iostream> using namespace std; int main() { char a; cin >> a; if (isupper(a)) cout << "A"; else cout << "a"; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
46
import string input = str(input()) if input in string.ascii_uppercase: print("A") else: print("B")
import string input = str(input()) if input in string.ascii_uppercase: 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
31
#include <iostream> using namespace std; int main() { char a; cin >> a; cout << ((a <= 'z') ? "a" : "A"); return 0; }
#include <iostream> using namespace std; int main() { char a; cin >> a; cout << ((a >= 'a') ? "a" : "A"); return 0; }
[["-", 12, 23, 0, 41, 15, 23, 0, 16, 17, 19], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 17, 20], ["-", 0, 41, 15, 23, 0, 16, 12, 103, 0, 125], ["+", 0, 41, 15, 23, 0, 16, 12, 103, 0, 125]]
1
42
a = (input()) if a.islower == True: print("a") else: print("A")
a = (input()) if a.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
28
#include <algorithm> #include <ctime> #include <iomanip> #include <iostream> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <string> #include <vector> using namespace std; typedef long long ll; #define PI 3.14159265358979323846264338327950L int res; int main() { cin.tie(nullptr); i...
#include <algorithm> #include <ctime> #include <iomanip> #include <iostream> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <string> #include <vector> using namespace std; typedef long long ll; #define PI 3.14159265358979323846264338327950L int res; int main() { cin.tie(nullptr); i...
[["-", 0, 43, 49, 50, 51, 83, 0, 103, 0, 125], ["+", 0, 43, 49, 50, 51, 83, 0, 103, 0, 125], ["+", 0, 43, 49, 50, 51, 83, 0, 103, 0, 104], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 21]]
1
219
#include <bits/stdc++.h> using namespace std; int main() { char a; if (a >= 97 && a <= 122) { cout << 'a'; return 0; } else if (a >= 65 && a <= 90) { cout << 'A'; return 0; } }
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if (a >= 97 && a <= 122) { cout << 'a'; return 0; } else if (a >= 65 && a <= 90) { cout << 'A'; return 0; } }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
58
α = int(input()) if α == α.upper(): print('A') elif α == α.lower(): print('a')
α = input() if α == α.upper(): print('A') elif α == α.lower(): print('a')
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
38
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.next(); boolean lowercase = !s.equals(s.toLowerCase()); boolean uppercase = !s.equals(s.toUpperCase()); if (!lowercase) { System.out.println(s.toLowerCa...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.next(); boolean lowercase = !s.equals(s.toLowerCase()); boolean uppercase = !s.equals(s.toUpperCase()); if (!lowercase) { System.out.println("a"); }...
[["-", 0, 1, 0, 492, 3, 4, 0, 492, 500, 22], ["-", 0, 1, 0, 492, 3, 4, 0, 492, 0, 131], ["-", 0, 1, 0, 492, 3, 4, 0, 492, 141, 22], ["-", 0, 492, 3, 4, 0, 492, 3, 4, 0, 24], ["-", 0, 492, 3, 4, 0, 492, 3, 4, 0, 25], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
112
/*بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيم*/ //#pragma GCC optimize("O3,unroll-loops") //#pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> using namespace std; #define FASTIO ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0); typedef long long ll; const double PI = acos(-1.0); const ll mod = 1e9 + 7; //...
/*بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيم*/ //#pragma GCC optimize("O3,unroll-loops") //#pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> using namespace std; #define FASTIO ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0); typedef long long ll; const double PI = acos(-1.0); const ll mod = 1e9 + 7; //...
[["-", 0, 57, 64, 1, 0, 16, 12, 103, 0, 104], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 62], ["-", 64, 1, 0, 16, 12, 103, 0, 42, 0, 42], ["-", 64, 1, 0, 16, 12, 103, 0, 42, 0, 22], ["-", 0, 1, 0, 16, 12, 103, 0, 42, 0, 42], ["-", 0, 1, 0, 16, 12, 103, 0, 42, 0, 22]]
1
1,069
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #define inf 0x3f3f3f3f const int maxn = 1000050; using namespace std; typedef long long ll; int p[maxn]; int main() { char c; cin >> c; int cnt = c - 'A'; if (cnt >= 0 && cnt < 26) cout <<...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #define inf 0x3f3f3f3f const int maxn = 1000050; using namespace std; typedef long long ll; int p[maxn]; int main() { char c; cin >> c; int cnt = c - 'A'; if (cnt >= 0 && cnt < 26) cout <<...
[["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
84
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define ll long ...
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define ll long ...
[["-", 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
80
#include <bits/stdc++.h> using namespace std; int main() { char ch; cin >> ch; char ans; if ('a' <= ch && 'z' >= ch) ans = 'A'; else ans = 'a'; cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char ch; cin >> ch; char ans; if ('a' <= ch && 'z' >= ch) ans = 'a'; else ans = 'A'; cout << ans << endl; return 0; }
[["-", 0, 57, 64, 1, 0, 11, 12, 103, 0, 125], ["+", 0, 57, 64, 1, 0, 11, 12, 103, 0, 125], ["-", 75, 76, 0, 1, 0, 11, 12, 103, 0, 125], ["+", 75, 76, 0, 1, 0, 11, 12, 103, 0, 125]]
1
58
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if (isupper(a) == true) { 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; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 146]]
1
49
#include <iostream> using namespace std; int main(void) { char c; cin >> c; if (isupper(c)) cout << 'A' << endl; else cout << 'B' << endl; return 0; }
#include <iostream> using namespace std; int main(void) { 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
47
#include <iostream> using namespace std; int main() { char x; cin >> x; if (x >= 'A' && x <= 'Z') { cout << "A" << endl; } else cout << x << endl; }
#include <iostream> using namespace std; int main() { char x; cin >> x; if (x >= 'A' && x <= 'Z') { cout << "A" << endl; } else cout << 'a' << endl; }
[["-", 75, 76, 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
50
#include <bits/stdc++.h> using namespace std; int main() { char s; cin >> s; if (islower(s)) cout << 'A'; else cout << 'a'; }
#include <bits/stdc++.h> using namespace std; int main() { char s; cin >> s; if (islower(s)) cout << 'a'; else cout << 'A'; }
[["-", 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
39
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<int, int> Pii; typedef pair<ll, ll> Pll; typedef pair<int, Pii> P1; #define rep(i, n) for (int i = 0; i < n; i++) #define sor(v) sort(v.begin(), v.end()) #define rev(s) reverse(s.begin(), s.end()) #define lb(vec, ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<int, int> Pii; typedef pair<ll, ll> Pll; typedef pair<int, Pii> P1; #define rep(i, n) for (int i = 0; i < n; i++) #define sor(v) sort(v.begin(), v.end()) #define rev(s) reverse(s.begin(), s.end()) #define lb(vec, ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
160
n = input() if(n.islower() == "True"): print("a") else: print("A")
n = input() if(n.islower() == True): print("a") else: print("A")
[["-", 0, 57, 15, 23, 0, 666, 0, 557, 0, 654], ["-", 0, 57, 15, 23, 0, 666, 0, 557, 0, 655]]
5
32
#include <stdio.h> signed main() { char a; char i; i = 'a'; scanf("%c", &a); if (a < 'A' || a == 'A') { printf("A\n"); } else { printf("%c\n", i); } }
#include <stdio.h> signed main() { char a; char i; i = 'a'; scanf("%c", &a); if (a < 'a') { printf("A\n"); } else { printf("%c\n", i); } }
[["-", 15, 23, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 15, 23, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 60], ["-", 15, 23, 0, 16, 12, 16, 12, 103, 0, 104], ["-", 15, 23, 0, 16, 12, 16, 12, 103, 0, 125]]
0
67
/* 2020.6.11 Ве№И 1379 LTC */ #include <bits/stdc++.h> #define mem(f, x) memset(f, x, sizeof(f)) #define pii pair<int, int> #define pll pair<long long, long long> #define mk(x, y) make_pair(x, y) #define fi first #define se second #define pk push_back typedef long long LL; using namespace std; const int M =...
/* 2020.6.11 Ве№И 1379 LTC */ #include <bits/stdc++.h> #define mem(f, x) memset(f, x, sizeof(f)) #define pii pair<int, int> #define pll pair<long long, long long> #define mk(x, y) make_pair(x, y) #define fi first #define se second #define pk push_back typedef long long LL; using namespace std; const int M =...
[["-", 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
122
x = input() ans = x.islower() #大文字 false if ans == false: print('A') else: print('a')
x = input() ans = x.islower() #大文字 false if ans == False: print('A') else: print('a')
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 147]]
5
32
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define BUFSIZE 1000000 char N, K; int hoge[BUFSIZE] = {0}; long long V, W, T; int count = 0; int x; int A[BUFSIZE] = {0}; int X; int compare_int(const void *a, const void *b) { return *(int *)a - *(int *)b; } int cal() {} int main(void) {...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define BUFSIZE 1000000 char N, K; int hoge[BUFSIZE] = {0}; long long V, W, T; int count = 0; int x; int A[BUFSIZE] = {0}; int X; int compare_int(const void *a, const void *b) { return *(int *)a - *(int *)b; } int cal() {} int main(void) {...
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 31, 13], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 12, 13]]
0
162
#include "stdio.h" int main() { char c; scanf("%c", c); if (c >= 'A' && c <= 'Z') printf("A"); else printf("a"); }
#include "stdio.h" int main() { char c; scanf("%c", &c); if (c >= 'A' && c <= 'Z') printf("A"); else printf("a"); }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
51
#include <iostream> using namespace std; int main(void) { // Your code here! char input; cin >> input; if (input > 'A') { cout << "a" << endl; } else { cout << "A" << endl; } return 0; }
#include <iostream> using namespace std; int main(void) { // Your code here! char input; cin >> input; if (input >= 'a') { cout << "a" << endl; } else { cout << "A" << endl; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]]
1
53
#include <iostream> #include <string> using namespace std; int main(void) { string a; cin >> a; string en = "Z"; string st = "A"; // 出力 if ((a < en) && (st < a)) { cout << "A"; } else { cout << "a"; } return 0; }
#include <iostream> #include <string> using namespace std; int main(void) { string a; cin >> a; string en = "Z"; string st = "A"; // 出力 if ((a <= en) && (st <= a)) { cout << "A"; } else { cout << "a"; } return 0; }
[["-", 15, 339, 51, 16, 31, 23, 0, 16, 17, 18], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 17, 19], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 18], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 19]]
1
71
#include <cctype> #include <iostream> #include <string> using namespace std; int main() { int x; char alpha; cin >> alpha; x = isupper(alpha); if (x == 0) { cout << "a" << endl; } else { cout << "A" << endl; } cout << x; return 0; }
#include <cctype> #include <iostream> #include <string> using namespace std; int main() { int x; char alpha; cin >> alpha; x = isupper(alpha); if (x == 0) { 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, 151], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
67
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; char B = a - 32; char C = a + 32; if (97 <= a && a <= 123) { cout << B << endl; } else { cout << C << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; char B = a - 32; char C = a + 32; if (97 <= a && a <= 123) { cout << "a" << endl; } else { cout << "A" << endl; } }
[["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
60
#include <bits/stdc++.h> using namespace std; #define int long long const int N = 1e5 + 5; signed main() { char a; cin >> a; if (a >= 'A' && a <= 'Z') cout << "A" << "\n"; else cout << a << "\n"; }
#include <bits/stdc++.h> using namespace std; #define int long long const int N = 1e5 + 5; signed main() { char a; cin >> a; if (a >= 'A' && a <= 'Z') cout << "A" << "\n"; else cout << 'a' << "\n"; }
[["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104]]
1
63
a=input() if(ord(a)>=65 and ord(a)<=90): print('a') else: print('A')
a=input() if(ord(a)>=65 and ord(a)<=90): 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
36
#include <bits/stdc++.h> using namespace std; typedef long long int lli; #define fast \ ios::sync_with_stdio(0); \ cin.tie(0); \ co...
#include <bits/stdc++.h> using namespace std; typedef long long int lli; #define fast \ ios::sync_with_stdio(0); \ cin.tie(0); \ co...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
60
import java.util.Scanner; public class Main { public static void main(final String[] args) { Scanner sc = new Scanner(System.in); Character character = sc.next().charAt(0); if (character >= 'a' && character <= 'z') { System.out.println("a"); } else { System.err.println("A"); } } }
import java.util.Scanner; public class Main { public static void main(final String[] args) { Scanner sc = new Scanner(System.in); Character character = sc.next().charAt(0); if (character >= 'a' && character <= 'z') { System.out.println("a"); } else { System.out.println("A"); } } }
[["-", 75, 196, 0, 1, 0, 492, 500, 509, 119, 22], ["+", 75, 196, 0, 1, 0, 492, 500, 509, 119, 22]]
3
87
c = gets.to_s if c >= 'a' && c<= 'z' print 'a' else print 'A' end
c = gets.chomp.to_s if c >= 'a' && c <= 'z' print 'a' else print 'A' end
[["+", 0, 493, 0, 662, 12, 652, 486, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131]]
4
27
import java.util.*; public class Main { static Scanner scanner; public static void main(String[] args) { scanner = new Scanner(System.in); String a = scanner.next(); if (a.equals(a.toLowerCase())) { System.out.println("A"); } else { System.out.println("a"); } } public static ...
import java.util.*; public class Main { static Scanner scanner; public static void main(String[] args) { scanner = new Scanner(System.in); String a = scanner.next(); if (a.equals(a.toLowerCase())) { System.out.println("a"); } else { System.out.println("A"); } } public static v...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
634
alpha = str(input()) if alpha < 'a': print('A') else: print('B')
alpha = str(input()) if alpha < 'a': 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
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" #define pb push_back #define f(i, n) for (i = 0; i < n; i++) #define F(i, a, b) for (i = a; a <= b; i++) #define arr(a, n) \ for (i = 0; i < n; i++) ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" #define pb push_back #define f(i, n) for (i = 0; i < n; i++) #define F(i, a, b) for (i = a; a <= b; i++) #define arr(a, n) \ for (i = 0; i < n; i++) ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
260
a = input() b = ord(a) if b < 90 and b > 65: print('A') else: print('a')
a = input() b = ord(a) if b <= 90 and b >= 65: print('A') else: print('a')
[["-", 0, 656, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 20]]
5
34
#include <bits/stdc++.h> #define rep(i, n) for (ll(i) = 0; (i) < (n); (i)++) using namespace std; typedef long long ll; typedef pair<int, int> P; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<ll> vl; typedef vector<P> vp; int main() { char a; cin >> a; if (a < 91) { cout << "a" << endl; } e...
#include <bits/stdc++.h> #define rep(i, n) for (ll(i) = 0; (i) < (n); (i)++) using namespace std; typedef long long ll; typedef pair<int, int> P; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<ll> vl; typedef vector<P> vp; int main() { char a; cin >> a; if (a < 91) { cout << "A" << endl; } e...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
99
#include <bits/stdc++.h> using namespace std; #define SORT(c) sort((c).begin(), (c).end()); #define pb push_back #define MP make_pair #define pii pair<int, int> #define pcc pair<char, char> #define pic pair<int, char> #define pci pair<char, int> #define VS vector<string> #define VI vector<int> #define pi 3.141592653589...
#include <bits/stdc++.h> using namespace std; #define SORT(c) sort((c).begin(), (c).end()); #define pb push_back #define MP make_pair #define pii pair<int, int> #define pcc pair<char, char> #define pic pair<int, char> #define pci pair<char, int> #define VS vector<string> #define VI vector<int> #define pi 3.141592653589...
[["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
492
#include <iostream> using namespace std; int main() { char a; cin >> a; if (isupper(a)) { cout << a << endl; } else { cout << a << endl; } }
#include <iostream> using namespace std; int main() { char a; cin >> a; if (isupper(a)) { 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
43
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char a; scanf("%c", &a); if (a > 64 || a < 91) { printf("A"); } else { printf("a"); } }
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char a; scanf("%c", &a); if (a > 64 && a < 91) { printf("A"); } else { printf("a"); } }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98]]
0
56
#include <bits/stdc++.h> #define int long long int #define pb push_back #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define pii pair<int, int> #define vvi vector<vector<int>> #define vi...
#include <bits/stdc++.h> #define int long long int #define pb push_back #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define pii pair<int, int> #define vvi vector<vector<int>> #define vi...
[["-", 75, 76, 0, 1, 0, 16, 12, 103, 0, 125], ["+", 75, 76, 0, 1, 0, 16, 12, 103, 0, 125], ["+", 8, 9, 0, 57, 75, 76, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]]
1
308
def func(x): if ord(x) - ord('a') >= 0: print('a') else: print('A') def main(): letter = raw_input() func(letter) # for x in ['A', 'Z', 'a', 'z']: # func(x) if __name__ == '__main__': main()
def func(x): if ord(x) - ord('a') >= 0: print('a') else: print('A') def main(): letter = input() func(letter) # for x in ['A', 'Z', 'a', 'z']: # func(x) if __name__ == '__main__': main()
[["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22]]
5
61
#include <stdio.h> int main() { char alpha; scanf("%c", &alpha); if (alpha >= 'A' || alpha <= 'Z') { printf("A"); } else if (alpha >= 'a' || alpha <= 'z') { printf("a"); } return 0; }
#include <stdio.h> int main() { char alpha; scanf("%c", &alpha); if (alpha >= 'A' && alpha <= 'Z') { printf("A"); } else if (alpha >= 'a' && alpha <= 'z') { printf("a"); } 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
71
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; if (a > "a") { cout << "A" << endl; } else { cout << "a" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; if (a >= "A" && a < "a") { cout << "A" << endl; } else { cout << "a" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["+", 15, 339, 51, 16, 31, 16, 12, 5, 0, 62], ["+", 15, 339, 51, 16, 31, 16, 12, 5, 0, 6], ["+", 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, 18...
1
48
alpha = gets.chomp puts(alpha.match?(/[A-Z]/) ? "A" : "b")
alpha = gets.chomp puts(alpha.match?(/[A-Z]/) ? "A" : "a")
[["-", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6]]
4
24
#include <stdio.h> int main() { long long int A, B, C, D, N, M; char ss; scanf("%c", &ss); if ('a' <= ss && ss <= 'z') { printf("%c\n", ss); } else { ss += 1; printf("%c\n", ss); } return 0; }
#include <stdio.h> int main() { long long int A, B, C, D, N, M; char ss; scanf("%c", &ss); if ('a' <= ss && ss <= 'z') { printf("a\n", ss); } else { ss += 1; printf("A\n", ss); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
82
α = input() if α == α.upper(): print("A") else: print("B")
α = input() if α == α.upper(): print("A") else: print("a")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
28
#include <iostream> #include <string> using namespace std; int main() { char c; cin >> c; if (c > 'A') cout << 'a' << endl; else cout << 'A' << endl; return 0; }
#include <iostream> #include <string> using namespace std; int main() { char c; cin >> c; if (c > 'Z') cout << 'a' << endl; else cout << 'A' << endl; return 0; }
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]]
1
49
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { char a; cin >> a; if (a >= 97) { cout << "A"; } else { cout << "a"; } return 0; }
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { char a; cin >> a; if (a >= 97) { cout << "a"; } else { cout << "A"; } return 0; }
[["-", 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
48
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> p_ll; template <class T> void debug(T itr1, T itr2) { auto now = itr1; while (now < itr2) { cout << *now << " "; now++; } cout << endl; } #define repr(i, from, to) for (int i = (int)from; i < (int)to; i++) #define...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> p_ll; template <class T> void debug(T itr1, T itr2) { auto now = itr1; while (now < itr2) { cout << *now << " "; now++; } cout << endl; } #define repr(i, from, to) for (int i = (int)from; i < (int)to; i++) #define...
[["+", 0, 43, 49, 50, 51, 41, 15, 16, 17, 98], ["+", 49, 50, 51, 41, 15, 16, 12, 16, 31, 22], ["+", 49, 50, 51, 41, 15, 16, 12, 16, 17, 19], ["+", 51, 41, 15, 16, 12, 16, 12, 103, 0, 104], ["+", 51, 41, 15, 16, 12, 16, 12, 103, 0, 125]]
1
410
#include <iostream> using namespace std; int main() { char a = 'a'; cin >> a; if (a >= 90) { cout << 'a' << endl; } else { cout << 'A' << endl; } }
#include <algorithm> #include <iostream> using namespace std; int main() { char a = 'a'; cin >> a; if (a >= 92) { cout << 'a' << endl; } else { cout << 'A' << endl; } }
[["+", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["+", 36, 36, 36, 36, 0, 30, 0, 135, 0, 138], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
50
/* Aldew PROB: Save Konoha CLASSIFICATION: Priority Queue DIFFICULTY: */ #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <math.h> #include <stack> #include <string> #include <vector> #define check(x) cout << (#x) << ": " << x << " "; #define io ...
/* Aldew PROB: Save Konoha CLASSIFICATION: Priority Queue DIFFICULTY: */ #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <math.h> #include <stack> #include <string> #include <vector> #define check(x) cout << (#x) << ": " << x << " "; #define io ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 57, 15, 339, 51, 2, 3, 4, 0, 22], ["+", 0, 57, 15, 339, 51, 2, 3, 4, 0, 22]]
1
171
#include <stdio.h> int main() { char alfa; scanf("%c", alfa); if ('a' <= alfa && alfa <= 'z') printf("a"); if ('A' <= alfa && alfa <= 'Z') printf("A"); return 0; }
#include <stdio.h> int main() { char alfa; scanf("%c", &alfa); if ('a' <= alfa && alfa <= 'z') printf("a"); if ('A' <= alfa && alfa <= 'Z') printf("A"); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
65
str = input().strip() f=str.islower() if f=="True": print("a") else: print("A")
str = input().strip() f=str.islower() if f==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, 655]]
5
37
package main import ( "bufio" "fmt" "io" "os" "strconv" ) const mod = 998244353 const facNum = 300001 const INF = 2 << 31 func main() { sc := newScanner(os.Stdin) a := sc.s() if a[0] >= 'A' { fmt.Println("A") } else { fmt.Println("a") } } // I/O type scanner struct { sc *bufio.Scanner } func newScan...
package main import ( "bufio" "fmt" "io" "os" "strconv" ) const mod = 998244353 const facNum = 300001 const INF = 2 << 31 func main() { sc := newScanner(os.Stdin) a := sc.s() if a[0] >= 'a' { fmt.Println("a") } else { fmt.Println("A") } } // I/O type scanner struct { sc *bufio.Scanner } func newScan...
[["-", 0, 435, 8, 196, 0, 57, 15, 16, 12, 457], ["+", 0, 435, 8, 196, 0, 57, 15, 16, 12, 457]]
7
894
#include <bits/stdc++.h> #define endl '\n' #define _ \ ios::sync_with_stdio(false); \ cin.tie(0); using namespace std; int main() { _ char c; cin >> c; if (isupper(c)) { cout << 'A' << en...
#include <bits/stdc++.h> #define endl '\n' #define _ \ ios::sync_with_stdio(false); \ cin.tie(0); using namespace std; int main() { _ char c; cin >> c; if (isupper(c)) { cout << 'A' << en...
[["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
58
#include <bits/stdc++.h> using namespace std; int main() { char alpha; cin >> alpha; if (alpha <= 90 && alpha >= 65) cout << "A" << endl; if (alpha <= 122 && alpha >= 97) cout << "B" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char alpha; cin >> alpha; if (alpha <= 90 && alpha >= 65) cout << "A" << endl; if (alpha <= 122 && alpha >= 97) cout << "a" << endl; return 0; }
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
58
#入力する文字A A = input() #判定N N = A.isupper() #print(N) if N == True: print("A") else: print("B")
#入力する文字A A = input() #判定N N = A.isupper() #print(N) if N == 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
34
function Main(input) { input = input.trim(); var CAPITAL = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; var small = "abcdefghijklmnopqrstuvwxyz"; var ans; if (input.indexOf(CAPITAL) === -1) { ans = 'a'; } else { ans = 'A'; } console.log(ans); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));
function Main(input) { input = input.trim(); var CAPITAL = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; var small = "abcdefghijklmnopqrstuvwxyz"; var ans; if (CAPITAL.indexOf(input) === -1) { ans = 'a'; } else { ans = 'A'; } console.log(ans); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));
[["-", 15, 23, 0, 16, 31, 2, 63, 558, 500, 22], ["+", 15, 23, 0, 16, 31, 2, 63, 558, 500, 22], ["-", 15, 23, 0, 16, 31, 2, 3, 3, 0, 22], ["+", 15, 23, 0, 16, 31, 2, 3, 3, 0, 22]]
2
89
#include <iostream> #define int long long using namespace std; const int N = 2e5 + 10; int32_t main() { ios::sync_with_stdio(0), cin.tie(0), cout.tie(0); char c; cin >> c; if (c >= 'A') cout << "A"; else cout << "a"; return 0; }
#include <iostream> #define int long long using namespace std; const int N = 2e5 + 10; int32_t main() { ios::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; }
[["+", 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
75
#include <cmath> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; int main() { char s; cin >> s; if (isupper(s)) { cout << "A"; } else { cout << "A"; } return 0; }
#include <cmath> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; int main() { char s; cin >> s; if (isupper(s)) { cout << "A"; } else { cout << "a"; } return 0; }
[["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
54
#include <bits/stdc++.h> using namespace std; int main() { char s; cin >> s; if (isupper(s)) { cout << "a" << endl; return 0; } else { cout << "A" << endl; return 0; } }
#include <bits/stdc++.h> using namespace std; int main() { char s; cin >> s; if (isupper(s)) { cout << "A" << endl; return 0; } 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> using namespace std; int main() { char in; if (isupper(in)) cout << "A" << endl; else cout << "a" << endl; return 0; }
#include <iostream> using namespace std; int main() { char in; cin >> in; if (isupper(in)) 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
42
#include <bits/stdc++.h> #include <string> #include <vector> using namespace std; vector<string> split(const string &s, char delim) { vector<string> elems; string item; for (char ch : s) { if (ch == delim) { if (!item.empty()) { elems.push_back(item); } item.clear(); } else { ...
#include <bits/stdc++.h> #include <string> #include <vector> using namespace std; vector<string> split(const string &s, char delim) { vector<string> elems; string item; for (char ch : s) { if (ch == delim) { if (!item.empty()) { elems.push_back(item); } item.clear(); } else { ...
[["-", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 2, 63, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
356
#include <bits/stdc++.h> using namespace std; int main() { char c = 'X'; if ('A' <= c && c <= 'Z') { cout << 'A' << endl; } else { cout << 'a' << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { char c; cin >> c; if ('A' <= c && c <= 'Z') { cout << 'A' << endl; } else { cout << 'a' << endl; } }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 8, 9, 0, 43, 49, 50, 51, 103, 0, 104], ["-", 8, 9, 0, 43, 49, 50, 51, 103, 0, 125], ["+", 0, 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
54
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if (a < 'z' && a > 'a') cout << "a" << endl; else cout << "A" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { char a; cin >> a; if (a <= 'z' && a >= 'a') cout << "a" << endl; else cout << "A" << endl; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20]]
1
50
a = str(input()) Cap = ['A', 'B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'] if a in Cap: print('A') else: print('a') print(a)
a = str(input()) Cap = ['A', 'B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'] if a in Cap: print('A') else: print('a')
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
138
L = [chr(ord('a') + i) for i in range(26)] U = [chr(ord('A') + i) for i in range(26)] a = input() if a in U: print('a') if a in L: print('A')
L = [chr(ord('a') + i) for i in range(26)] U = [chr(ord('A') + i) for i in range(26)] a = input() if a in U: print('A') if a in L: print('a')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
71
#include <bits/stdc++.h> #define ull unsigned long long #define ll int64_t #define f(i, s, e) for (i = s; i < e; ++i) #define endl << "\n" #define sp << " " #define INF INFINITY #define mset(a, b) memset(a, b, sizeof(a)) #define mod 1000000007 #define mp(a, b) make_pair(a, b) #define F first #define S second #define al...
#include <bits/stdc++.h> #define ull unsigned long long #define ll int64_t #define f(i, s, e) for (i = s; i < e; ++i) #define endl << "\n" #define sp << " " #define INF INFINITY #define mset(a, b) memset(a, b, sizeof(a)) #define mod 1000000007 #define mp(a, b) make_pair(a, b) #define F first #define S second #define al...
[["+", 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
124
alpha = input() if alpha in string.ascii_lowercase: print('a') else: print('A')
import string alpha = input() # alpha = 'a' if alpha in string.ascii_lowercase: print('a') else: print('A')
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]]
5
26
#include <algorithm> #include <cmath> #include <iostream> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stdio.h> #include <string> #include <unordered_map> #include <vector> #define fo(i, n) for (int i = 0; i < n; i++) #define fo1(i, n) for (int i = 1; i <= n; i++) #define ll long long ...
#include <algorithm> #include <cmath> #include <iostream> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stdio.h> #include <string> #include <unordered_map> #include <vector> #define fo(i, n) for (int i = 0; i < n; i++) #define fo1(i, n) for (int i = 1; i <= n; i++) #define ll long long ...
[["-", 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
118
#include <bits/stdc++.h> #define ll long long int #define pb push_back #define mod 1000000007 #define pi (3.141592653589) #define deb(n) cerr << #n << " = " << (n) << " "; using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cout << fixed; cout.precision(10); ...
#include <bits/stdc++.h> #define ll long long int #define pb push_back #define mod 1000000007 #define pi (3.141592653589) #define deb(n) cerr << #n << " = " << (n) << " "; using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cout << fixed; cout.precision(10); ...
[["-", 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
96
#include <bits/stdc++.h> int main() { char c; std::cin >> c; if (c >= 'A' && c <= 'a') std::cout << "A" << std::endl; else std::cout << "a" << std::endl; }
#include <bits/stdc++.h> int main() { char c; std::cin >> c; if (c >= 'A' && c <= 'Z') std::cout << "A" << std::endl; else std::cout << "a" << std::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 II(): return str(input()) def MI(): return map(int,input().split()) def LI(): return list(map(int,input().split())) def TI(): return tuple(map(int,input().split())) def RN(N): return [input().strip() for i in range(N)] def main(): a = II() if a.islower() : print("A") else: ...
import sys def II(): return str(input()) def MI(): return map(int,input().split()) def LI(): return list(map(int,input().split())) def TI(): return tuple(map(int,input().split())) def RN(N): return [input().strip() for i in range(N)] def main(): a = II() if a.islower() : print("a") else: ...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
138
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; typedef pair<int, int> PI; typedef pair<ll, ll> PL; using graph = vector<vector<int>>; const double pi = 3.14159265358979323846; const ll mod = 1000000007; int main() { cin.tie(0); ios::sync_with_stdi...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; typedef pair<int, int> PI; typedef pair<ll, ll> PL; using graph = vector<vector<int>>; const double pi = 3.14159265358979323846; const ll mod = 1000000007; int main() { cin.tie(0); ios::sync_with_stdi...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
114
s=input() if s>"A": print("a") else: print("A")
s=input() if s in "abcdefghijklmnopqrstuvwxyz": print("a") else: print("A")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 267], ["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6]]
5
26