QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#450814#4205. Art CollectionsPhysics2123030 1278ms4128kbC++17364b2024-06-22 18:14:332024-06-22 18:14:35

Judging History

你现在查看的是最新测评结果

  • [2024-06-22 18:14:35]
  • 评测
  • 测评结果:0
  • 用时:1278ms
  • 内存:4128kb
  • [2024-06-22 18:14:33]
  • 提交

answer

#include "art.h"
#include<bits/stdc++.h>
using namespace std;
void solve(int n){
  vector<int> a(n),r(n);
  for(int i=0;i<n;i++){
    vector<int> v;
    for(int j=i;j<n;j++)
      v.emplace_back(j+1);
    for(int j=0;j<i;j++)
      v.emplace_back(j+1);
    a[i]=publish(v);
  }
  for(int i=0;i<n;i++)
    r[a[(i+1)%n]-a[i]+n>>1]=i+1;
  answer(r);
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 4088kb

input:

6
15
10
7
6
7
10

output:

942318468 6 1 2 3 4 5 6
942318468 6 2 3 4 5 6 1
942318468 6 3 4 5 6 1 2
942318468 6 4 5 6 1 2 3
942318468 6 5 6 1 2 3 4
942318468 6 6 1 2 3 4 5
539883183 6 1 2 3 4 5 6

result:

wrong answer Wrong Answer

Subtask #2:

score: 0
Wrong Answer

Test #8:

score: 0
Wrong Answer
time: 1ms
memory: 3864kb

input:

40
394
407
374
383
370
405
396
377
408
423
442
439
422
449
452
413
450
419
398
405
368
379
384
405
434
399
398
393
368
353
326
315
316
333
358
381
374
407
378
417

output:

942318468 40 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
942318468 40 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1
942318468 40 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1...

result:

wrong answer Wrong Answer

Subtask #3:

score: 0
Wrong Answer

Test #14:

score: 0
Wrong Answer
time: 2ms
memory: 3736kb

input:

250
31125
30876
30629
30384
30141
29900
29661
29424
29189
28956
28725
28496
28269
28044
27821
27600
27381
27164
26949
26736
26525
26316
26109
25904
25701
25500
25301
25104
24909
24716
24525
24336
24149
23964
23781
23600
23421
23244
23069
22896
22725
22556
22389
22224
22061
21900
21741
21584
21429
21...

output:

942318468 250 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 9...

result:

wrong answer Wrong Answer

Subtask #4:

score: 0
Wrong Answer

Test #20:

score: 0
Wrong Answer
time: 8ms
memory: 3824kb

input:

444
48125
47894
48235
48054
47879
48012
48109
48308
48041
48286
48549
48950
49337
49768
49483
49162
49603
49632
49283
49476
49527
49238
49411
49726
50159
50252
50655
50658
50219
50554
50145
50062
50193
50044
49719
49886
49481
49918
49677
49644
49309
49146
49127
48690
49115
49188
49561
49264
49453
49...

output:

942318468 444 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 9...

result:

wrong answer Wrong Answer

Subtask #5:

score: 0
Wrong Answer

Test #26:

score: 0
Wrong Answer
time: 273ms
memory: 4128kb

input:

2000
984031
983364
984081
984450
983899
984644
984639
984296
985585
986558
984593
986550
985723
985812
984617
985852
987849
987706
987737
988790
988439
988798
988387
986870
988859
989058
990075
991634
990167
991278
992371
990744
989999
991406
992277
990910
991625
991166
989389
990076
991297
989612
9...

output:

942318468 2000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 ...

result:

wrong answer Wrong Answer

Subtask #6:

score: 0
Wrong Answer

Test #32:

score: 0
Wrong Answer
time: 1278ms
memory: 3872kb

input:

4000
3954555
3955888
3951985
3950268
3951717
3954462
3950529
3947604
3947247
3950220
3950255
3946766
3947939
3944538
3945343
3942892
3946889
3948746
3950777
3953830
3950433
3948986
3945529
3945400
3941575
3943774
3946791
3950350
3950883
3953994
3952051
3952424
3953679
3957086
3953357
3953990
3953883...

output:

942318468 4000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 ...

result:

wrong answer Wrong Answer