QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#370463#5038. Cityzzuqy#WA 0ms3784kbC++11402b2024-03-29 08:23:462024-03-29 08:23:46

Judging History

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

  • [2024-03-29 08:23:46]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3784kb
  • [2024-03-29 08:23:46]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
long long read()
{
    long long x;scanf("%lld",&x);return x;
}
long long ans;
int n,m;
int main()
{
    n=read();m=read();
    for(int i=2;i<=max(n,m)+1;i+=2)
    {
        if(n+1>=i)
        {
            ans=ans+m*(n+1-i+1);

        }
        if(m+1>=i)
        {
            ans=ans+n*(m+1-i+1);
        }
    }
    cout<<ans;
}

详细

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3784kb

input:

1 1

output:

2

result:

wrong answer 1st numbers differ - expected: '0', found: '2'