Submission #31186254
Source Code Expand
Copy
s = input()ok = Trueif len(s) != len(set(s)):ok = Falseupper = Falsefor c in s:if c.isupper():upper = Truelower = Falsefor c in s:if c.islower():lower = Trueif ok and upper and lower:print('Yes')else:print('No')
s = input() ok = True if len(s) != len(set(s)): ok = False upper = False for c in s: if c.isupper(): upper = True lower = False for c in s: if c.islower(): lower = True if ok and upper and lower: print('Yes') else: print('No')
Submission Info
Submission Time | |
---|---|
Task | B - Perfect String |
User | tvthanh95 |
Language | Python (3.8.2) |
Score | 200 |
Code Size | 277 Byte |
Status | AC |
Exec Time | 24 ms |
Memory | 8984 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example_00.txt, example_01.txt, example_02.txt, example_03.txt |
All | example_00.txt, example_01.txt, example_02.txt, example_03.txt, test_00.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
example_00.txt | AC | 18 ms | 8984 KB |
example_01.txt | AC | 18 ms | 8924 KB |
example_02.txt | AC | 19 ms | 8840 KB |
example_03.txt | AC | 19 ms | 8836 KB |
test_00.txt | AC | 19 ms | 8840 KB |
test_01.txt | AC | 17 ms | 8844 KB |
test_02.txt | AC | 19 ms | 8840 KB |
test_03.txt | AC | 17 ms | 8760 KB |
test_04.txt | AC | 18 ms | 8928 KB |
test_05.txt | AC | 22 ms | 8892 KB |
test_06.txt | AC | 19 ms | 8888 KB |
test_07.txt | AC | 19 ms | 8888 KB |
test_08.txt | AC | 23 ms | 8756 KB |
test_09.txt | AC | 17 ms | 8868 KB |
test_10.txt | AC | 22 ms | 8896 KB |
test_11.txt | AC | 24 ms | 8892 KB |
test_12.txt | AC | 18 ms | 8880 KB |
test_13.txt | AC | 19 ms | 8764 KB |