计算一个3x3矩阵对角线和其它两条线的元素之和
#include <stdio.h>
int main ()
{
int d0,b0,s,i,j;
int a[3][3]{1,2,3,4,5,6,7,8,9};
for(i0,j2;i<3;i,j--)
dda[i][i]a[i][j];
for(i0,j0;i<3;)
{bba[i][j]a[i][j2];
ii2;}
sdb;
printf("d%d\nb%d\ns%d\n&qu…
题目: 题解:
func isPalindrome(s string) bool {s strings.ToLower(s)left, right : 0, len(s) - 1for left < right {for left < right && !isalnum(s[left]) {left}for left < right && !isalnum(s[right]) {right--}if l…