Submission #54334753


Source Code Expand

S = input()

n_lower = 0
n_upper = 0
for s in S:
    if s.islower():
        n_lower += 1
    else:
        n_upper += 1

if n_lower > n_upper:
    print(S.lower())
else:
    print(S.upper())

Submission Info

Submission Time
Task B - Uppercase and Lowercase
User Raki
Language Python (CPython 3.11.4)
Score 200
Code Size 206 Byte
Status AC
Exec Time 9 ms
Memory 8676 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 9 ms 8492 KiB
00_sample_01.txt AC 9 ms 8496 KiB
00_sample_02.txt AC 9 ms 8420 KiB
01_random_00.txt AC 9 ms 8440 KiB
01_random_01.txt AC 9 ms 8676 KiB
01_random_02.txt AC 9 ms 8484 KiB
01_random_03.txt AC 9 ms 8452 KiB
01_random_04.txt AC 9 ms 8508 KiB
01_random_05.txt AC 9 ms 8520 KiB
01_random_06.txt AC 9 ms 8488 KiB
01_random_07.txt AC 9 ms 8440 KiB
01_random_08.txt AC 9 ms 8644 KiB
01_random_09.txt AC 9 ms 8548 KiB