# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
19578 | thebarbershop | scanf 함수 5 (BSC_0_7) | C++98 | 0 ms | 1084 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 <cstdio>
int main() {
int a, b;
scanf("%d%d", &a, &b);
double av = (a+b)/2.0;
if(av == (int)av)
printf("%d", (int)av);
else
printf("%.1lf", av);
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |