Submission #19488098
Source Code Expand
Copy
a = input() b = int(input()) b = b%len(a) b -= 1 print(a[b])
Submission Info
Submission Time | |
---|---|
Task | B - とても長い文字列 |
User | Katsuhito |
Language | Python (3.8.2) |
Score | 100 |
Code Size | 64 Byte |
Status | AC |
Exec Time | 27 ms |
Memory | 9016 KB |
Judge Result
Set Name | sub | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 30 / 30 | 70 / 70 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
sub | test_01A.txt, test_02A.txt, test_04A.txt, test_05A.txt, test_07A.txt, test_09A.txt, test_11A.txt, test_13A.txt, test_14A.txt, test_15A.txt, test_17A.txt, test_18A.txt |
All | sample_01.txt, sample_02.txt, sample_03.txt, test_01A.txt, test_02A.txt, test_03.txt, test_04A.txt, test_05A.txt, test_06.txt, test_07A.txt, test_08.txt, test_09A.txt, test_10.txt, test_11A.txt, test_12.txt, test_13A.txt, test_14A.txt, test_15A.txt, test_16.txt, test_17A.txt, test_18A.txt, sample_01.txt, sample_02.txt, sample_03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 21 ms | 8800 KB |
sample_02.txt | AC | 22 ms | 8964 KB |
sample_03.txt | AC | 21 ms | 8864 KB |
test_01A.txt | AC | 23 ms | 8892 KB |
test_02A.txt | AC | 18 ms | 8964 KB |
test_03.txt | AC | 24 ms | 8960 KB |
test_04A.txt | AC | 23 ms | 8808 KB |
test_05A.txt | AC | 20 ms | 8800 KB |
test_06.txt | AC | 19 ms | 8904 KB |
test_07A.txt | AC | 22 ms | 8824 KB |
test_08.txt | AC | 18 ms | 9016 KB |
test_09A.txt | AC | 20 ms | 8812 KB |
test_10.txt | AC | 26 ms | 9016 KB |
test_11A.txt | AC | 19 ms | 8964 KB |
test_12.txt | AC | 19 ms | 8864 KB |
test_13A.txt | AC | 17 ms | 8864 KB |
test_14A.txt | AC | 20 ms | 8864 KB |
test_15A.txt | AC | 18 ms | 8804 KB |
test_16.txt | AC | 19 ms | 8964 KB |
test_17A.txt | AC | 20 ms | 8892 KB |
test_18A.txt | AC | 27 ms | 8900 KB |