Submission #213378

#TimeUsernameProblemLanguageResultExecution timeMemory
213378berryzedscanf 함수 5 (BSC_0_7)Java
100 / 100
133 ms13976 KiB
import java.util.Scanner; public class scanf5 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int sum = a + b; if (sum % 2 == 0) System.out.println((a + b) / 2); else System.out.println((a + b) * 0.5); } }
#Verdict Execution timeMemoryGrader output
Fetching results...