C code faster than 100%
\n\nint** flipAndInvertImage(int** A, int ASize, int* AColSize, int* returnSize, int** returnColumnSizes){\n\t*returnSize = ASize;  //\u8FD4\u56DE\u5217\u7684\u
```\n\nint** flipAndInvertImage(int** A, int ASize, int* AColSize, int* returnSize, int** returnColumnSizes){\n\t*returnSize = ASize;  //\u8FD4\u56DE\u5217\u7684\u5927\u5C0F(\u6709\u5E7E\u5217)\n\tint colsize = *AColSize;  //\u884C\u7684\u5927\u5C0F(\u6709\u5E7E\u884C)\n\tint** retarr = (int**)malloc(sizeof(int*) * ASize); //\u52D5\u614B\u5BA3\u544A\u4E00\u500B\u96D9\u91CD\u6307\u6A19\n\t*returnColumnSizes = (int*)malloc(sizeof(int) * (*AColSize)); //\u76EE\u7684:\u8FD4\u56DE\u6BCF\u4E00\u5217\u6709\u5E7E\u884C\n\tfor (int i = 0; i < ASize; i ++)  //\u5C0D\u6BCF\u4E00\u5217\u5206\u5225\u8655\u7406\n    {\n\t\tint* newone = (int*)malloc(sizeof(int) * colsize);\n\t\tfor (int j = 0; j < colsize; j ++) \n        {\n\t\t\tint t = A[i][j];\n\t\t\tt^=1; //\u5148\u5C07t\u76841\u8B8A0\uFF0C0\u8B8A1\u3002\n\t\t\tnewone[colsize - j - 1] = t;  //\u4F7F\u8A72\u884C\u524D\u5F8C\u9806\u5E8F\u5C0D\u8ABF\n\t\t}\n\t\tretarr[i] = newone;  \n\t\t(*returnColumnSizes)[i] = colsize;\n\t}\n\treturn retarr;\n}\n\n```
['C']