Submission #54327302


Source Code Expand

s = input()
u = s.upper()
l = s.lower()
if sum([l[i] == s[i] for i in range(len(s))]) > sum([u[i] == s[i] for i in range(len(s))]):
    print(l)
else:
    print(u)

Submission Info

Submission Time
Task B - Uppercase and Lowercase
User noriaoki
Language Python (PyPy 3.10-v7.3.12)
Score 200
Code Size 169 Byte
Status AC
Exec Time 54 ms
Memory 76708 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 13
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 54 ms 76416 KiB
00_sample_01.txt AC 54 ms 76664 KiB
00_sample_02.txt AC 54 ms 76684 KiB
01_random_00.txt AC 54 ms 76388 KiB
01_random_01.txt AC 54 ms 76452 KiB
01_random_02.txt AC 54 ms 76436 KiB
01_random_03.txt AC 54 ms 76516 KiB
01_random_04.txt AC 54 ms 76668 KiB
01_random_05.txt AC 54 ms 76332 KiB
01_random_06.txt AC 54 ms 76248 KiB
01_random_07.txt AC 54 ms 76416 KiB
01_random_08.txt AC 54 ms 76452 KiB
01_random_09.txt AC 54 ms 76708 KiB