QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#228548#7638. Lakeucup-team1448#WA 0ms1616kbC++17840b2023-10-28 13:41:402023-10-28 13:41:42

Judging History

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

  • [2023-10-28 13:41:42]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:1616kb
  • [2023-10-28 13:41:40]
  • 提交

answer

//#define dxx
#ifdef dxx
#define dbg(...) fprintf(stderr,__VA_ARGS__)
#define dex(a) dbg(#a"=%lld onL%d infun %s\n",a,__LINE__,__FUNCTION__)
#include<cstdlib>
#define pause sys##tem("pause")
#define _GLIBCXX_DEBUG
#endif

#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cstdlib>
#include<vector>

using ll=long long;
using std::max;
using std::min;
using std::abs;
template<class T> void cmax(T&a,T b){a=max(a,b);}
template<class T> void cmin(T&a,T b){a=min(a,b);}
template<class T> T sqr(T a){return a*a;}

namespace xm{
    void _(){
        int N,M;

        scanf("%d%d",&N,&M);
        for(int i=1;i<=N&&i<=M;++i){
            if(N-i*6+M<=i){
                printf("%d\n",i*2-1);
                break;
            }
        }
    }
}

int main(){
    xm::_();
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1 1

output:

1

result:

ok single line: '1'

Test #2:

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

input:

1 4

output:

1

result:

ok single line: '1'

Test #3:

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

input:

5 5

output:

3

result:

ok single line: '3'

Test #4:

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

input:

4 4

output:

3

result:

ok single line: '3'

Test #5:

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

input:

3 4

output:

1

result:

ok single line: '1'

Test #6:

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

input:

8 12

output:

5

result:

ok single line: '5'

Test #7:

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

input:

12 8

output:

5

result:

ok single line: '5'

Test #8:

score: -100
Wrong Answer
time: 0ms
memory: 1468kb

input:

8182 520051

output:


result:

wrong answer 1st lines differ - expected: '260025', found: ''