doa3138   2년 전

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt(),d = 0;

if(a==b) {

if (b == c) {

d = 10000 +((a)*1000);

}else{

d = 1000 + (a)*100;

}

}else if(b == c) {

d = 1000 + (b)*100;

}else if(a == c) {

d = 1000 + (a)*100;

}else if(a < b) {

a = b;

d = a * 100;

}else if (a < c) {

a = c;

d = a * 100;

}else {

d = a * 100;

}

System.out.println(d);

}

}

lusielar   2년 전

반례 1 2 3 
300이 나와야 합니다.

댓글을 작성하려면 로그인해야 합니다.