| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1314891 | chengjiezhuo | scanf 함수 5 (BSC_0_7) | C++20 | 0 ms | 332 KiB |
#include <cstdio>
int a, b;
int main(){
scanf("%d%d", &a, &b);
if ((a + b) % 2 == 0){
printf("%d\n", (a + b) / 2);
}
else{
printf("%.1lf\n", (a + b) * 0.5);
}
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
