TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: An uppercase or lowercase English letter \alpha will be given as input. If \alpha is uppercase, print `A`; if it is lowercase, print `a`.

Submission attempts (in order):
n=int(input())
i=1
a=0
m=n
while n-26**i>0:
    n=n-26**i
    i+=1
    a+=n**i 
a 
ans=""
b=0
l=['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']
for j in range(i):
    b=m%26
    m=m//26
    if b==0:
      m=m-1
    ans=l[b-1]+ans
print(ans)

s=input()
if s.isupper()==True:
    print("A")
else:
    print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
a=input()
print('a' if a==a.lower() else 'a')

a=input()
print('a' if a==a.lower() else 'A')

Verdicts: Wrong Answer

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

Submission attempts (in order):
N,K = list(map(int,input().split()))
P = list(map(int,input().split()))

def bubblesort(l):
    for index in range(len(l)-1, 0, -1):
        for low in range(index):
            if l[low] > l[low+1]:
                tmp = l[low+1]
                l[low+1] = l[low]
                l[low] = tmp
    return l

bubblesort(P)
sum = 0
for i in range(K):
	sum = sum + P[i]
print(sum)

a = input()

if a.isupper():
	print(a.upper())
else:
	print(a)

a = input()

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

a = input()

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

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

Submission attempts (in order):
n = int(input())
list_in = list(map(int, input().split()))
q = int(input())
for i in range(q):
    bc = list(map(int, input().split()))
    for j in range(n):
        if list_in[j] == bc[0]:
            list_in[j] = bc[1]
    print(sum(list_in))

in_str = input()
if in_str.isupper() == True:
    print("A")
else:
    print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
s=input()

print(s.swapcase())

s=input()

if 65<=ord(s)<=90:
    print("A")
else:
    print("a")

Verdicts: Wrong Answer

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

Submission attempts (in order):
x = input()

if x.islower():
	an = x.upper()
else:
    an = x.lower()

 print(an)

a = input()

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

a = input()

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

Verdicts: Runtime Error

Wrong Answer

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

Submission attempts (in order):
a = input()

if str.isupper(a) == ture :
  print("A")
else :
  ptint("a")

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

Verdicts: Runtime Error

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

Submission attempts (in order):
in = input()

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

tmp = input()

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

Verdicts: Runtime Error

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

Submission attempts (in order):
s=input()
print("a" if s=s.lower() else "A")

s=input()
print("a" if s==s.lower() else "A")

Verdicts: Runtime Error

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

Submission attempts (in order):
n = int(input())
a_list = list(map(int, input().split()))
q = int(input())

for i in range(q):
    b, c = map(int, input().split())
    newlist = a_list
    for j in range(n):
        if newlist[j] == b:
          newlist[j] = c
          ans = sum(newlist)
    print(ans)


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

Verdicts: Runtime Error

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

Submission attempts (in order):
a = input()
if a.isupper():
    print(a.lower())
else:
    print(a)

n = int(input())
ans = ''
while n > 0:
    n -= 1
    ans += chr(97 + n%26)
    n //= 26
print(ans[::-1])

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


Verdicts: Wrong Answer

Runtime Error

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

Submission attempts (in order):
c = input()
print('A' if ord('A') <= ord(A) <= ord('Z') else 'a')

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

Verdicts: Runtime Error

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

Submission attempts (in order):
letter=input()

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

letter=input()

if letter==letter.upper():
    print('A')
else:
    print('a')

Verdicts: Runtime Error

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

Submission attempts (in order):
n, k = input().split(" ")
n = int(n)
k = int(k)
a = [int(x) for x in input().split(" ")]
a.sort()
ans = 0
for i in range(k):
 ans += int(a[i])
print(ans)


x = input()
print('A' if ord(x) > ord('z') else 'a') 


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


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


Verdicts: Runtime Error

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
a = input()
if a.islower():
    print(a.upper())
    exit()
else:
    print(a.lower())
    exit()

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
# -*- coding: utf-8 -*-

a = input()
if a.isupper():
    print(a.lower())
else:
    print(a.upper())


# -*- coding: utf-8 -*-

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


Verdicts: Wrong Answer

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

Submission attempts (in order):
def c(inp):
	if inp.isupper():
		return "A"
	return "B"

a = input()

if a.isupper():
	print("A")
elif a.islower():
	print("a")

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()

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

a = input()
 
if a.isupper() == True and a.isalpha() == True:
  print("A")
elif a.islower() == True and a.isalpha() == True:
  print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
N = input()
if(N.lower() = N):
  print("a")
else:
  print("A")

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

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

Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
#!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()


#!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()


Verdicts: Runtime Error

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

Submission attempts (in order):
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()


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()

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

    a = input()[:-1]

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

main()

Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
def freq(my_list):
    count = {} 
    for i in my_list: 
        count[i] = count.get(i, 0) + 1
    return count

n = int(input())
l = list(map(int, input().split()))
s,f = sum(l), freq(l)
for _ in range(int(input())):
    x, y = map(int, input().split())
    if x in f:
        v = f[x]
        if y in f:
            f[y]+=v
            f.pop(x)
        else:
            f[y]=f.pop(x)
        s += (y-x)*v
    print(s)

i= input()
print('A' if (ord(i)>64 and ord(i)<91) else 'a')

Verdicts: Runtime Error

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

Submission attempts (in order):
s = str(input())
print(s.lower())

s = str(input())
print(s.lower())

s = str(input())
a= 'A' if s.isupper() else 'a' ;
print(a)

Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
a = input()
big = range('A', 'Z')

if big.include(a):
    print 'A'
else:
    print 'a'


a = input()

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


Verdicts: Runtime Error

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

Submission attempts (in order):
if input().upper()==input():
  print("A")
else:
  print("a")

S=input()
if S.upper()==S:
  print("A")
else:
  print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
import sys

input_list = sys.stdin.readlines()

count = 1
get_count = 0
get_value_count = 0
for i in input_list:
  get_values = i.split()
  if count == 1:
    get_value_count = int(get_values[0])
    get_count = int(get_values[1])
  else:
    if get_value_count == 1:
      print(get_values[0])
    else:
      get_values.sort()
      count_value = 1
      p = 0
      for c in get_values:
        if count_value > get_count:
          print(str(p))
        else:
          p = p + int(c)
        count_value = count_value + 1
  count = count + 1

input_line = input()
 
if input_line.isupper() == True:
  print("A")
else:
  print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
a = str(input())
if a == a.upper() :
  print(a.lower())
else :
  print(a.upper())

a = str(input())
if a == a.upper() :
  print("A")
else :
  print("a")

Verdicts: Wrong Answer

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

Submission attempts (in order):
if α.isupper() = True :
  print("A")
else:
  print("B")

α = input()

if α.isupper() == True :
  print("A")
if α.islower() == True :
  print("a")


Verdicts: Runtime Error

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

Submission attempts (in order):
a = input()
if a.islower:
  print("a")
else:
  print("A")

a = input()
if a.islower():
  print("a")
else:
  print("A")

Verdicts: Wrong Answer

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

Submission attempts (in order):
s = input()
print(s.swapcase())

s = input()
print("A") if s.isupper() else print("a")

Verdicts: Wrong Answer

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

Submission attempts (in order):
def main():
    n = int(input())
    alphabets = [None] + [chr(ord("a") + x) for x in range(26)]
    
    
    
    
    
    

    
    cnt = 0
    m = n
    while m > 0:
        cnt += 1
        m -= 26 ** cnt
    #print(cnt)

    
    num = []
    for i in range(cnt):
        
        y = n % (26 ** (i+1))
        
        if y == 0:
          num += [26]
        else:
          n -= y
          num += [y // (26**i)]

    #print(num)

    ans = ""
    for s in num[::-1]:
        ans += alphabets[s]
    print(ans)


if __name__ == "__main__":
    main()


def main():
    s = input()
    alphabets = [chr(ord("a") + x) for x in range(26)]
    if s in alphabets:
        print("a")
    else:
        print("A")


if __name__ == "__main__":
    main()


Verdicts: Runtime Error

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

Submission attempts (in order):
a=input()
print('a' if a.islower else 'A')

a=input()
print('A' if a.islower() else 'a')

a=input()
print('A' if a.islower() else 'a')

a=input()
print('a' if a.islower() else 'A')

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
import sys
n = int(input())
an = list(map(int, sys.stdin.readline().rstrip().split()))
q = int(input())

import numpy as np

sum = np.sum(an)


for _ in range(q):
    b,c = map(int, input().split())
    for i in range(n):
        if b == an[i]:
            an[i]=c
            sum += c-b
    print(sum)

alpha = str(input())

if alpha in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ':
    print('A')
else:
    print('a')

Verdicts: Runtime Error

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

Submission attempts (in order):
n=int(input())
ans=''
while n>=26:
    s=n%26
    n=n//26
    ans+=(chr(s+96))
ans+=(chr(n+96))
print(ans)

n=int(input())
A=list()
ans=''
while n>=26:
    s=n%26
    n=n//26
    ans+=(chr(s+96))
ans+=(chr(n+96))
print(ans)

a=input()
   
if str.isupper(a):
    print("A")
else:
    print("a")

Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
  1 ini = lambda : int(input())
  2 inm = lambda : map(int,input().split())
  3 inl = lambda : list(map(int,input().split()))
  4 gcd = lambda x,y : gcd(y,x%y) if x%y else y
  5 a = input()
  6 if ord(a) < ord('a'):
  7         print('A')
  8 else: 
  9         print('a')


import sys

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

Verdicts: Runtime Error

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

Submission attempts (in order):
letter = input()
  
if letter.isUpper()==True:
  print('A')
else:
  print('a')
  

letter = input()

if letter.isupper()==True:
  print('A')
else:
  print('a')

Verdicts: Runtime Error

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

Submission attempts (in order):
a = int(input())

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

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

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

Verdicts: Runtime Error

Wrong Answer

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

Submission attempts (in order):
A = input()
print('A') if A.issuper() else print('a')
  

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

Verdicts: Runtime Error

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

Submission attempts (in order):
num = int(input())
d = {"a":1,"b":2,"c":3,"d":4,"e":5,"f":6,"g":7,"h":8,"i":9,"j":10,"k":11,"l":12,"m":13,"n":14,"o":15,"p":16,"q":17,"r":18,"s":19,"t":20,"u":21,"v":22,"w":23,"x":24,"y":25,"z":0}
op_d = {}
for i,j in d.items():
    op_d[j] = i
ans =""
for i in list(range(0,12))[::-1]:
    if(int(num/(26**i)) == 0 ):
        pass
    else:
        ans += op_d[int(num/(26**i))]
        num = num % 26**i;
print(ans)

a =input()
if(a.islower):
    print("a")
else:
    print("A")

a =input()
if(a.islower()):
    print("a")
else:
    print("A")

Verdicts: Runtime Error

Wrong Answer

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

Submission attempts (in order):
a = input()
if a.upper() == a
    print("A")
else:
    print("a")

n, k = map(int,input().split())
a = sorted(list(map(int,input().split())))
print(sum(a[:k]))

a = input()
if a == a.upper():
    print("A")
else:
    print("a")

Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
S = input()

if S.islower():
    print("A")
else:
    print("a")

S = input()

if S.islower():
    print("a")
else:
    print("A")

Verdicts: Wrong Answer

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

Submission attempts (in order):
α　= input()
if α.isupper():
    print('A')
else:
    print('a')

α = input('input your favorite alpabet:')
if α.isupper():
    print('A')
else:
    print('a')

α　= input('input your favorite alpabet:')
if α.isupper():
    print('A')
elif α.islower:
    print('a')


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


Verdicts: Runtime Error

Wrong Answer

Runtime Error

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

Submission attempts (in order):
a = input()
ans = a.lower() if a.upper() == a else a.upper()
print(ans)


a = input()
ans = "A" if a.upper() == a else "a"
print(ans)

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()
if a == type.lower():
    print('a')
elif a == type.upper():
    print('A') 
	

a = input()
if a.islower():
    print('a')
elif a.isupper():
    print('A') 


Verdicts: Runtime Error

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

Submission attempts (in order):
alfa = input()
if str.isupper('alfa'):
  print('A')
else:
  print('a')

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
x = input()
if X.isupper():
  print('A')
else:
  print('a')

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


Verdicts: Runtime Error

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

Submission attempts (in order):
s=input()

if s>"A":
  print("a")
else:
  print("A")

s=input()

if s in "abcdefghijklmnopqrstuvwxyz":
  print("a")
else:
  print("A")

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input().strip()
if a <= z:
  print('a')
else:
  print('A')

a = input().strip()

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

Verdicts: Runtime Error

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

Submission attempts (in order):
s = input()
if s.isupper == True:
  print('A')
else:
  print('a')

s = input()
print(str.swapcase(s))

s = input()
if s.isupper() == True:
  print('A')
else:
  print('a')

Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
a = str(input())
ans = str(upper(a))
if a = ans:
  print("A")
else:
  print("a")

a = input()
ans = upper(a)
if a = ans:
  print("A")
else:
  print("a")

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")

Verdicts: Runtime Error

Runtime Error

Runtime Error

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

Submission attempts (in order):
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")

word = 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 word in A:
    print("A")
else:
    print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
2
1 2
3
1 100
2 100
100 1000

a = input()
print('A' if 'A' <= a <= 'Z' else 'a')

Verdicts: Runtime Error

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

Submission attempts (in order):
s=str(input())
if s.isupper()=True:
  print("A")
else:
  print("a")

s=str(input())
if s.isupper()==True:
  print("A")
else:
  print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
import sys
input=sys.stdin.readline
sys.setrecursionlimit(10**6)

s=input().rstrip()
if s.isupper():print(s.lower())
else:print(s.upper())

import sys
input=sys.stdin.readline
sys.setrecursionlimit(10**6)

s=input().rstrip()
if s.isupper():print("A")
else:print("a")

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = str(input())
if a == isupper():
    print('A')
elif a == islower():
    print('a')


a = str(input())
if a = ('A'-'Z'):
    print('A')
elif a = ('a'-'z'):
    print('a')

a=input()
if a.isupper():
  print('A')
elif a.lower():
  print('a')

Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
import sys
i = input()
if not ( i.isupper() or i.islower() ): sys.exit()

if i.isupper(): print(i.lower())
if i.islower(): print(i.upper())

import sys
i = input()
if not ( i.isupper() or i.islower() ): sys.exit()

if i.isupper(): print('A')
if i.islower(): print('a')

Verdicts: Wrong Answer

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

Submission attempts (in order):
import numpy as np
import sys
import math
import itertools
import collections

a = input()
print(a.swapcase())

import numpy as np
import sys
import math
import itertools
import collections

a = input()

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
n=int(input())
a=[int(i) for i in input().split()]
x=0
for i in a:
    x^=i

b=[x^i for i in a]
for i in b:
    print(i,end=" ")

a = str(input())

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

Verdicts: Runtime Error

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

Submission attempts (in order):
import sys

print('アルファベットを入力')
a=input()

b=ord(a)

if b>=65 and b<=90:
    print('A')

elif b>=97 and b<=122:
    print('a')

else:
    print('エラー')


import sys

a=input()
b=ord(a)

if b>=65 and b<=90:
    print('A')

elif b>=97 and b<=122:
    print('a')

else:
    print('エラー')


Verdicts: Wrong Answer

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

Submission attempts (in order):
# coding cell (SUBMIT ONLY THIS CELL)

S = input()

if S.islower():
    print(S.upper())
else:
    print(S.lower())






# coding cell (SUBMIT ONLY THIS CELL)

S = input()

if S.islower():
    print("a")
else:
    print("A")






Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()
print('A' if a.islower() else 'a')

s = input()
if s.isupps = input()
if s.isupper():
    print('A')
else:
    print('a')

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

Verdicts: Wrong Answer

Runtime Error

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

Submission attempts (in order):
M = int(input())
if M == M.upper():
  print("A")
else:
  print("a")

a = input()
print('A' if a.islower() else 'a')

M = input()
print('A'if M.islower() else 'a')

N = input()
print('A' if N.isupper() else 'a')

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
s=input()
if s.lowercase():
  print("A")
else:
  print("a")

s=input()
if s.islower():
  print("A")
else:
  print("a")

s=input()
if s.islower():
  print("a")
else:
  print("A")

Verdicts: Runtime Error

Wrong Answer

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

Submission attempts (in order):
a=input()
if a==a.upeer():
  print("A")
else:
  print("a")

a=input()
if a==a.upper():
  print("A")
else:
  print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
kotae = str(input())
print(kotae.swapcase())

kotae = str(input())
if kotae.isupper() == True:
    print("A")
else:
    print("a")

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = str(input())
if a = str.isupper():
  print("A")
else:
  print("a")

α　= input()
if α.islower():
  print("A")
else:
  print("a")

a = str(input())
if a.isupper():
  print("A")
else:
  print("a")

Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
n = int(input())
c = 0
n1 = 0
n1 += n
for i in range(1,12):
    a = n1 - 26**(i)
    c += 1
    if a <= 0:
        break
    n1 = n1 - 26**(i)
a = ""
for i in range(c):
    if n // 26**(c-i-1) >= 26:
        alpha = 26
        n = n - 26**(c-i)
    else:
        alpha = n // 26**(c-i-1)
        n = n % 26**(c-i-1)
    a += chr(96 + alpha)
print(a)

a = input()
if str.upper(a) == a:
    print("A")
else:
    print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
# H, W = map(int,input().split())
a = input()


if a.islower():
    print(a.upper())
else:
    print(a.lower())

# H, W = map(int,input().split())
a = input()


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

Verdicts: Wrong Answer

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

Submission attempts (in order):
if input().isUpper():
  print('A')
else:
  print('a')

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

Verdicts: Runtime Error

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

Submission attempts (in order):
al = str(input())
if al.isupper() = true:
	print('A')
else:
	print('a')

al = str(input())
if al.isupper():
	print('A')
else:
	print('a')

Verdicts: Runtime Error

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

Submission attempts (in order):
if input()islower():
    print("a")
else:
    print("A")

if input().islower():
    print("a")
else:
    print("A")

Verdicts: Runtime Error

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

Submission attempts (in order):
moji = input()
if moji.isupper():
    print(moji.upper())
else:
    print(moji.lower())

moji = input()
if moji.isupper():
    print("A")
else:
    print("a")

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()
if a.isupper():
  print("A)
else:
  print("a")

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


Verdicts: Runtime Error

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

Submission attempts (in order):
x = str(input())
print(x.swapcase())

x = str(input())
if x.isupper():
  print('A')
else :
  print('a')

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()
　 print('A' if a.islower() else 'a')

alpha = input()
if alpha.islower():
    print('A')
else:
    print('a')

a = input()
2 print('A' if a.islower() else 'a')

a = input()
print('A' if a.islower() else 'a')

alpha = input()
if alpha.islower():
    print('a')
else:
    print('A')

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

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

Submission attempts (in order):
from collections import defaultdict
from heapq import heappush, heappop
import sys


def main(K, N):
    P = 10 ** 9 + 7

    P25 = [1] * (K + 1)
    P26 = [1] * (K + 1)
    F = [1] * (N + K)
    INV = [1] * (N + K)
    INVF = [1] * (N + K)

    p25 = 1
    p26 = 1
    for i in range(1, K + 1):
        p25 *= 25
        p25 %= P
        P25[i] = p25

        p26 *= 26
        p26 %= P
        P26[i] = p26

    f = 1
    invf = 1
    for i in range(2, N + K):
        f *= i
        f %= P
        F[i] = f
        q, r = divmod(P, i)
        INV[i] = -INV[r] * q % P
        invf *= INV[i]
        invf %= P
        INVF[i] = invf

    def comb_rep(n, r):
        return (F[n + r - 1] * INVF[r] % P) * INVF[n - 1] % P

    ret = 0
    for i in range(K + 1):
        ret += (
            P25[i] *
            P26[K - i] % P *
            comb_rep(N, i) % P
        )
    return (ret % P)


if sys.argv[-1] == 'ONLINE_JUDGE':
    print("compiling")
    from numba.pycc import CC
    cc = CC('my_module')
    cc.export('main', 'i8(i8,i8)')(main)
    cc.compile()
    exit()
else:
    from my_module import main
    K = int(input())
    S = input()
    print(main(K, len(S)))


s = input()

if s == s.upper():
  print("A")
else:
  print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
num = input().split(" ")
num_all = int(num[0])
count = int(num[1])
cost = list(map(int, input().split()))
cost.sort()
last = 0
for i in range(count):
  last += cost[i]
print(last)

word = input()
if word.islower() == True:
  print("a")
else:
  print("A")

Verdicts: Runtime Error

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

Submission attempts (in order):
n, k = map(int, input().split())
p = list(map(int, input().split()))
p.sort()
price = 0
for i in range(k):
  price += p[i]
print(price)


n, k = map(int, input().split())
p = list(map(int, input().split()))
p.sort()
price = 0

for i in range(k):
	  price += p[i]
  
print(price)


n, k = map(int, input().split())
p = list(map(int, input().split()))
p.sort()
price = 0

for i in range(k):
  price += p[i]
  
print(price)


n, k = map(int, input().split())
p = list(map(int, input().split()))
p.sort()
ans = 0

for i in range(k):
  ans += p[i]
  
print(ans)


n, k = map(int, input().split())
p = list(map(int, input().split()))
p.sort()
price = 0

for i in range(k):
  price += p[i]
  
print(price)


alpha = input()
print('A' if alpha.isupper() else 'a')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

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

Submission attempts (in order):
alpha = input()

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

import string
alpha = input()



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

Verdicts: Runtime Error

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

Submission attempts (in order):
a=str(input())
if a.islower()==True:
    print(a)
else:
    print(A)

a=str(input())
if a.islower():
    print(a)
else:
    print(A)

a=str(input())
if a.islower():
    print(a)
else:
    print(A)

a=str(input())
print(string.upper())

a=str(input())
if a.islower():
    print(a)
else:
    print(A)

a=str(input())
if a.islower()==True:
    print('a')
else:
    print('A')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

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

Submission attempts (in order):
x = input()
if x.isUpper():
  print('A')
else:
  print('a')

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


Verdicts: Runtime Error

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

Submission attempts (in order):
α = input()

if α in "qwertyuiopasdfghjklzxcvbnm":
    print("A")
else:
    print("B")

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
t = input()
# nums = map(int, input().split())

if t == t.upper():
	print(t.lower())
else:
	print(t)


t = input()
# nums = map(int, input().split())

if t == t.upper():
	print('A')
else:
	print('a')

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()
if ord(a) >= 'a' and ord(a) <= 'z':
    print("a")
else:
    print("A")


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


Verdicts: Runtime Error

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

Submission attempts (in order):
Print("A" if str.isupper(input()) else "a")

N=input()
print("A" if str.isupper(N) else "a")

Verdicts: Runtime Error

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

Submission attempts (in order):
x = input()

ans = x.islower()


if ans == false:
  print('A')
else:
  print('a')

x = input()

ans = x.islower()


if ans == False:
  print('A')
else:
  print('a')

Verdicts: Runtime Error

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

Submission attempts (in order):
S = input()
print (S)

n = input()
m = n.split()
print(m)
a = [input() for l in range(0,1)]
b = a[0].split()
print(b)

for i in range(0, len(b)):
    b[i] = int(b[i])

c = sorted(b, reverse=True)
print(c)
p = 0
for i in range(int(m[0]) - int(m[1]),int(m[0])):
    p = p + int(c[i])
print(int(p))

S = input()
if (S.isupper()) == True:
    print ('A')
else:
    print ('a')

Verdicts: Wrong Answer

Runtime Error

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

Submission attempts (in order):
print('A' if(input().islower()) else 'a')

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()
S = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
s = "abcdefghijklmnopqrstuvwxyz"

if S.find(a) == -1:
    print(S[s.find(a)])
else:
    print(s[S.find(a)])

a = input()
S = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
s = "abcdefghijklmnopqrstuvwxyz"

if a in S:
    print("A")
else:
    print("a")
    

Verdicts: Wrong Answer

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

Submission attempts (in order):
n=int(input())
if n.islower():
  print('a')
else:
  print('A')


n=input()
if n.islower():
  print('a')
else:
  print('A')


Verdicts: Runtime Error

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

Submission attempts (in order):
α = int(input())
if α.isupper():
  print('A')
else:
  print('a')

α = int(input())
if str.isupper(α):
  print('A')
else:
  print('a')

α = int(input())
if str.isupper():
  print('A')
else:
  print('a')

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

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

Submission attempts (in order):
alp=input()

if alp==alp.upper():
  print(alp.lower())
elif alp==alp.lower():
  print(alp.upper())

alp=input()

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
n, k = map(int, input().split())
list = list(input().split())

new_list = sorted(list)

print(new_list)

j = 0
i = 0

while i <= k-1:
  j += int(new_list[i])
  i += 1

print(j)

n, k = map(int, input().split())
li = list(input().split())

new_list = sorted(li)

j = 0
i = 0

while i <= k-1:
  j += int(new_list[i])
  i += 1

print(j)

n, k = map(int, input().split())
li = list(input().split())

j = 0
i = 0

while i <= k-1:
  j += int(new_list[i])
  i += 1

print(j)

n, k = map(int, input().split())
list = list(input().split(' '))

new_list = sorted(list)

j = 0
i = 0

while i <= k-1:
  j += int(new_list[i])
  i += 1

print(j)

alpha = input()

if alpha.isupper():
  print('A')
elif alpha.islower():
  print('a')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

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

Submission attempts (in order):
n = int(input())

from scipy.special import comb


def num2alpha(num):
    if num<=26:
        return chr(64+num)
    elif num%26==0:
        return num2alpha(num//26-1)+chr(90)
    else:
        return num2alpha(num//26)+chr(64+num%26)

print(num2alpha(n).lower())

a=input()
if a.islower()==True:
  print("a")
else:
  print("A")

Verdicts: Runtime Error

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

Submission attempts (in order):
print(str.swapcase(input()))

print('A'if str.isupper(input()) else 'a')

Verdicts: Wrong Answer

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

Submission attempts (in order):
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")

Verdicts: Wrong Answer

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

Submission attempts (in order):
a=input()
print('A' if a.islower() else 'a')



#include <algorithm>
using namespace std;

int main()
{
	char a;
	cin >> a;
	if (isupper(a))cout << 'A';
	else
		cout << 'a';
}

a=input()
print('a' if a.islower() else 'A')

Verdicts: Wrong Answer

Runtime Error

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

Submission attempts (in order):
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
#define STR 10
int main(){
    char a;
    scanf("%c",&a);
    if(isupper(a)==0){
        printf("a");
    }else{
        printf("A");
    }
    return 0;
}

c=input()
if c.isupper == True:
    print('A')
else:
    print('a')

c=input()
if c.isupper == True:
    print('A')
elif c.islower == True:
    print('a')

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

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
n = ord(input()) - 65
if n < 26:
    print(chr(n + 32))
else:
    print(chr(n - 32))


n = ord(input()) - 65
if n < 26:
    print("A")
else:
    print("a")


Verdicts: Wrong Answer

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

Submission attempts (in order):
IN = input()
if str.isupper(IN):
  return "A"
else:
  return "a"

IN = input()
if IN.str.isupper():
  return "A"
else:
  return "a"

s = input()
if s.isupper():
  print("A")
else:
  print("a")

Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
N = int(input())
A = list(map(int, input().split()))
Q = int(input())
num=[]
for i in range(100000):
    num.append(A.count(i))

total=sum(A)
for i in range(Q):
    B, C = map(int, input().split())
    print(total + (C - B) * num[B])
    total=total + (C - B) * num[B]
    num[C] += num[B]
    num[B] -= num[B]
    

N = int(input())
A = list(map(int, input().split()))
Q = int(input())
num=[]
amax=max(A)
for i in range(amax):
    num.append(A.count(i))

total=sum(A)
for i in range(Q):
    B, C = map(int, input().split())
    print(total + (C - B) * num[B])
    total=total + (C - B) * num[B]
    num[C] += num[B]
    num[B] -= num[B]
    

alpha=str(input())
check=alpha.isupper()

if check==True:
    print("A")
else:
    print("a")


Verdicts: Runtime Error

Runtime Error

Accepted