QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#79715 | #5512. Stone Arranging 2 | namelessgugugu | 25 | 8ms | 3516kb | C++14 | 900b | 2023-02-20 19:32:21 | 2023-02-20 19:32:23 |
Judging History
answer
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <map>
#define FILEIO(filename) (freopen(filename ".in", "r", stdin), freopen(filename ".out", "w", stdout))
typedef long long ll;
typedef unsigned long long ull;
const int N = 100005;
int n, a[N];
struct node
{
int l, r, c;
} stk[N];
int top;
std::map<int, int> mp;
int main(void)
{
scanf("%d", &n);
for (int i = 1;i <= n;++i)
scanf("%d", a + i);
for(int i = 1;i <= n;++i)
{
if(!mp[a[i]])
++mp[a[i]], stk[++top] = {i, i, a[i]};
else
{
while(stk[top].c != a[i])
--mp[stk[top--].c];
++mp[a[i]], stk[top + 1] = {stk[top].r + 1, i, a[i]}, ++top;
}
}
for (int i = 1;i <= top;++i)
for (int j = stk[i].l; j <= stk[i].r;++j)
printf("%d\n", stk[i].c);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 25
Accepted
Test #1:
score: 25
Accepted
time: 0ms
memory: 3176kb
input:
1 1
output:
1
result:
ok single line: '1'
Test #2:
score: 0
Accepted
time: 1ms
memory: 3084kb
input:
2 1 1
output:
1 1
result:
ok 2 lines
Test #3:
score: 0
Accepted
time: 1ms
memory: 3132kb
input:
3 1 1 1
output:
1 1 1
result:
ok 3 lines
Test #4:
score: 0
Accepted
time: 2ms
memory: 3156kb
input:
2000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok 2000 lines
Test #5:
score: 0
Accepted
time: 2ms
memory: 3052kb
input:
1 2
output:
2
result:
ok single line: '2'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3148kb
input:
2 2 2
output:
2 2
result:
ok 2 lines
Test #7:
score: 0
Accepted
time: 2ms
memory: 3012kb
input:
3 2 2 2
output:
2 2 2
result:
ok 3 lines
Test #8:
score: 0
Accepted
time: 2ms
memory: 3200kb
input:
2000 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2...
output:
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
result:
ok 2000 lines
Test #9:
score: 0
Accepted
time: 2ms
memory: 3152kb
input:
2000 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 33497...
output:
334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 334978097 ...
result:
ok 2000 lines
Test #10:
score: 0
Accepted
time: 2ms
memory: 3148kb
input:
2000 2 1 2 2 1 1 1 2 2 2 1 1 2 2 1 1 2 2 2 2 2 1 2 1 2 2 1 2 2 2 2 2 1 1 1 2 2 2 2 2 1 2 2 2 2 2 1 1 1 1 2 1 2 1 1 2 1 1 2 2 2 1 1 1 1 1 1 2 2 2 1 1 1 2 1 2 2 1 1 2 1 1 1 2 1 1 1 2 1 2 1 2 2 2 1 2 2 1 2 2 2 2 1 2 1 1 2 2 1 2 1 1 2 2 1 1 1 1 1 1 2 1 2 2 2 2 1 2 1 2 2 1 1 1 1 2 1 2 1 1 1 1 2 2 1 1 1 1...
output:
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok 2000 lines
Test #14:
score: 0
Accepted
time: 2ms
memory: 3100kb
input:
2000 2 1 2 1 1 1 2 1 1 2 2 2 1 2 1 2 1 2 1 2 1 2 2 2 1 2 2 2 1 1 2 2 1 2 1 1 1 2 2 1 2 1 1 1 1 1 2 2 2 1 2 1 2 2 2 2 2 1 2 2 2 1 2 1 2 1 1 1 2 2 1 2 2 2 1 2 1 2 2 1 1 2 2 1 1 2 2 2 2 2 2 1 2 2 1 1 1 1 2 1 1 1 1 1 2 2 1 2 2 2 2 2 2 2 1 2 2 1 1 1 1 1 1 1 2 1 2 1 1 1 1 1 2 2 2 1 2 1 1 1 1 2 1 2 1 1 1 1...
output:
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
result:
ok 2000 lines
Test #15:
score: 0
Accepted
time: 0ms
memory: 3300kb
input:
2000 81888042 43067133 107207954 11840122 12213120 1564709 591852273 88838690 961663051 516561909 168803248 844631608 873195256 827482724 743609376 619362989 538294587 82184630 144127319 243409882 211682139 271003483 663591071 168473717 654369346 16498799 591919038 700712177 385773734 618206739 8131...
output:
81888042 43067133 107207954 11840122 12213120 1564709 591852273 88838690 961663051 516561909 168803248 844631608 873195256 827482724 743609376 619362989 538294587 82184630 144127319 243409882 211682139 271003483 663591071 168473717 654369346 16498799 591919038 700712177 385773734 618206739 813177482...
result:
ok 2000 lines
Test #16:
score: 0
Accepted
time: 3ms
memory: 3180kb
input:
2000 885745611 10531340 864341459 215264744 300047319 287916141 644603625 884166447 420412412 20068650 590534965 653358937 990188463 990316905 998312402 558306521 958686996 980116759 160902156 540498688 104465002 553013905 427573746 519316677 185497721 791572866 825112521 486213608 474133783 1868877...
output:
885745611 10531340 864341459 215264744 300047319 287916141 644603625 884166447 420412412 20068650 590534965 653358937 990188463 990316905 998312402 558306521 958686996 980116759 160902156 540498688 104465002 553013905 427573746 519316677 185497721 791572866 825112521 486213608 474133783 186887702 27...
result:
ok 2000 lines
Test #17:
score: 0
Accepted
time: 0ms
memory: 3068kb
input:
2000 124748890 124748890 124748890 815254336 124748890 815254336 815254336 124748890 124748890 124748890 815254336 124748890 124748890 815254336 815254336 815254336 124748890 124748890 124748890 124748890 815254336 815254336 815254336 124748890 124748890 815254336 815254336 815254336 815254336 12474...
output:
124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 124748890 ...
result:
ok 2000 lines
Test #18:
score: 0
Accepted
time: 1ms
memory: 3084kb
input:
2000 401665219 401665219 401665219 27125575 401665219 401665219 401665219 27125575 401665219 27125575 27125575 401665219 401665219 27125575 401665219 401665219 27125575 27125575 27125575 401665219 27125575 401665219 27125575 401665219 27125575 27125575 27125575 27125575 401665219 401665219 401665219...
output:
401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 401665219 ...
result:
ok 2000 lines
Test #19:
score: 0
Accepted
time: 0ms
memory: 3140kb
input:
2000 810060218 522476642 810060218 522476642 522476642 522476642 810060218 810060218 810060218 522476642 522476642 810060218 810060218 810060218 810060218 810060218 522476642 810060218 810060218 522476642 810060218 810060218 810060218 522476642 522476642 522476642 810060218 810060218 522476642 52247...
output:
810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 810060218 ...
result:
ok 2000 lines
Test #20:
score: 0
Accepted
time: 2ms
memory: 3056kb
input:
2000 401575885 661633480 401575885 661633480 661633480 661633480 401575885 661633480 401575885 401575885 661633480 401575885 661633480 401575885 401575885 401575885 661633480 401575885 661633480 661633480 401575885 401575885 401575885 661633480 661633480 661633480 401575885 661633480 401575885 66163...
output:
401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 401575885 ...
result:
ok 2000 lines
Test #21:
score: 0
Accepted
time: 3ms
memory: 3100kb
input:
2000 8679749 689251055 488931635 8679749 689251055 488931635 488931635 488931635 689251055 488931635 488931635 488931635 488931635 8679749 689251055 689251055 488931635 8679749 488931635 689251055 8679749 689251055 488931635 8679749 488931635 8679749 8679749 689251055 488931635 8679749 488931635 867...
output:
8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679749 8679...
result:
ok 2000 lines
Test #22:
score: 0
Accepted
time: 0ms
memory: 3068kb
input:
2000 982030052 308022921 982030052 354850469 354850469 354850469 354850469 982030052 308022921 354850469 354850469 982030052 308022921 354850469 354850469 354850469 354850469 308022921 354850469 982030052 982030052 354850469 308022921 354850469 308022921 308022921 308022921 982030052 354850469 35485...
output:
982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 982030052 ...
result:
ok 2000 lines
Test #23:
score: 0
Accepted
time: 2ms
memory: 3056kb
input:
2000 586535587 203412544 61851007 586535587 203412544 586535587 586535587 203412544 203412544 61851007 203412544 586535587 586535587 586535587 586535587 61851007 203412544 203412544 203412544 586535587 61851007 586535587 61851007 61851007 586535587 586535587 61851007 203412544 203412544 61851007 203...
output:
586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 586535587 ...
result:
ok 2000 lines
Test #24:
score: 0
Accepted
time: 2ms
memory: 3192kb
input:
2000 590388927 590388927 68755410 590388927 590388927 68755410 590388927 590388927 68755410 68755410 923083310 68755410 590388927 590388927 923083310 68755410 923083310 68755410 590388927 923083310 923083310 590388927 590388927 590388927 923083310 590388927 590388927 590388927 68755410 590388927 923...
output:
590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 590388927 ...
result:
ok 2000 lines
Test #25:
score: 0
Accepted
time: 0ms
memory: 3188kb
input:
2000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok 2000 lines
Test #26:
score: 0
Accepted
time: 2ms
memory: 3152kb
input:
2000 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2...
output:
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
result:
ok 2000 lines
Test #27:
score: 0
Accepted
time: 3ms
memory: 3188kb
input:
2000 754274998 822961596 932465876 339412345 177684528 963952164 141030764 517806972 680542461 968488186 80253359 782540517 56441822 356863563 600705089 728862566 319632076 362033128 807266164 872727071 658130967 851081128 980844898 361681389 206524648 205561797 386232279 672567842 956335507 1787127...
output:
754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 754274998 ...
result:
ok 2000 lines
Test #28:
score: 0
Accepted
time: 0ms
memory: 3168kb
input:
2000 354854941 822325099 524749982 990951393 151897977 122977243 542161994 655100949 657272310 978121545 673586877 210362436 221729103 655831609 607486955 634591549 990298100 733294844 496109191 729492128 502001539 582808377 945935328 756682179 536380863 659042891 466968394 858574147 894569965 35301...
output:
354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 354854941 ...
result:
ok 2000 lines
Subtask #2:
score: 0
Wrong Answer
Test #29:
score: 0
Wrong Answer
time: 8ms
memory: 3516kb
input:
200000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
1
result:
wrong answer 2nd lines differ - expected: '1', found: ''
Subtask #3:
score: 0
Skipped
Dependency #1:
100%
Accepted
Dependency #2:
0%