注意数组扩容方法 /*** Note: The returned array must be malloced, assume caller calls free().*/
int* plusOne(int* digits, int digitsSize, int* returnSize) {int indexdigitsSize-1,pos1;while(index>0){digits[index]1;if(digits[index]10){digits[index]0;index-…
解题思路 相关代码
import java.util.Scanner;public class Main {public static void main(String[] args){Scanner scanner new Scanner(System.in);int n scanner.nextInt();int a[][] new int[n1][n1];for(int i1;i<n;i)for(int j1;j<i;j)a[i][j] scanner.nextI…