Skip to content

Instantly share code, notes, and snippets.

@TheoKlein
Last active February 27, 2016 08:20
Show Gist options
  • Select an option

  • Save TheoKlein/2867c011378713051b83 to your computer and use it in GitHub Desktop.

Select an option

Save TheoKlein/2867c011378713051b83 to your computer and use it in GitHub Desktop.
ZeroJudge_a015_C
#include <stdio.h>
int main (){
int row;
int column;
int array[100][100];
while(scanf("%d%d",&row,&column)!=EOF){
int x,k,y,t;
for(x = 0 ; x < row ; x++){
for(k = 0 ; k < column ; k++)
scanf("%d",&array[x][k]);
}
for( y = 0 ; y <column ; y++){
for(t = 0 ; t < row ; t++)
printf("%d ",array[t][y]);
printf("\n");
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment