Submission #2241676
Source Code Expand
def main(): N, M, D = map(int, input().split()) A = tuple(map(int, input().split())) x = [i for i in range(N + 1)] org = tuple(x) n = [] apndn = n.append num = 0 while 1: for i in A: x[i], x[i+1] = x[i+1], x[i] y = tuple(x) num += 1 if y == org: break else: apndn(y) i = D % num - 1 for j in range(1, N + 1): print(n[i].index(j)) main()
Submission Info
Submission Time | |
---|---|
Task | D - 阿弥陀 |
User | agw02010 |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 488 Byte |
Status | RE |
Exec Time | 4235 ms |
Memory | 516328 KB |
Judge Result
Set Name | Subtask1 | Subtask2 | Subtask3 | Subtask4 | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 10 | 0 / 20 | 0 / 20 | 0 / 50 | ||||||||||||||||||||||||
Status |
|
|
|
|
Set Name | Test Cases |
---|---|
Subtask1 | sample_1.txt, 01_i.txt, 01_random01.txt, 01_random02.txt, 01_random03.txt, 01_random04.txt, 01_random05.txt, 01_random06.txt, 01_random07.txt |
Subtask2 | sample_1.txt, sample_2.txt, sample_3.txt, 02_i.txt, 02_p.txt, 02_random01.txt, 02_random02.txt, 02_random03.txt, 02_random04.txt, 02_random05.txt, 02_random06.txt, 02_random07.txt, 02_random08.txt, 02_rp01.txt, 02_rp02.txt, 02_rp03.txt, 02_rp04.txt, 02_rp05.txt |
Subtask3 | sample_1.txt, sample_2.txt, 03_i.txt, 03_random01.txt, 03_random02.txt, 03_random03.txt, 03_random04.txt, 03_random05.txt, 03_random06.txt, 03_random07.txt, 03_random08.txt, 03_random09.txt, 03_random10.txt, 03_random11.txt, 03_random12.txt, 03_random13.txt, 03_random14.txt, 03_random15.txt |
Subtask4 | sample_1.txt, sample_2.txt, sample_3.txt, 04_i.txt, 04_p1.txt, 04_p2.txt, 04_random01.txt, 04_random02.txt, 04_random03.txt, 04_random04.txt, 04_random05.txt, 04_random06.txt, 04_random07.txt, 04_random08.txt, 04_random09.txt, 04_random10.txt, 04_random11.txt, 04_random12.txt, 04_random13.txt, 04_rp01.txt, 04_rp02.txt, 04_rp03.txt, 04_rp04.txt, 04_rp05.txt, 04_rp06.txt, 04_rp07.txt, 04_rp08.txt, 04_rp09.txt, 04_rp10.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01_i.txt | RE | 106 ms | 25916 KB |
01_random01.txt | RE | 17 ms | 3064 KB |
01_random02.txt | AC | 17 ms | 3064 KB |
01_random03.txt | AC | 17 ms | 3064 KB |
01_random04.txt | TLE | 4209 ms | 70644 KB |
01_random05.txt | TLE | 4235 ms | 516328 KB |
01_random06.txt | TLE | 4212 ms | 133144 KB |
01_random07.txt | TLE | 4210 ms | 104688 KB |
02_i.txt | RE | 18 ms | 3188 KB |
02_p.txt | TLE | 4218 ms | 230516 KB |
02_random01.txt | RE | 17 ms | 3064 KB |
02_random02.txt | AC | 17 ms | 3064 KB |
02_random03.txt | TLE | 4207 ms | 48884 KB |
02_random04.txt | RE | 17 ms | 3064 KB |
02_random05.txt | TLE | 4205 ms | 15204 KB |
02_random06.txt | TLE | 4204 ms | 13032 KB |
02_random07.txt | TLE | 4204 ms | 22896 KB |
02_random08.txt | TLE | 4204 ms | 22888 KB |
02_rp01.txt | TLE | 4219 ms | 226036 KB |
02_rp02.txt | TLE | 4218 ms | 226420 KB |
02_rp03.txt | TLE | 4218 ms | 215540 KB |
02_rp04.txt | TLE | 4219 ms | 222964 KB |
02_rp05.txt | TLE | 4220 ms | 223988 KB |
03_i.txt | RE | 17 ms | 3064 KB |
03_random01.txt | RE | 22 ms | 3316 KB |
03_random02.txt | AC | 95 ms | 6652 KB |
03_random03.txt | RE | 62 ms | 6460 KB |
03_random04.txt | AC | 100 ms | 6096 KB |
03_random05.txt | RE | 26 ms | 3648 KB |
03_random06.txt | WA | 38 ms | 3532 KB |
03_random07.txt | AC | 52 ms | 3880 KB |
03_random08.txt | WA | 19 ms | 3064 KB |
03_random09.txt | WA | 114 ms | 4096 KB |
03_random10.txt | AC | 72 ms | 5116 KB |
03_random11.txt | AC | 210 ms | 6924 KB |
03_random12.txt | AC | 165 ms | 6672 KB |
03_random13.txt | AC | 113 ms | 5912 KB |
03_random14.txt | AC | 124 ms | 5644 KB |
03_random15.txt | WA | 69 ms | 3880 KB |
04_i.txt | RE | 107 ms | 24944 KB |
04_p1.txt | TLE | 4218 ms | 231520 KB |
04_p2.txt | TLE | 4218 ms | 230520 KB |
04_random01.txt | TLE | 4211 ms | 110400 KB |
04_random02.txt | TLE | 4215 ms | 186844 KB |
04_random03.txt | TLE | 4205 ms | 28992 KB |
04_random04.txt | TLE | 4205 ms | 24300 KB |
04_random05.txt | TLE | 4205 ms | 28232 KB |
04_random06.txt | TLE | 4213 ms | 140684 KB |
04_random07.txt | TLE | 4207 ms | 47548 KB |
04_random08.txt | TLE | 4206 ms | 46896 KB |
04_random09.txt | TLE | 4206 ms | 29268 KB |
04_random10.txt | TLE | 4217 ms | 203844 KB |
04_random11.txt | TLE | 4211 ms | 106224 KB |
04_random12.txt | TLE | 4210 ms | 105488 KB |
04_random13.txt | TLE | 4210 ms | 108036 KB |
04_rp01.txt | TLE | 4218 ms | 223328 KB |
04_rp02.txt | TLE | 4217 ms | 229500 KB |
04_rp03.txt | TLE | 4218 ms | 224100 KB |
04_rp04.txt | TLE | 4218 ms | 227304 KB |
04_rp05.txt | TLE | 4218 ms | 231140 KB |
04_rp06.txt | TLE | 4218 ms | 223328 KB |
04_rp07.txt | TLE | 4217 ms | 231136 KB |
04_rp08.txt | TLE | 4218 ms | 229480 KB |
04_rp09.txt | TLE | 4218 ms | 231016 KB |
04_rp10.txt | TLE | 4218 ms | 230368 KB |
sample_1.txt | AC | 17 ms | 3064 KB |
sample_2.txt | AC | 17 ms | 3064 KB |
sample_3.txt | AC | 17 ms | 3064 KB |