QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#83050#4509. The Safe Secretxiaowuc1AC ✓272ms6184kbC++173.7kb2023-03-01 05:35:242023-03-01 05:35:26

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 3548kb

input:

5
1 ? 5 + 0 ? -2 - -3 *

output:

914710203014163336

result:

ok single line: '914710203014163336'

Test #2:

score: 0
Accepted
time: 2ms
memory: 3568kb

input:

7
1 + 1 * -3 * 3 - 0 + 0 - 1 +

output:

244153180181221272127273

result:

ok single line: '244153180181221272127273'

Test #3:

score: 0
Accepted
time: 2ms
memory: 3692kb

input:

7
-1 + -1 * 1 * -3 * -1 * 2 + 1 -

output:

18212031531511157151018

result:

ok single line: '18212031531511157151018'

Test #4:

score: 0
Accepted
time: 2ms
memory: 3616kb

input:

6
-1 + -1 * -3 * -2 * -2 - 1 +

output:

63662430330183018628

result:

ok single line: '63662430330183018628'

Test #5:

score: 0
Accepted
time: 1ms
memory: 3564kb

input:

7
1 + 1 * -2 * -1 * 2 + 0 + 1 +

output:

11208210810210012012

result:

ok single line: '11208210810210012012'

Test #6:

score: 0
Accepted
time: 3ms
memory: 3916kb

input:

30
-4 ? -1 - -2 + 4 - 1 - -2 - 4 + -2 + -4 * 6 * 0 - 3 - 6 ? 2 - 3 + 1 + 0 + -1 + -1 + -2 + -4 + -2 - 1 * 1 + 1 - -1 + 2 - -2 - 0 + -1 +

output:

359424359424134784134784126672137228137670157950461916547560506088427032307008307008505440505440404352404352134784134784134784134784116641166426956826956813478413478422852822810426623826611327878427878427878427878431104031104037324837324843545643545631104031104012441612441613478413478412355212355220...

result:

ok single line: '359424359424134784134784126672...0393120393120393120393120393120'

Test #7:

score: 0
Accepted
time: 6ms
memory: 4340kb

input:

60
-2 ? 6 - 1 + 3 ? -2 ? -2 + -1 * 0 - -6 - -1 + -2 + 5 * -1 - 0 + -5 + 0 ? -3 - 2 - 2 + -9 - 2 * 3 - -5 * 4 ? -4 * -1 - -4 + 1 * 7 - -2 + 7 - 3 - 5 + 1 ? 5 + 3 * 1 - 0 ? -1 + 6 * -6 + -2 * -8 - 1 - -2 - 4 * -2 * 2 + 0 + 5 + -2 - 0 - -5 ? -6 + 3 - 2 + -1 - 6 - 1 + -1 +

output:

283955325566976031882703221555201821868755517440162260186038272054656062665523204867805581148160414190474887168036888839169638401821868755517440162260186038272018218687555174401622601860382720121457917034496012145791703449601821868755517440162260186038272069404524019712069404524019712042944049237196...

result:

ok single line: '283955325566976031882703221555...9550920346828804440805091573760'

Test #8:

score: 0
Accepted
time: 3ms
memory: 4176kb

input:

50
2 * 1 + 3 + 3 + 2 + 1 + 4 + 5 + 3 + 5 + 9 * 2 + 2 * 1 * 1 * 4 * 4 + 5 + 2 + 3 + 6 + 1 + 2 + 4 + 1 + 3 + 4 + 3 * 6 + 2 * 2 + 1 * 3 * 4 * 1 + 3 * 5 * 1 * 9 * 4 + 4 * 1 + 3 + 1 * 1 * 6 + 3 * 6 + 4 * 3 +

output:

726245089566720007272042413056000072619856793600000726726191308800007261151694028800007261378628812800007261475076096000007261747397836800007261832498380800007261747397836800007261378628812800007192042413056000072620424130560000712204241305600007122042413056000071220424130560000706204241305600007267...

result:

ok single line: '726245089566720007272042413056...4901791334400072120424130560000'

Test #9:

score: 0
Accepted
time: 3ms
memory: 4208kb

input:

50
2 * 3 + 4 + 8 * 1 + 5 + 2 + 4 * 2 * 3 + 3 * 2 + 2 * 3 + 4 + 5 + 3 * 1 + 1 * 2 + 4 + 3 + 2 * 3 * 2 + 1 + 2 + 1 + 4 * 4 + 0 + 3 * 1 * 4 * 0 + 2 * 3 + 3 * 1 * 6 + 1 + 9 * 6 * 4 + 3 + 1 * 7 * 4 * 4 + 1 *

output:

357618027024384000035861802702438400003621483264858521600036623073008910336000374618027024384000037456652477235200003791854081073152000038116480720650240000385618027024384000038961802702438400004059270405365760000408618027024384000041161802702438400004136180270243840000417148326485852160004212307300...

result:

ok single line: '357618027024384000035861802702...2702438400003564944216195072000'

Test #10:

score: 0
Accepted
time: 14ms
memory: 4496kb

input:

75
-6 + -6 + -5 + 4 + -5 + 3 + -2 + -4 + 2 + -2 + -7 + -4 + 0 + -3 + -6 + 6 + -6 + -4 + -2 + -8 + -5 + -7 + -8 + -5 + -8 + -1 + -9 + -1 + -7 + -5 + -8 + -3 + -6 + -1 + -9 + -3 + -4 + -8 + 0 + -8 + -2 + -9 + 4 + 8 + -2 + -3 + -5 + -2 + -3 + -5 + 0 + 7 + -5 + -4 + -3 + -4 + -4 + -4 + 5 + -7 + -7 + -4 ...

output:

249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249249...

result:

ok single line: '249249249249249249249249249249...9249249249249249249249249249249'

Test #11:

score: 0
Accepted
time: 205ms
memory: 5952kb

input:

192
1 * 2 * 1 * -1 + 1 * -1 * -1 * 1 + 1 + -1 * 1 + 2 * 1 * 2 + 1 * 1 * -1 * -2 * 1 * 1 + 1 * 1 + 1 * 1 * 1 * 1 + 1 * 1 * 1 * 1 * 1 * 1 * 1 * -1 + 1 * 1 * -1 * -1 + 1 * 1 + 1 * 1 * 1 * -1 + 1 + -1 + -1 * 1 * 1 * 2 * 1 * -1 + 1 * -1 * -1 * 1 + 1 + -1 * 1 + 2 * 1 * 2 + 1 * 1 * -1 * -2 * 1 * 1 + 1 * 1 ...

output:

244657796300144640293589355560173568244657796300144640293589355560173568244657796300144640293589355560173568244657796300144640293589355560173568146794677780086784122328898150072320183493347225108480137620010418831360256890686115151872293589355560173568149513097738977280122328898150072320135920997944...

result:

ok single line: '244657796300144640293589355560...7796300144640293589355560173568'

Test #12:

score: 0
Accepted
time: 260ms
memory: 6184kb

input:

200
-1 * 1 * -1 + 1 + 1 + -1 - 1 + 1 - -1 + 1 - -1 - -1 + 1 + -1 - -1 + -1 - 1 - 1 + -1 + -1 - 1 - -1 - 1 * 1 - -1 + 1 * -1 - -1 - 1 + 1 + 1 + 1 * -1 + -1 - -1 - 1 - -1 + 1 * -1 * 1 * 1 - 1 + -1 - -1 + 1 + 1 + 1 * -1 + 1 + -1 - -1 + -1 - 1 + 1 - 1 * 1 + -1 + 1 * 1 * 1 - 1 + -1 + 1 - -1 + -1 - 2 + -1...

output:

956390209901352000956390209901352000121502633832715680013520127256765128001215026338327156800135201272567651280013520127255721200001352012725572120000161894784504384000018014737793081760002022325716441600000225032990565024000025316211438565200002275116430996800000275665413442154400024773490026409600...

result:

ok single line: '956390209901352000956390209901...4228771304000562582476412560000'

Test #13:

score: 0
Accepted
time: 259ms
memory: 6096kb

input:

200
0 + 0 * -1 - -1 - 1 - 1 + -2 + -1 + 1 - -1 * -1 - 1 * -1 + 1 - -1 - 1 - -1 + -1 - -1 + -1 * 0 + 0 - -1 - 0 + -2 - -1 * 1 - -1 * -1 + -1 - 1 * -1 - -1 + 1 - 0 - 1 - -1 - -1 + -1 * 0 + -1 - -1 + 1 - 2 * 1 + 2 - 1 * 1 * 0 + -1 - 1 - 1 - 1 + -1 - -1 * 1 + -1 - 0 - 0 + -1 - -1 - -1 + 0 * -1 - 0 - 1 +...

output:

151443349655270400015144334965527040001514433496552704000151443349655270400013251293094836160001325129309483616000189304187069088000018930418706908800001893041870690880000189304187069088000015472910280360960001547291028036096000198769396422542400019876939642254240002681809316812080000268180931681208...

result:

ok single line: '151443349655270400015144334965...4030181600001419781403018160000'

Test #14:

score: 0
Accepted
time: 272ms
memory: 6068kb

input:

200
1 - 1 * 1 * 0 + -1 + 1 - 1 + 2 + 1 * 2 * -1 - -1 - 0 * 0 * 1 * 0 - 1 + -1 * 0 + -1 - 1 + 1 - 1 - 0 + 1 + 0 - -2 - -1 * 0 * 0 + 1 + 0 * 0 * 0 + -1 + 0 - 1 + -1 + 1 + -1 - -1 * -1 + -2 + -2 * 1 - 1 + 1 ? 1 * 1 * -1 + 1 * -1 - -1 - -1 - 1 + 1 * 1 + 0 + 0 + 1 * -1 * 0 - 1 + -1 + 1 ? 1 ? 0 * 0 * -1 +...

output:

136606797250560000013660679725056000001872951088619520000187295108861952000026221315240673280002622131524067328000262213152406732800026221315240673280001872951088619520000187295108861952000026212927104000000002621292710400000000327856313401344000032785631340134400003005349539512320000300534953951232...

result:

ok single line: '136606797250560000013660679725...9826493440001444847982649344000'