QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#203678 | #2474. Art Transaction | ZhangYiDe | AC ✓ | 9ms | 3716kb | C++20 | 10.0kb | 2023-10-06 19:23:32 | 2023-10-06 19:23:34 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 3448kb
input:
2 / ^G
output:
70
result:
ok single line: '70'
Test #2:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
3 ^v* v/ / v
output:
2017
result:
ok single line: '2017'
Test #3:
score: 0
Accepted
time: 1ms
memory: 3504kb
input:
3 v \D^ ^/\
output:
1607
result:
ok single line: '1607'
Test #4:
score: 0
Accepted
time: 1ms
memory: 3452kb
input:
3 *D* /G \/!
output:
2003
result:
ok single line: '2003'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3472kb
input:
3 G G D \ /!*
output:
1722
result:
ok single line: '1722'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3472kb
input:
9 *^!/\vDG *^!/\vDG *^!/\vDG *^!/\vDG *^!/\vDG *^!/\vDG *^!/\vDG *^!/\vDG *^!/\vDG
output:
12672
result:
ok single line: '12672'
Test #7:
score: 0
Accepted
time: 1ms
memory: 3532kb
input:
3 *** *** ***
output:
147
result:
ok single line: '147'
Test #8:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
3 !!! *!! !!!
output:
567
result:
ok single line: '567'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3432kb
input:
3 v vvv v
output:
2423
result:
ok single line: '2423'
Test #10:
score: 0
Accepted
time: 1ms
memory: 3508kb
input:
3 v v v
output:
1128
result:
ok single line: '1128'
Test #11:
score: 0
Accepted
time: 1ms
memory: 3476kb
input:
3 vvv
output:
2128
result:
ok single line: '2128'
Test #12:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
3 D DDD D
output:
2423
result:
ok single line: '2423'
Test #13:
score: 0
Accepted
time: 1ms
memory: 3456kb
input:
3 D vDv D
output:
2393
result:
ok single line: '2393'
Test #14:
score: 0
Accepted
time: 1ms
memory: 3448kb
input:
3 v v D D
output:
3154
result:
ok single line: '3154'
Test #15:
score: 0
Accepted
time: 1ms
memory: 3464kb
input:
3
output:
10
result:
ok single line: '10'
Test #16:
score: 0
Accepted
time: 1ms
memory: 3504kb
input:
3 v D !
output:
1659
result:
ok single line: '1659'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
3 ! ! v
output:
1083
result:
ok single line: '1083'
Test #18:
score: 0
Accepted
time: 1ms
memory: 3468kb
input:
3 ! ! D
output:
1083
result:
ok single line: '1083'
Test #19:
score: 0
Accepted
time: 1ms
memory: 3460kb
input:
3 /\ /\
output:
374
result:
ok single line: '374'
Test #20:
score: 0
Accepted
time: 1ms
memory: 3512kb
input:
3 GD G
output:
1393
result:
ok single line: '1393'
Test #21:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
3 DG D
output:
2628
result:
ok single line: '2628'
Test #22:
score: 0
Accepted
time: 1ms
memory: 3476kb
input:
3 *^ /\ vDG
output:
2350
result:
ok single line: '2350'
Test #23:
score: 0
Accepted
time: 1ms
memory: 3472kb
input:
3
output:
10
result:
ok single line: '10'
Test #24:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
3 G^^ G^^ G^G
output:
109
result:
ok single line: '109'
Test #25:
score: 0
Accepted
time: 1ms
memory: 3452kb
input:
5 /*G\ D^*v */D !/!* D^D*
output:
4946
result:
ok single line: '4946'
Test #26:
score: 0
Accepted
time: 1ms
memory: 3464kb
input:
10 ///\*/G*^\ ^*/*!\//G G\/ GG/ D/ //\vDv!D! !G*D*Gv/vv D G/D*D/D\ /v!v^DG \v v^v/^/v*v\ G!G /v*v^G //^^vv/G^/
output:
25134
result:
ok single line: '25134'
Test #27:
score: 0
Accepted
time: 1ms
memory: 3524kb
input:
15 !\*\v/^\GD G^\ DDD^G!^\G^^! *G D^ vDv \G/Gvv ^!**\^\!*^ vD/\ G\GG/G/ *vvv\vG !/\\^/\*/ !D*G ^^^*\ G\G^D^ ! *\\/G G\ D^/*\! ^v^! \/ GDD^!/* v/\\D!/ ^ ^ DG/ / /G^G\ /*//\ * !/*G*!/v!!GG*GG !^G^G G^ vvvDv D^!!\ GGG/*\\^/ ^Dv^vDv/*\^^!GD
output:
54923
result:
ok single line: '54923'
Test #28:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
20 ^^vv/*v/ *^^D*//GGv /GvGDGDG*v\/Dv^^/DG\ / v DvD*DDD /DD!v\^ G\^ v/GG!!!v^G*G D\v \!v^*!/**/*!!v!/\//D v!/ \v\vv D !vv\*D!^ DD\*/Gv/*GGD^DD!v!*G \Dv!^*^Gv !^!D\ !D!! *^D!^D\/*!!/DDD!\^DD v^\\\v G \/Gv/^!^!\ !Gv/**G\*!\DG^ /GDv\ /^\G!/D G ^ !*Dv G^* \D^\^\*\ ^v^ G*!GDDD \ !\!G\ D*G\G! ^v^vv / !...
output:
263008
result:
ok single line: '263008'
Test #29:
score: 0
Accepted
time: 1ms
memory: 3496kb
input:
25 /v/ ^G*D ! \*v^v D/*! \v ^^*! /!G*\/G/\G/vDG*\ Dv GG *GG^DD\v/* /! GG /!DDD /D!^vv/!!\\ !//!^/D*!*vv\ vG\DGD!/*DD ^DG/v/^Gv ! !/!!/\\*!!!/Gv *\G^ G^G G /G/^!v/\v\G /!\GG//^ \D^ \/^* vv!*Gv^**!**Gv\^G*/! Gv*/\! v\!^\*/DD^ GvGv! //*v!!vD^ \\D*GG\vv!!*GD/ G\!D*\*^//^ !\D!D\\ v/!/ GGG\*v\* !^...
output:
476332
result:
ok single line: '476332'
Test #30:
score: 0
Accepted
time: 1ms
memory: 3532kb
input:
30 !!\^*DDG!^v *!^^D*vD^!*!D^/G\ /v*GGD!*v//!!v!^^G/GD!!G D*\\D !^ ^ /\*/\!/ *^ vv/*D!\ ^ \ !v /Gvv^ /D * !D**vv/v!* ! D vG \v!D\*/D* vD \GG\^ v^ ^^v^/\!^ ^G G/v!\/ vv/! D!!^vG*/*v/D D ** *\ DDGDG*/v^^ !*/ ^^/*/G^! ^*^GD*D*/*GD/\ ^//\\**GD*GGvD ^G^ DD^DD^* vv**v D/vG*/DG*/// /^DG^v/*/v**^ *!^\...
output:
1223508
result:
ok single line: '1223508'
Test #31:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
35 *Dvv*D!G *v\/ **\!/G\*v *\\v \!Dv^* ^* !\vG!GD/*^\^/\//^ D*GGG^GG*!G* \vD/G!*^/D!\\ !vvD **D\/ v/\v^GvDD* \^^G/G*!*G^D^D*DG^ /^^*\!*DDvv!/ ^^ ^\vv/\Dv!GG!*\\v!!GD!GGGDDG\\v*^!\/ v//! //G v ^^GDG^**D*D\DD\*^ *^^/v GGGvDG\D/v! \ *!D! G//D\!^ v^GD/D v\!^ \!v*/^vG*GD^D/\/vD/\**^ G^DGv ^ ^vvD G...
output:
2548495
result:
ok single line: '2548495'
Test #32:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
40 *DvG**G^/ !^G^ ^\\/v!GD Dv vv!DD*/*G!!! v\vD!G/G^vG*D^\*^!\/** D*!D/\**! **/\^ *D/G\D v^v!/^GG^v^Gv*G\G *\ GGD G/D!G* /v! ^/G \/GDvv vvG\\^D v^!*G!DD/*v/*vD/D v*D/G!\*^!*G/\v^ /Dv *v!!DvD*!\GG/!G//v/ DG*^v/^!/\^D\\G//\*DDG v \^^ v *D\v!^D!v !^*!G\ *D*^v*\D/*^G^\D!!D* !!^//*/vv G^ GG!!****\D...
output:
6207683
result:
ok single line: '6207683'
Test #33:
score: 0
Accepted
time: 2ms
memory: 3716kb
input:
45 !D*/^v/^^/!**Gv/G\^D* */vD^vDD Gv\*!! /* D\\v //vv**vv v^!!v*^**v\!\G *^ *G*//D vDvGG^*G!!^ /v^* *DD!!^G^^v^/ ^^vDDG/Dv\v*\\v!/* * /^/D* !GDD*\v!DD^/G/^^Gv* ^DG/G\GD\D\G ^\*/ ^/D*D v*\\!G\*v^ !^^*//\*/^D!^v\\ G\^*^ D/**!GGG/G v GD v\ \^DvG*\ ^!\ !^\*/DvGv\ G*G ^^GDv^/^ !GDv* \D!**!!\ /G/G ^...
output:
12283068
result:
ok single line: '12283068'
Test #34:
score: 0
Accepted
time: 2ms
memory: 3644kb
input:
50 D*^\G/*/G\GDD !!\v\vDDv^!D\*//**v//\\\/// v\G^Gv\v *D/\\ vv\Gv/\/G!/*!vG!/^\//!*\!^!^^v**!G*DG\G/ G^ \ /D*D*/!\!^^ ^ v^\\D\ !\* ^vG!/\v/*Gv\D^* !Gv\v/ v\ * DvG\!! ! /\ */G /^ G!^! * \^vG^D\ \v*//DD!* ! D/^D^GvG //*v !^^ /^!!\ Gvv^G!vDv/G*/D* ^\\^ v!*!\ DDG*D\^*\/ \!\ ^^DG\\vG!*! \Gvv*/^D\G\ /^/...
output:
20833314
result:
ok single line: '20833314'
Test #35:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
50 * D * * D * * D * * D * * D * * D ...
output:
54097
result:
ok single line: '54097'
Test #36:
score: 0
Accepted
time: 1ms
memory: 3508kb
input:
50 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...
output:
63373
result:
ok single line: '63373'
Test #37:
score: 0
Accepted
time: 2ms
memory: 3572kb
input:
50 DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD D DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD D DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD D ...
output:
237418
result:
ok single line: '237418'
Test #38:
score: 0
Accepted
time: 4ms
memory: 3512kb
input:
50 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv v v v vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv v v v v v v v vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv v v v v v ...
output:
376604
result:
ok single line: '376604'
Test #39:
score: 0
Accepted
time: 1ms
memory: 3536kb
input:
50 ...
output:
40052
result:
ok single line: '40052'
Test #40:
score: 0
Accepted
time: 1ms
memory: 3536kb
input:
50 !Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!D Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv v!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv! !Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!D Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv v!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!Dv!D...
output:
579291261
result:
ok single line: '579291261'
Test #41:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
50 /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\...
output:
4618874
result:
ok single line: '4618874'
Test #42:
score: 0
Accepted
time: 2ms
memory: 3532kb
input:
50 GGGDGGDGDDGDDDDDDDGGDDDDGDGDGGDDDDDDGGDDGDGDDDDGGG DDGGDGGDDDGDGDDDDGGDGDDDDGGDDGGGGGDGDDGDDGGDGGGGGD GDDGGGDGDGGDDGGGGDDDGDDDDDGGDGDGGDDGDDDGGGDGGDGGDD GGGDDGDGGDGGGGGGDGDGGDDDGGGDGDDGGGDDDGDDGDDGDDGDGG GDGDGGGGDDGGGDDGGDDGGGDDGGDDGDDGGGDDGDDGGDDDGGGGGG GGDGGGGDDGGGDGGGDDGGGGDDGGGGGGDGGDGDDGGGDG...
output:
1006558
result:
ok single line: '1006558'
Test #43:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
50 DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...
output:
1491874
result:
ok single line: '1491874'
Test #44:
score: 0
Accepted
time: 1ms
memory: 3512kb
input:
50 ...
output:
2501
result:
ok single line: '2501'
Test #45:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
50 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG G^GG^GG^GG^GG^GG^GG^GG^GG^GG^GG^GG^GG^GG^GG^GG^GG^ GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG G^GG^GG^GG^GG^GG^GG^GG^GG^GG^GG^GG^GG^GG^GG^GG^GG^ GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...
output:
5138
result:
ok single line: '5138'
Test #46:
score: 0
Accepted
time: 3ms
memory: 3648kb
input:
50 D^ DD /v ^^ GG DD \/ Gv GD !/ \\ !D / ^v !/ /! \ ...
output:
404545
result:
ok single line: '404545'
Test #47:
score: 0
Accepted
time: 2ms
memory: 3712kb
input:
50 /*D/!^^v\^^\\^D**GD\\DGG\/^/vG!D!\/!D^GD*\\vD/GvG\ ^**/^\!*/*D!Dv*/\*!^^!\v\^Gv/*^G\GG//G^v!*!!D^^v/v !G*G\G!!!vv^\vG*GvDG*\D/^D/^/D/v*\!*!!GG/!G\DG^*D\ v*G*v*//*!!\/!^\\^**^DGDDG!v!DDv^\!/DGvv/\\/^\DDG* ...
output:
10613183
result:
ok single line: '10613183'
Test #48:
score: 0
Accepted
time: 9ms
memory: 3572kb
input:
50 DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD D D D DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD D D D D D D D DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD D D D D D ...
output:
240349
result:
ok single line: '240349'
Test #49:
score: 0
Accepted
time: 3ms
memory: 3648kb
input:
50 /D \v *! G\ v! Gv ^v D^ ^G DD ^^ !/ */ G^ ^! D* \D !! \/ \! ^^ *^ G! !^ G/ *\ !^ \D v! */ GG DD vD *v G! Gv *D \^ !^ D^ vG GD ^! G^ \! !* *v *G D^ !^ *v v^ !\ ^^ /! v* G/ \v G/ D! v* // ^! v* !\ \/ */ !/ ...
output:
3630584
result:
ok single line: '3630584'
Test #50:
score: 0
Accepted
time: 1ms
memory: 3496kb
input:
3 ! v D
output:
2059
result:
ok single line: '2059'