PAT-乙-1008 1008 數組元素循環右移問題 (20 分)

代碼 #include <stdio.h> void reverse(int a[], int start, int end){ for(int i=start; i<=(start+end)/2; i++){ int tmp = a[i]; a[i] = a[start+end-i]; a[start+end-i] = tmp; } } int main(){ int n,
相關文章
相關標籤/搜索