import java.util.*; public class Q2 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNextLine()){ String line = sc.nextLine(); line = line.substring(1,line.length()-1); String[] strs = line.split(","); int[] nums = new int[strs.length]; for(int i=0;i<nums.length;i++) nums[i] = Integer.parseInt(strs[i]); helper(nums); } }
1 1

相关推荐

正在热议
更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务