Submission #54334858
Source Code Expand
S = input()
small_cnt = 0
large_cnt = 0
for s in S:
if s.islower():
small_cnt += 1
else:
large_cnt += 1
if small_cnt < large_cnt:
S = S.upper()
print(S)
else:
S = S.lower()
print(S)
Submission Info
| Submission Time | |
|---|---|
| Task | B - Uppercase and Lowercase |
| User | tk1311 |
| Language | Python (PyPy 3.10-v7.3.12) |
| Score | 200 |
| Code Size | 238 Byte |
| Status | AC |
| Exec Time | 60 ms |
| Memory | 76764 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| 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 | 59 ms | 76636 KiB |
| 00_sample_01.txt | AC | 59 ms | 76492 KiB |
| 00_sample_02.txt | AC | 60 ms | 76268 KiB |
| 01_random_00.txt | AC | 59 ms | 76412 KiB |
| 01_random_01.txt | AC | 60 ms | 76708 KiB |
| 01_random_02.txt | AC | 59 ms | 76248 KiB |
| 01_random_03.txt | AC | 60 ms | 76452 KiB |
| 01_random_04.txt | AC | 60 ms | 76432 KiB |
| 01_random_05.txt | AC | 59 ms | 76764 KiB |
| 01_random_06.txt | AC | 59 ms | 76424 KiB |
| 01_random_07.txt | AC | 59 ms | 76680 KiB |
| 01_random_08.txt | AC | 60 ms | 76388 KiB |
| 01_random_09.txt | AC | 60 ms | 76432 KiB |