QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#485816 | #6743. water235 | duckindog | WA | 0ms | 3536kb | C++23 | 304b | 2024-07-21 09:48:27 | 2024-07-21 09:48:28 |
Judging History
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";
}
详细
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