题解 | #牛牛的等差数列#
牛牛的等差数列
http://www.nowcoder.com/practice/fb9daba67b88437a9e501adf020d425e
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int one = scanner.nextInt(); int two = scanner.nextInt(); System.out.print(two * 2 - one); } }