a015.
矩陣的翻轉
| From: [211.72.69.37] |
發表日期
:
2014-11-06 16:50
#include<stdio.h>
int main(){
int row, column, num[100][100], count_r, count_c, print_r, print_c;
while(scanf("%d %d", &row, &column)){
for(count_r = 0 ; count_r < row ; count_r++){
for(count_c = 0 ; count_c < column ; count_c++){
scanf("%d", &num[count_r][count_c]);
}
}
for(print_r = 0 ; print_r < column ; print_r++){
for(print_c = 0 ; print_c < row ; print_c++){
printf("%d ", num[print_c][print_r]);
}
printf("\n");
}
}
return 0;
}
請問造成TLE的問題為何呢?