문제

링크

풀이

#include <stdio.h>
 
int main(void) {
  int r1, s;
 
  scanf("%d %d", &r1, &s);
  printf("%d", s*2-r1);
  return 0;
}