[백준] 3046번 : R2 - Java(자바)

강재원·2022년 9월 7일
0

[코딩테스트] Java

목록 보기
16/200



https://www.acmicpc.net/problem/3046

import java.util.*;
public class Main {
    public static void main(String args[]) {
        Scanner sc=new Scanner(System.in);
        int r=sc.nextInt();
        int s=sc.nextInt();
        System.out.format("%d",2*s-r);
    }
}
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글