Submission #3017027
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int k = sc.nextInt(); if (a <= b) { if (b <= c){ System.out.println("答え1は"+(Math.pow(2,k)*c+a+b)); } else { System.out.println("答え2は"+(Math.pow(2,k)*b+a+c)); } } else { if (a <= c){ System.out.println("答え3は"+(Math.pow(2,k)*c+a+b)); } else { System.out.println("答え4は"+(Math.pow(2,k)*a+b+c)); } } } }
Submission Info
Submission Time | |
---|---|
Task | B - Maximum Sum |
User | ks96neko |
Language | Java7 (OpenJDK 1.7.0) |
Score | 0 |
Code Size | 756 Byte |
Status | WA |
Exec Time | 104 ms |
Memory | 22612 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt |
All | in01.txt, in02.txt, in03.txt, in04.txt, sample_01.txt, sample_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
in01.txt | WA | 104 ms | 20948 KB |
in02.txt | WA | 95 ms | 17108 KB |
in03.txt | WA | 95 ms | 20692 KB |
in04.txt | WA | 95 ms | 18900 KB |
sample_01.txt | WA | 96 ms | 22612 KB |
sample_02.txt | WA | 95 ms | 18900 KB |