Submission #47036162
Source Code Expand
N = int(input())
L =list()
for i in range(0,10):
L.append(100+10*i+i)
for i in range(2,6):
for j in range(0,7-i):
L.append(100*i+10*j+i*j)
for i in range(6,10):
L.append(100*i)
L.append(100*i+10+i)
K=919
c=len(L)-1
if N == 100:
print(100)
elif N == 919:
print(919)
else:
while K >= N:
K = L[c-1]
c -= 1
print(L[c+1])
Submission Info
| Submission Time | |
|---|---|
| Task | B - 326-like Numbers |
| User | Lilacx621 |
| Language | Python (CPython 3.11.4) |
| Score | 200 |
| Code Size | 428 Byte |
| Status | AC |
| Exec Time | 10 ms |
| Memory | 8684 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt |
| All | random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, sample_01.txt, sample_02.txt, sample_03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| random_01.txt | AC | 10 ms | 8684 KiB |
| random_02.txt | AC | 10 ms | 8508 KiB |
| random_03.txt | AC | 10 ms | 8628 KiB |
| random_04.txt | AC | 9 ms | 8504 KiB |
| random_05.txt | AC | 10 ms | 8520 KiB |
| random_06.txt | AC | 10 ms | 8436 KiB |
| random_07.txt | AC | 10 ms | 8448 KiB |
| random_08.txt | AC | 9 ms | 8596 KiB |
| random_09.txt | AC | 9 ms | 8380 KiB |
| random_10.txt | AC | 10 ms | 8548 KiB |
| random_11.txt | AC | 9 ms | 8552 KiB |
| random_12.txt | AC | 10 ms | 8476 KiB |
| sample_01.txt | AC | 10 ms | 8544 KiB |
| sample_02.txt | AC | 10 ms | 8536 KiB |
| sample_03.txt | AC | 9 ms | 8424 KiB |