QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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";
}
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