Problem:


Score : 100 points

Problem Statement

An uppercase or lowercase English letter \alpha will be given as input.
If \alpha is uppercase, print A; if it is lowercase, print a.

Constraints

\alpha is an uppercase (A - Z) or lowercase (a - z) English letter.

Input

Input is given from Standard Input in the following format:

α

Output

If \alpha is uppercase, print A; if it is lowercase, print a.

Sample Input 1

B

Sample Output 1

A

B is uppercase, so we should print A.

Sample Input 2

a

Sample Output 2

a

a is lowercase, so we should print a.



Sample input:
B


Sample output:
A

Submission status: Runtime Error

Solution code:
n,k=map(int,input().split())
p=list(map(int,input().split()))
print(sum(sorted(p)[:K]))

Submission status: Runtime Error

Solution code:
a = int(input())
if a=A or B or C or D or E or F or G or H or I or J or K or L or M or N or O or P or Q or R or S or T or U or V or W or X or Y or Z:
  print("A")
else:
  print("a")

Submission status: Runtime Error

Solution code:
a = str(input())
if a.isupper() = True:
  print(A)
else:
  print(a)

Submission status: Runtime Error

Solution code:
a = str(input())
if a.isupper() == True:
  print(A)
else:
  print(a)

Submission status: Runtime Error

Solution code:
def resolve():
    n,k = map(int, input().split())
    listA = list(map(int,input().split()))
    listA.sort()
    c = sum(listA[:k])
    print(c)
resolve()

Submission status: Runtime Error

Solution code:
a=input()
if a==a or a==b or a==c or a==d or a==e or a==f or a==g or a==h or a==i or a==j or a==k or a==l or a==m
or a==n or a==o or a==p or a==q or a==r or a==s or a==t or a==u or a==v or a==w or a==x or a==y or a==z:   
    print("a")
else:
    print("A")

Submission status: Runtime Error

Solution code:
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "g\n",
      "a\n"
     ]
    }
   ],
   "source": [
    "A='ABCDEFGHIJKLMNOPQRSTUVWXYZ'\n",
    "a='abcdefghijklmnopqrstuvwxyz'\n",
    "\n",
    "n=input()\n",
    "\n",
    "if n in A:\n",
    "    print(\"A\")\n",
    "\n",
    "if n in a:\n",
    "    print(\"a\")\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}

Submission status: Runtime Error

Solution code:
import itertools
N,K = map(int,input().split())
A = map(int,input().split())
t = list(list(itertools.combinations(A,K)))
ans = sum(t[0])
for i in t:
    ans = min(ans,sum(i))
print(ans)

Submission status: Runtime Error

Solution code:
data_a = [ABCDEFGHIJKLMNOPQRSTUVWXYZ]
data_b = [abcdefghijklmnopqrstuvwxyz]

n = input()

if n in data_a:
  print('A')

else:
  print('a')

Submission status: Runtime Error

Solution code:
α = int(input())
 
if α == α.upper():
  return print('A')
elif α == α.lower():
  return print('a')

Submission status: Runtime Error

Solution code:
s = input()
if s.issupper == True:
  print("A")
else:
  print("a")

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3
import bisect
import collections
import sys

sys.setrecursionlimit(1000000)
ACMOD = 1000000007
INF = 1 << 62


def solve(N: int):
    base = 26
    # z 26
    # aa 27
    # ab 28
    if N == 1:
        print("a")
        return
    N -= 1
    rans = []
    for i in range(100000):
        if N == 0:
            break
        if i == 0:
            rans.append(chr(N % base + ord('a')))
            N = N // base
        else:
            rans.append(chr((N-1) % base + ord('a')))
            N = N// base
    print("".join(reversed(rans)))
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    solve(N)


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:

def test(a):
	if tmp.isupper():
		return 'A'
	else:
		return 'a'
      
test(input())

Submission status: Runtime Error

Solution code:
α = int(input())

if α == α.upper():
  print('A')
elif α == α.lower():
  print('a')

Submission status: Runtime Error

Solution code:
s = input()

if s in ['a-z']:
  print('a')
elif s in ['A-Z']:
  print('A')
else:

Submission status: Runtime Error

Solution code:
S = str(input())
if S .isupper():
  print(A)
else:
  print(a)

Submission status: Runtime Error

Solution code:
alpha = input()
if alpha.isupper():
  output = A
else:
  output = a

print(output)

Submission status: Runtime Error

Solution code:
x = input()

ans = x.islower()

#大文字 false
if ans == false:
  print('A')
else:
  print('a')

Submission status: Runtime Error

Solution code:
X = input()
if X.isupper():
	print('A')
else:

Submission status: Runtime Error

Solution code:
S=input()

if S = a or b or c or d or e or f or g or h or i or j or k or l or m or n or o or p or q or r or s or t or u or v or w or x or y or z:
    print(a)
else:
    print(A)

Submission status: Runtime Error

Solution code:
tmp = input()
if tmp.isupper():
  print 'A'
else:
  print'a'

Submission status: Runtime Error

Solution code:
α = input()
If str.isupper(α) = True :
  print("A")
else :
  print("a")

Submission status: Runtime Error

Solution code:
a = str(input())
if a.isupper() == True:
    print(A)
else:
    print(a)

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline

n = input()
a =ord(n)
if a>96:
    print("a")
else:
    print("A")

Submission status: Runtime Error

Solution code:
a = int(input())

if a == a.upper():
  print("A")
elif a == a.lower():
  print("a")

Submission status: Runtime Error

Solution code:
alpha = input()
if alpha.isupper():
  output = A
else:
  ourput = a

print(output)

Submission status: Runtime Error

Solution code:
a = input()
s = int(ord(a)

if  65<=s and s<=90:
 print("A")
elif 97<=s and s<=122:
 print("B")

Submission status: Runtime Error

Solution code:
a=input()
if a==a or a==b or a==c or a==d or a==e or a==f or a==g or a==h or a==i a==j or a==k or a==l or a==m or a==n or a==o or a==p or a==q or a==r or a==s or a==t or a==u or a==v or a==w or a==x or a==y or a==z:
    print("a")
else:
    print("A")

Submission status: Runtime Error

Solution code:
a = int(input())

if a == a.upper():
  return "A"
elif a == a.lower():
  return "a"

Submission status: Runtime Error

Solution code:
alpha = input()

upper = [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]
lower = [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 alpha in upper:
    print("A")
else:
    print("a")

Submission status: Runtime Error

Solution code:
a = str(input())
oomoji = ["ABCDEFGHIJKLMNOPQRSTUVWXYZ"]
komoji = ["abcdefghijklmnopqrstuvwxyz"]

if a.isupper():
    print("A")
else:
    print("a"a)

Submission status: Runtime Error

Solution code:
letter=input()

if letter==letter.upper():
    print(A)
else:
    print(B)

Submission status: Runtime Error

Solution code:
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()

Submission status: Runtime Error

Solution code:
while True:
   D=input()
   
   if str.isupper(D):
       print("A")
   else:
        print("a")

Submission status: Runtime Error

Solution code:
a = input()

if a.isupper() == True:
  print("A")
elif a.islower() == True:
  print("a")
else:
  return

Submission status: Runtime Error

Solution code:
a = input("insert a here")

if a.isupper():dfdf
    print('A')
else:
    print('a')

Submission status: Runtime Error

Solution code:
_in = input()

result = _in.isupper()

if result ? :
  print('A')
else:
  print('a')

Submission status: Runtime Error

Solution code:
in = input()
if(in.islower()):
  print('a')
else:
  print('A')

Submission status: Runtime Error

Solution code:
n = str(input())
dai = [Q,W,E,R,T,Y,U,I,O,P,A,S,D,F,G,H,J,K,L,Z,X,C,V,B,N,M]
syou = [q,w,e,r,t,y,u,i,o,p,a,s,d,f,g,h,j,k,l,z,x,c,v,b,n,m]
if n in dai:
  print('A')
else:
  print('a')

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**5)

def main():
    n = input()
    a =ord(n)
    if a>96:
        print("a")
    else:
        print("A")





if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
if α==α.upper():
  return "A"
if α==α.lower():
  return "a"

Submission status: Runtime Error

Solution code:
alpha = input()

large = ['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']

small = [i.lower() for i in large]

if alpha in large:
    print("A")
else:
    pritn("a")

Submission status: Runtime Error

Solution code:
if __name__=="__main__":
    # Problem A
    x = input()
    if x == x.upper()
        print("A")
    else:
        print("a")

Submission status: Runtime Error

Solution code:
a = input()
if ord(a) >= 'a' and ord(a) <= 'z':
    print("a")
else:
    print("A")

Submission status: Runtime Error

Solution code:
alpha = input()

if alpha in string.ascii_lowercase:
  print('a')
else:
  print('A')

Submission status: Runtime Error

Solution code:
if input().issuper():
  print("a")
else:
  print("a")

Submission status: Runtime Error

Solution code:

Jupyter Notebook
200621 Current Kernel Logo

Python 3

    File
    Edit
    View
    Insert
    Cell
    Kernel
    Help

1

import sys

2

#sys.exit()

3

#sorted( ,reverse=True)

4

#N = int(input())

5

#S,T = map(int, input().split())

6

#A = list(map(int, input().split()))

7

#A = [int(input()) for _ in range(N)]

8

​

9

#cnt = 0

10

#cnt += 1

11

​

12

​

13

​

14

#print(N)

15

#print(S,T)

16

#print(A)

17

#print('Yes')

18

#print('No')

19

#print(cnt)

3
3
4
5
3
[3, 4, 5]

1

import sys

2

#sys.exit()

3

#sorted( ,reverse=True)

4

#N = int(input())

5

#S,T = map(int, input().split())

6

#A = list(map(int, input().split()))

7

#A = [int(input()) for _ in range(N)]

8

​

9

#cnt = 0

10

#cnt += 1

11

​

12

​

13

​

14

#print(N)

15

#print(S,T)

16

#print(A)

17

#print('Yes')

18

#print('No')

19

#print(cnt)

20

​

21

S = str(input())

22

A = ["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"]

23

​

24

if S in A:

25

    print('A')

26

else:

27

    print('a')

a
a

1

​

Submission status: Runtime Error

Solution code:
a=input()
li=[q,w,e,r,t,y,u,i,o,p,a,s,d,f,g,h,j,k,l,z,x,c,v,b,n,m]
if a in li:
  print("a")
else:
  print("A")

Submission status: Runtime Error

Solution code:
N = input()

#A,B = map(int,input().split())

#A = [int(input()) for i in range(N)]

"""
    A = []
    for _ in range(N):
        A.append(list(map(int,input().split())))
"""

if N.isupper():
    print(A)
else:
    print(B)

Submission status: Runtime Error

Solution code:
a = input()

if a.isUpper():
    print("A")
else:
    print("a")

Submission status: Runtime Error

Solution code:
s = input()
if s.isuper():
    print("A")
else:
    print("a")

Submission status: Runtime Error

Solution code:
a = input()
if a in "abcdefghijklmnopqrstuvwxyz":
    print("a")
else
    print("A")

Submission status: Runtime Error

Solution code:
alp = input()
if str.isupper(alp) == True:
  print("A")
else:
  pritn("a")

Submission status: Runtime Error

Solution code:
a = input()
if a >= 'a' && a <='z':
  print('a')
if a >= 'A' && a <='Z':
  print('A')

Submission status: Runtime Error

Solution code:
def main():
    import sys
    sys.setrecursionlimit(10**9)
    input = sys.stdin.readline

    a = input()

    if ord('a') <= ord(a) <= ord('z'):
        print('a')
    else:
        print('A')
        

main()

Submission status: Runtime Error

Solution code:
N = input()
A = [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 N in A:
    print("A")
else:
    print("a")

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline

x = input()
print('A' if ord(x)<97 else 'a')

Submission status: Runtime Error

Solution code:
#include<algorithm>//sort,二分探索,など
#include<bitset>//固定長bit集合
#include<cmath>//pow,logなど
#include<complex>//複素数
#include<deque>//両端アクセスのキュー
#include<functional>//sortのgreater
#include<iomanip>//setprecision(浮動小数点の出力の誤差)
#include<iostream>//入出力
#include<iterator>//集合演算(積集合,和集合,差集合など)
#include<map>//map(辞書)
#include<numeric>//iota(整数列の生成),gcdとlcm(c++17)
#include<queue>//キュー
#include<set>//集合
#include<stack>//スタック
#include<string>//文字列
#include<unordered_map>//イテレータあるけど順序保持しないmap
#include<unordered_set>//イテレータあるけど順序保持しないset
#include<utility>//pair
#include<vector>//可変長配列

using namespace std;
typedef long long ll;

//マクロ
//forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
//Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define REP(i,n) for(ll i=0;i<(ll)(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
#define FORD(i,a,b) for(ll i=a;i>=(ll)(b);i--)
//xにはvectorなどのコンテナ
#define ALL(x) (x).begin(),(x).end() //sortなどの引数を省略したい
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値を求める
#define MIN(x) *min_element(ALL(x)) //最小値を求める
//定数
#define INF 1000000000000 //10^12:極めて大きい値,∞
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange(素数列挙などで使用)
//略記
#define PB push_back //vectorヘの挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pairの一つ目の要素
#define S second //pairの二つ目の要素

signed main(){
    //入力の高速化用のコード
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    char a;
    cin >> a;
  if(isupper(a)){
    cout << "A" << endl;
  } else {
    cout << "a" << endl;
  }
}

Submission status: Runtime Error

Solution code:
A=[ord(i) for i in range(chr(a),chr(z)+1)]
a=input()
if a in A:
  print("a")
else:
  print("A")

Submission status: Runtime Error

Solution code:
import math
#import numpy as np
import queue
from collections import deque,defaultdict
import heapq as hpq
from sys import stdin,setrecursionlimit
#from scipy.sparse.csgraph import dijkstra
#from scipy.sparse import csr_matrix
ipt = stdin.readline
setrecursionlimit(10**7)

def main():
    a = input()
    if a.isupper():
        print(A)
    else:
        print(a)

    return

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
Print("A" if str.isupper(input()) else "a")

Submission status: Runtime Error

Solution code:
a-input();
if a>='a' && a<='z':
  print("a")
else:
  print("A")

Submission status: Runtime Error

Solution code:
a = int(input())

if a.islower():
  print('A')
else:
  print('a')

Submission status: Runtime Error

Solution code:
inpt = input()
cap = {Q,W,E,R,T,Y,U,I,O,P,A,S,D,F,G,H,J,K,L,Z,X,C,V,B,N,M}
if inpt in cap:
    print('A')
else:
    print('a')

Submission status: Runtime Error

Solution code:
import math
import numpy as np
import matplotlib.pyplot as plt

#def main(S, b):
if __name__ == '__main__':
    a = input()
    b = a.upper()

    if (a == b):
        print('A')
    else:
        print("a")

Submission status: Runtime Error

Solution code:
def main():
    import sys
    sys.setrecursionlimit(10**9)
    input = sys.stdin.readline

    a = input()

    if ord('a') <= ord(a) <= ord('z'):
        print('a')
    else:
        print('A')
        

main()

Submission status: Runtime Error

Solution code:
imports sys

c = sys.stdin.readline()

if ord(c) >= 'a' and ord(c) <= 'z':
  print('a')
else:
  print('A')

Submission status: Runtime Error

Solution code:
a = input()

if (isupper(a)):
  print("A")
else:
  print("a")

Submission status: Runtime Error

Solution code:
a = input()
if a.isupper():
  print('A')
 else:
  print('a')

Submission status: Runtime Error

Solution code:

s = raw_input()
print 'a' if a.lower() == a else 'A'

Submission status: Runtime Error

Solution code:
#!python3.8
# -*- coding: utf-8 -*-
# abc171/abc171_a
import sys

s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [i2s() for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

def main():
    a = i2s
    print('A' if a.isupper() else 'a')
    return

main()

Submission status: Runtime Error

Solution code:
import sys
def input(): return sys.stdin.readline().strip()
import numpy as np


def main():
    x = input()
    if ord(x) <= 90: print("A")
    else: print("a")

if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
S = input()
if S.str.islower():
  print("a")
else:
  print("A")

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define all(a) (a).begin(),(a).end()
#define overload4(_1, _2, _3, _4, name, ...) name
#define rep1(n) for(ll i = 0;i < (n);i++)
#define rep2(i,n) for(ll i = 0;i < (n);i++)
#define rep3(i,a,b) for(ll i = (a);i < (b);i++)
#define rep4(i,a,b,c) for(ll i = (a);i < (b);i += (c))
#define rep(...) overload4(__VA_ARGS__, rep4, rep3, rep2, rep1)(__VA_ARGS__)
#define rrep1(n) for(ll i = (n)-1;i >= 0;i--)
#define rrep2(i,n) for(ll i = (n)-1;i >= 0;i--)
#define rrep3(i,a,b) for(ll i = (a)-1;i >= (b);i--)
#define rrep4(i,a,b,c) for(ll i = (a)-1;i >= (b);i -= (c))
#define rrep(...) overload4(__VA_ARGS__, rrep4, rrep3, rrep2, rrep1)(__VA_ARGS__)
const ll INF=1e18,MOD = 1e9+7;
const int iINF = 1e9;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    string s;
    cin>>s;
    if(s[0] >= 'a' && s[0] <= 'z'){
        cout<<'a'<<endl;
    }
    else{
        cout<<'A'<<endl;
    }

    return 0;
}

Submission status: Runtime Error

Solution code:
a = inputs()
if a.isupper():
  print("A")
else:
  print("a")

Submission status: Runtime Error

Solution code:
import sys
import math
def II():
	return int(sys.stdin.readline())

def LI():
	return list(map(int, sys.stdin.readline().split()))

def MI():
	return map(int, sys.stdin.readline().split())

def SI():
	return sys.stdin.readline().strip()
s = SI()
if s.isLower():
	print("a")
else:
	print("A")

Submission status: Runtime Error

Solution code:
x = intput()
if 'A' <= x <= 'Z':
  print("A")
else:
  print("a")

Submission status: Runtime Error

Solution code:
s = int(input())
if s == s.lower():
    print('a')
else:
    print('A')

Submission status: Runtime Error

Solution code:
X=int(input())

if X==X.lower():
    print("a")
else:
    print("A")

Submission status: Runtime Error

Solution code:
L=set("A","B")
print(L)