공부/백준

3046 c 백준

ijadon 2022. 2. 7. 21:34

#include <stdio.h>
int main(){
    int R1, R2, S;
    scanf("%d %d", &R1, &S);
    R2= 2*S -R1;
    printf ("%d", R2);
}