题解 | #牛牛的等差数列#
牛牛的等差数列
https://www.nowcoder.com/practice/fb9daba67b88437a9e501adf020d425e
解题思路
没啥好说的,看代码
代码实现
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); //半径 int b = sc.nextInt(); System.out.printf("%d",b-a+b); } }