You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
301 B
14 lines
301 B
12 months ago
|
int main(){
|
||
|
int a[5][5] = {1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5};
|
||
|
int m, n, i, j;
|
||
|
m = 2;
|
||
|
n = 3;
|
||
|
j = 0;
|
||
|
while(j < 5){
|
||
|
i = a[m-1][j];
|
||
|
a[m-1][j] = a[n-1][j];
|
||
|
a[n-1][j] = i;
|
||
|
j = j + 1;
|
||
|
}
|
||
|
return a[2][0];
|
||
|
}
|