题解 | #23年OPPO-a的翻转#
23年OPPO-a的翻转
https://www.nowcoder.com/practice/dcce2d0cc8f740c29e0885df96c9d625
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str1=sc.nextLine(); String str2=new StringBuilder(str1).reverse().toString(); int num=Integer.parseInt(str2); int num1=Integer.parseInt(str1); System.out.print(num+num1); } }