蓝桥杯基础练习VIP-2n皇后问题(Python语言) 摘要:解题思路:先放置黑皇后,黑皇后放置完毕后,在黑皇后已占位的基础上开始放置白皇后,一个回合实际上既包括放置黑皇后也包括放置白皇后,待黑白皇后都放置完毕后,再恢复现场,进入下一轮参考代码:from col…… 题解列表 2023年01月05日 0 点赞 0 评论 541 浏览 评分:0.0
自定义函数之字符串拷贝(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<assert.h>char* my_strcpy( char* dest, const char* src,int m…… 题解列表 2023年01月05日 0 点赞 0 评论 338 浏览 评分:0.0
编写题解 1671: 小九九 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> //定义头文件 int main() { int i, j; for (i …… 题解列表 2023年01月05日 0 点赞 0 评论 278 浏览 评分:0.0
编写题解 1670: 拆分位数 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> //定义头文件 int main() { int i,j,k,l; …… 题解列表 2023年01月05日 0 点赞 0 评论 315 浏览 评分:0.0
编写题解 1030: [编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> #define n 3 //定义头文件 int main() { in…… 题解列表 2023年01月05日 0 点赞 0 评论 338 浏览 评分:0.0
C语言训练-求具有abcd=(ab+cd)2性质的四位数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a,b,c; for(i=1000;i<=9999;i++) { …… 题解列表 2023年01月05日 0 点赞 0 评论 381 浏览 评分:0.0
C语言训练-求函数值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int x){ if(x==1) { return 10; } …… 题解列表 2023年01月05日 0 点赞 0 评论 468 浏览 评分:0.0
根据判断最大公约数是否为一来判断 摘要:解题思路:我觉得最最最简单的思路了注意事项:参考代码:#include <stdio.h>int main(){ int i = 0; for(i=1;i<=40;i++) { …… 题解列表 2023年01月05日 0 点赞 0 评论 350 浏览 评分:0.0
字符串正反连接(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>char *fun(char str[]){ char* str1 = str; char* str…… 题解列表 2023年01月05日 0 点赞 0 评论 345 浏览 评分:0.0
立方和不等式 摘要:解题思路:用for循环遍历注意事项:当s==n时,输出的是最大的i;当s>n时,输出i-1;参考代码:#include<iostream>using namespace std;int main(){…… 题解列表 2023年01月05日 0 点赞 0 评论 624 浏览 评分:0.0