Submission #3291386

Source Code Expand

Copy
n = int(input())

l = [111, 222, 333, 444, 555, 666, 777, 888, 999]
i = 0
while n > l[i]: i += 1

print(l[i])

Submission Info

Submission Time
Task B - AtCoder Beginner Contest 111
User showyou41
Language Python3 (3.4.3)
Score 200
Code Size 115 Byte
Status
Exec Time 17 ms
Memory 2940 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample1.txt, sample2.txt, sample3.txt
All 200 / 200 sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, sample1.txt, sample2.txt, sample3.txt
Case Name Status Exec Time Memory
1.txt 16 ms 2940 KB
2.txt 17 ms 2940 KB
3.txt 17 ms 2940 KB
4.txt 17 ms 2940 KB
5.txt 17 ms 2940 KB
6.txt 17 ms 2940 KB
7.txt 17 ms 2940 KB
8.txt 17 ms 2940 KB
9.txt 17 ms 2940 KB
sample1.txt 17 ms 2940 KB
sample2.txt 17 ms 2940 KB
sample3.txt 17 ms 2940 KB