好久没登了 java
import java.util.Scanner;
public class Main {
static char[] a=new char[100];
static int n;
static int m;
static int[][] d=new int[100][100];
static int[][] q=new int[100][100];
static String s=new String();
public static void main(String[] args){
int i,j;
while(true)
{
Scanner in=new Scanner(System.in);
s=in.next();
a=s.toCharArray();
n=in.nextInt();
m=in.nextInt();
for(i=0;i<a.length;i++)
{
int sum=0;
for(j=i;j<a.length;j++)
{
sum=sum*10+a[j]-'0';
d[i][j]=sum;
}
}
//for(i=0;i<a.length)
}
}
}