BackJoon Algorithm 3046 R2
BackJoon Algorithm - Java
문제
풀이
import java.util.Scanner;
public class Back_3046 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// 입력
int R1= sc.nextInt();
int S=sc.nextInt();
int R2=(S*2)-R1;
System.out.println(R2);
}
}
댓글남기기