QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#327484#7852. Mini-Tetris 3023Complexity_CutterAC ✓0ms3720kbC++14602b2024-02-15 01:46:442024-02-15 01:46:45

Judging History

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

  • [2024-02-15 01:46:45]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3720kb
  • [2024-02-15 01:46:44]
  • 提交

answer

#include<bits/stdc++.h>

using namespace std;

#define debug cout<<"Debug\n";
#define en '\n'
#define all(x) x.begin() , x.end()

#define ll long long

#define pi acos(-1.0)
#define mod 1000000007

#define _fastio_  ios_base:: sync_with_stdio(false); cin.tie(0); cout.tie(0);




int main(){
    _fastio_
    ll a,b,c;
    cin>>a>>b>>c;

    ll ans=a*2;
    if(c>=2){
        if(b>=1){
            ans+=2*b+3;
            c-=2;
            ans+=(c/2)*3;
        }
        else{
            ans+=(c/2)*3;
        }
    }

    cout<<ans<<en;

    return 0;
}




Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3648kb

input:

2 2 2

output:

11

result:

ok single line: '11'

Test #2:

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

input:

1 1 1

output:

2

result:

ok single line: '2'

Test #3:

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

input:

0 0 0

output:

0

result:

ok single line: '0'

Test #4:

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

input:

0 0 1

output:

0

result:

ok single line: '0'

Test #5:

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

input:

0 2 2

output:

7

result:

ok single line: '7'

Test #6:

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

input:

0 2 3

output:

7

result:

ok single line: '7'

Test #7:

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

input:

0 2 4

output:

10

result:

ok single line: '10'

Test #8:

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

input:

20 20 20

output:

110

result:

ok single line: '110'

Test #9:

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

input:

20 20 19

output:

107

result:

ok single line: '107'

Test #10:

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

input:

20 19 20

output:

108

result:

ok single line: '108'

Test #11:

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

input:

20 19 19

output:

105

result:

ok single line: '105'

Test #12:

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

input:

19 20 20

output:

108

result:

ok single line: '108'

Test #13:

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

input:

19 20 19

output:

105

result:

ok single line: '105'

Test #14:

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

input:

19 19 20

output:

106

result:

ok single line: '106'

Test #15:

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

input:

0 0 2

output:

3

result:

ok single line: '3'

Test #16:

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

input:

19 19 19

output:

103

result:

ok single line: '103'

Test #17:

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

input:

50 50 50

output:

275

result:

ok single line: '275'

Test #18:

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

input:

50 50 49

output:

272

result:

ok single line: '272'

Test #19:

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

input:

50 49 50

output:

273

result:

ok single line: '273'

Test #20:

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

input:

50 49 49

output:

270

result:

ok single line: '270'

Test #21:

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

input:

49 50 50

output:

273

result:

ok single line: '273'

Test #22:

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

input:

49 50 49

output:

270

result:

ok single line: '270'

Test #23:

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

input:

49 49 50

output:

271

result:

ok single line: '271'

Test #24:

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

input:

49 49 49

output:

268

result:

ok single line: '268'

Test #25:

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

input:

0 0 50

output:

75

result:

ok single line: '75'

Test #26:

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

input:

0 0 3

output:

3

result:

ok single line: '3'

Test #27:

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

input:

0 1 50

output:

77

result:

ok single line: '77'

Test #28:

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

input:

0 2 50

output:

79

result:

ok single line: '79'

Test #29:

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

input:

0 50 0

output:

0

result:

ok single line: '0'

Test #30:

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

input:

0 50 1

output:

0

result:

ok single line: '0'

Test #31:

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

input:

0 50 2

output:

103

result:

ok single line: '103'

Test #32:

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

input:

0 50 3

output:

103

result:

ok single line: '103'

Test #33:

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

input:

0 0 4

output:

6

result:

ok single line: '6'

Test #34:

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

input:

0 1 1

output:

0

result:

ok single line: '0'

Test #35:

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

input:

0 1 2

output:

5

result:

ok single line: '5'

Test #36:

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

input:

0 1 3

output:

5

result:

ok single line: '5'

Test #37:

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

input:

0 1 4

output:

8

result:

ok single line: '8'

Test #38:

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

input:

0 2 1

output:

0

result:

ok single line: '0'