QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#753814#7533. Jeopardized Bettingucup-team138#AC ✓1ms3960kbC++17509b2024-11-16 13:40:342024-11-16 13:40:35

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3948kb

input:

3
Lost
Won
Won
Won

output:

24
24
32
32

result:

ok Ok

Test #2:

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

input:

4
Won
Lost
Won
Lost
Won
Lost
Won

output:

80
80
96
96
128
128
256

result:

ok Ok

Test #3:

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

input:

30
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won

output:

120269065998164160
120269065998164160
118159082384161280
113939115156155520
107724254329456128
99744679934681600
90334804469145600
79911557799628800
68943304768307200
57912376005378048
47275408983982080
37426365445652480
28667003320074240
21188654627880960
15067487735382016
10273287092305920
6689582...

result:

ok Ok

Test #4:

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

input:

30
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost

output:

120269065998164160
120269065998164160
118159082384161280
113939115156155520
107724254329456128
99744679934681600
90334804469145600
79911557799628800
68943304768307200
57912376005378048
47275408983982080
37426365445652480
28667003320074240
21188654627880960
15067487735382016
10273287092305920
6689582...

result:

ok Ok

Test #5:

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

input:

7
Won
Won
Won
Won
Won
Won
Won

output:

3696
3696
3360
2688
1792
896
256

result:

ok Ok

Test #6:

score: 0
Accepted
time: 0ms
memory: 3904kb

input:

7
Lost
Lost
Lost
Lost
Lost
Lost
Lost

output:

3696
3696
3360
2688
1792
896
256

result:

ok Ok

Test #7:

score: 0
Accepted
time: 0ms
memory: 3776kb

input:

30
Lost
Won
Lost
Won
Lost
Won
Lost
Lost
Won
Lost
Lost
Won
Won
Lost
Lost
Won
Won
Lost
Won
Lost
Lost
Won
Won
Lost
Lost
Lost
Won
Lost
Lost
Won
Won
Lost
Won
Won
Won
Won
Lost
Won
Won
Lost
Lost
Won
Won
Won
Won
Won
Lost
Lost
Lost
Lost
Won
Lost
Lost
Won
Won
Lost
Lost
Won
Won

output:

120269065998164160
120269065998164160
122379049612167040
122379049612167040
124604123241479168
124604123241479168
126955144434714624
126955144434714624
124465827877171200
129444460992258048
126802737298538496
121519289911099392
129275840330956800
134896529040998400
131898828395642880
125903427104931...

result:

ok Ok

Test #8:

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

input:

30
Won
Lost
Lost
Lost
Won
Won
Lost
Won
Won
Won
Won
Won
Lost
Lost
Lost
Lost
Lost
Lost
Won
Lost
Lost
Lost
Lost
Won
Won
Lost
Won
Lost
Won
Won
Lost
Lost
Lost
Lost
Won
Won
Lost
Won
Lost
Won
Lost
Lost
Won
Won
Lost
Won
Won
Won
Won
Lost
Won
Won
Lost
Won
Lost
Won
Lost
Won
Lost

output:

120269065998164160
120269065998164160
122379049612167040
122379049612167040
120153975982854912
124604123241479168
126955144434714624
126955144434714624
129444460992258048
129444460992258048
126802737298538496
121519289911099392
113762739491241984
123655151620915200
131898828395642880
137894229686353...

result:

ok Ok

Test #9:

score: 0
Accepted
time: 0ms
memory: 3948kb

input:

1
Won

output:

4

result:

ok Ok

Test #10:

score: 0
Accepted
time: 0ms
memory: 3844kb

input:

1
Lost

output:

4

result:

ok Ok

Test #11:

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

input:

30
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won

output:

120269065998164160
120269065998164160
118159082384161280
113939115156155520
107724254329456128
99744679934681600
90334804469145600
79911557799628800
68943304768307200
57912376005378048
47275408983982080
37426365445652480
28667003320074240
21188654627880960
15067487735382016
10273287092305920
6689582...

result:

ok Ok

Test #12:

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

input:

30
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost

output:

120269065998164160
120269065998164160
118159082384161280
113939115156155520
107724254329456128
99744679934681600
90334804469145600
79911557799628800
68943304768307200
57912376005378048
47275408983982080
37426365445652480
28667003320074240
21188654627880960
15067487735382016
10273287092305920
6689582...

result:

ok Ok

Test #13:

score: 0
Accepted
time: 0ms
memory: 3828kb

input:

30
Won
Won
Lost
Lost
Lost
Lost
Won
Won
Lost
Won
Lost
Lost
Won
Lost
Lost
Won
Lost
Lost
Won
Lost
Lost
Won
Won
Won
Won
Lost
Won
Won
Lost
Lost
Won
Won
Lost
Lost
Won
Lost
Won
Won
Won
Won
Lost
Lost
Won
Lost
Won
Lost
Won
Lost
Won
Lost
Won
Lost
Lost
Won
Won
Won
Lost
Won

output:

120269065998164160
120269065998164160
118159082384161280
122379049612167040
124604123241479168
124604123241479168
122253102048243712
126955144434714624
129444460992258048
129444460992258048
132086184685977600
132086184685977600
129275840330956800
134896529040998400
131898828395642880
125903427104931...

result:

ok Ok

Test #14:

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

input:

30
Won
Lost
Lost
Won
Won
Lost
Won
Won
Won
Lost
Lost
Won
Lost
Lost
Won
Lost
Lost
Lost
Won
Lost
Won
Won
Won
Lost
Won
Won
Lost
Lost
Won
Won
Won
Lost
Won
Lost
Lost
Lost
Won
Won
Lost
Lost
Lost
Won
Won
Lost
Won
Won
Lost
Lost
Won
Won
Lost
Won
Lost
Lost
Lost
Lost
Won
Lost

output:

120269065998164160
120269065998164160
122379049612167040
122379049612167040
124604123241479168
124604123241479168
126955144434714624
126955144434714624
124465827877171200
119487194762084352
126802737298538496
132086184685977600
129275840330956800
134896529040998400
137894229686353920
137894229686353...

result:

ok Ok

Test #15:

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

input:

29
Won
Lost
Lost
Lost
Lost
Won
Won
Lost
Won
Won
Won
Lost
Lost
Lost
Won
Won
Won
Won
Won
Lost
Lost
Lost
Won
Won
Won
Lost
Lost
Lost
Won
Lost
Lost
Won
Won
Won
Lost
Won
Won
Lost
Won
Won
Won
Won
Won
Lost
Lost
Lost
Lost
Lost
Won
Won
Lost
Lost
Lost
Lost
Lost
Won
Won

output:

30594762403041760
30594762403041760
31151030810369792
31151030810369792
30563275512060928
29387764915443200
31116456969292800
32361115248064512
31700684324634624
33021546171494400
33724132260249600
33724132260249600
34473557421588480
34473557421588480
33671846783877120
35275268059299840
361356404509...

result:

ok Ok

Test #16:

score: 0
Accepted
time: 0ms
memory: 3908kb

input:

29
Lost
Lost
Won
Lost
Lost
Won
Won
Won
Lost
Won
Won
Won
Won
Won
Lost
Won
Won
Lost
Lost
Lost
Lost
Won
Won
Won
Won
Lost
Lost
Won
Won
Lost
Lost
Lost
Won
Lost
Won
Lost
Won
Won
Lost
Won
Lost
Lost
Lost
Lost
Lost
Lost
Won
Won
Lost
Won
Lost
Won
Won
Lost
Lost
Won
Lost

output:

30594762403041760
30594762403041760
30038493995713728
31151030810369792
30563275512060928
29387764915443200
31116456969292800
32361115248064512
33021546171494400
33021546171494400
33724132260249600
33724132260249600
32974707098910720
31475856776232960
29279866768588800
32068425508454400
297219553492...

result:

ok Ok

Test #17:

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

input:

29
Won
Lost
Won
Won
Won
Lost
Won
Won
Won
Lost
Won
Lost
Won
Lost
Won
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Won
Lost
Won
Won
Won
Lost
Won
Won
Won
Won
Won

output:

30594762403041760
30594762403041760
31151030810369792
31151030810369792
30563275512060928
29387764915443200
31116456969292800
29871798690521088
28042913056407552
25706003635040256
28440684872810496
25967581840392192
28852868711546880
26229880646860800
29279866768588800
26491308028723200
297219553492...

result:

ok Ok

Test #18:

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

input:

28
Lost
Lost
Won
Won
Lost
Won
Lost
Won
Lost
Lost
Won
Won
Lost
Lost
Lost
Lost
Lost
Won
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Lost
Won
Lost
Won
Lost
Lost
Lost
Lost
Lost
Lost
Won
Lost
Lost

output:

7787757702592448
7787757702592448
7640818878015232
7934696527169664
8090278812016128
8090278812016128
8255386542873600
8255386542873600
8431033065062400
8431033065062400
8243676774727680
8618389355397120
8818817014824960
8818817014824960
8603723916902400
8173537721057280
7544804050206720
67506141501...

result:

ok Ok

Test #19:

score: 0
Accepted
time: 0ms
memory: 3820kb

input:

5
Won
Lost
Won
Won
Lost
Won
Lost
Won

output:

280
280
320
320
256
384
256
512

result:

ok Ok

Test #20:

score: 0
Accepted
time: 0ms
memory: 3892kb

input:

5
Lost
Won
Lost
Lost
Lost
Won
Won
Lost

output:

280
280
320
320
256
128
256
512

result:

ok Ok