QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#485816#6743. water235duckindogWA 0ms3536kbC++23304b2024-07-21 09:48:272024-07-21 09:48:28

Judging History

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

  • [2024-07-21 09:48:28]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3536kb
  • [2024-07-21 09:48:27]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

int32_t main() { 
  cin.tie(0)->sync_with_stdio(0);

  int n, m; cin >> n >> m;

  int answer = 0;
  for (int i = 1, pass = 0; i <= n; i += 2, pass ^= 1) answer += (m + (pass || m == 1)) / 2;
  answer += !(n & 1);

  cout << answer << "\n";
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2 1

output:

2

result:

wrong output format Unexpected end of file - int32 expected