摘要:
#include<stdio.h> #include<stdlib.h> #include<math.h> int queue[8]; int sum = 0; void show() { for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; j+ 阅读全文
posted @ 2021-01-18 15:47
loliconsk
阅读(79)
评论(0)
推荐(0)
摘要:
这是一道模拟题,我们首先定义一个二维数组,然后将他的边界定义出来,定义好边界后就开始往数组中放数字,每次到达边界,就改变方向,但注意奇数的螺旋矩阵最中间的数需要自己定义,否则会造成死循环 以下代码实现(优化前) #include<stdio.h> #include<string.h> #includ 阅读全文
posted @ 2021-01-18 10:27
loliconsk
阅读(189)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2021-01-18 09:01
loliconsk
阅读(36)
评论(0)
推荐(0)
摘要:
#include<stdio.h> unsigned long long max(unsigned long long a, unsigned long long b) { if (a > b) return a; else return b; } int main(void) { int hors 阅读全文
posted @ 2021-01-18 08:50
loliconsk
阅读(128)
评论(0)
推荐(0)

浙公网安备 33010602011771号