Submission #19578

#TimeUsernameProblemLanguageResultExecution timeMemory
19578thebarbershopscanf 함수 5 (BSC_0_7)C++98
100 / 100
0 ms1084 KiB
#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 timeMemoryGrader output
Fetching results...