Submission #65068402
Source Code Expand
""" <方針> - シミュレーションをする。 - 行列を管理する上で、`deque` を用いる。 """ # ライブラリ from collections import deque # 行列 q = deque() # シミュレーション for _ in range(int(input())): match list(map(int, input().split())): case [1, X]: # 行列に並ぶ q.append(X) case [2]: # 先頭を出力 print(q.popleft())
Submission Info
Submission Time | |
---|---|
Task | B - Restaurant Queue |
User | mattsunkun |
Language | Python (PyPy 3.10-v7.3.12) |
Score | 200 |
Code Size | 421 Byte |
Status | AC |
Exec Time | 70 ms |
Memory | 77100 KiB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_sample_00.txt, 00_sample_01.txt |
All | 00_sample_00.txt, 00_sample_01.txt, 01_test_00.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt, 01_test_10.txt, 01_test_11.txt, 01_test_12.txt, 01_test_13.txt, 01_test_14.txt, 01_test_15.txt, 01_test_16.txt, 01_test_17.txt, 01_test_18.txt, 01_test_19.txt, 01_test_20.txt, 01_test_21.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 67 ms | 77100 KiB |
00_sample_01.txt | AC | 68 ms | 76668 KiB |
01_test_00.txt | AC | 68 ms | 76624 KiB |
01_test_01.txt | AC | 68 ms | 76892 KiB |
01_test_02.txt | AC | 70 ms | 76960 KiB |
01_test_03.txt | AC | 69 ms | 76860 KiB |
01_test_04.txt | AC | 68 ms | 76940 KiB |
01_test_05.txt | AC | 68 ms | 76752 KiB |
01_test_06.txt | AC | 69 ms | 77028 KiB |
01_test_07.txt | AC | 68 ms | 76976 KiB |
01_test_08.txt | AC | 68 ms | 76780 KiB |
01_test_09.txt | AC | 68 ms | 76648 KiB |
01_test_10.txt | AC | 68 ms | 76752 KiB |
01_test_11.txt | AC | 68 ms | 76912 KiB |
01_test_12.txt | AC | 68 ms | 76632 KiB |
01_test_13.txt | AC | 68 ms | 76956 KiB |
01_test_14.txt | AC | 69 ms | 76940 KiB |
01_test_15.txt | AC | 68 ms | 76636 KiB |
01_test_16.txt | AC | 68 ms | 76704 KiB |
01_test_17.txt | AC | 68 ms | 76848 KiB |
01_test_18.txt | AC | 68 ms | 76640 KiB |
01_test_19.txt | AC | 68 ms | 76828 KiB |
01_test_20.txt | AC | 67 ms | 76672 KiB |
01_test_21.txt | AC | 68 ms | 76708 KiB |