Submission #52553391
Source Code Expand
# -*- coding: utf-8 -*-
S = input()
if S != "ABC316" and int(S[3:6]) <= 349 and int(S[3:6]) > 0 and "ABC" in S and len(S) == 6:
print("Yes")
else:
print("No")
Submission Info
| Submission Time | |
|---|---|
| Task | A - Past ABCs |
| User | DINGOO |
| Language | Python (CPython 3.11.4) |
| Score | 100 |
| Code Size | 171 Byte |
| Status | AC |
| Exec Time | 10 ms |
| Memory | 8644 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| 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, sample_01.txt, sample_02.txt, sample_03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| random_01.txt | AC | 9 ms | 8484 KiB |
| random_02.txt | AC | 9 ms | 8484 KiB |
| random_03.txt | AC | 9 ms | 8468 KiB |
| random_04.txt | AC | 9 ms | 8592 KiB |
| random_05.txt | AC | 9 ms | 8428 KiB |
| random_06.txt | AC | 9 ms | 8512 KiB |
| random_07.txt | AC | 10 ms | 8524 KiB |
| sample_01.txt | AC | 10 ms | 8520 KiB |
| sample_02.txt | AC | 9 ms | 8644 KiB |
| sample_03.txt | AC | 9 ms | 8492 KiB |