X2 Author: Pakin Olanraktham View Problem Statement Source: PROGRAMMING.IN.TH Difficulty: Very Easy Tags: Implementation, Math Prerequisites: การเขียนโปรแกรมเบื้องต้น View External Solution เฉลย เฉลย CC++ #include <stdio.h> int main(){ int a, b; scanf("%d %d", &a, &b); printf("%d", 2*b - a); } #include <iostream> using namespace std; int main(){ int a, b; cin >> a >> b; cout << 2*b - a; }