# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
318454 | codemaster111 | scanf 함수 5 (BSC_0_7) | C++17 | 1 ms | 364 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 <iostream>
using namespace std;
int main() {
int a, b;
cin>>a>>b;
if((a+b)%2==0) {
cout<<(a+b)/2;
} else {
double avg=(a+b)/2;
cout<<avg;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |