# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
43870 | admin | scanf 함수 5 (BSC_0_7) | C++17 | 2 ms | 836 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
pair<int, int> read() {
int a, b;
cin >> a >> b;
return make_pair(a, b);
}
int main() {
if(const auto [x, y] = read(); (x + y) % 2 == 0) {
cout << (x + y) / 2 << endl;
}else {
cout << (x + y) / 2 << ".5" << endl;
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |