Skip to content

Instantly share code, notes, and snippets.

@masawada
Last active August 29, 2015 14:11
Show Gist options
  • Save masawada/572d881397fcd1f7345a to your computer and use it in GitHub Desktop.
Save masawada/572d881397fcd1f7345a to your computer and use it in GitHub Desktop.
#define N 32768 or 32769

char a[N][N], b[N][N];

main(){
	int i, j;

	for(j=0; j<N; j++){
	  for(i=0; i<N i++){
	    b[i][j] = a[i][j];	
	  }	
	}

	return 0;
}
  • Nの値が32768と32769の時では実行速度に違いがでる。それはなぜか。
  • 提出期限は次回講義まで
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment