c++ sort快排解决问题(签到) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int N = 2e2 + 5;int main(){ …… 题解列表 2023年01月12日 0 点赞 0 评论 526 浏览 评分:0.0
蓝桥杯算法训练-动态数组使用(C语言) 摘要:#include<stdio.h> #include<stdlib.h>//后面调用malloc函数需要引用头文件<stdlib.h> void fun1(int* p, int n) { …… 题解列表 2023年01月12日 0 点赞 0 评论 612 浏览 评分:0.0
水题目,只需一个bool 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool is_leap(int y){ return y%4 == 0 && y % 100…… 题解列表 2023年01月11日 0 点赞 0 评论 461 浏览 评分:0.0
简简单单无脑列举 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void GetReal(float x){ cout << x << endl;}void …… 题解列表 2023年01月11日 0 点赞 0 评论 491 浏览 评分:0.0
c++语言解决电报加密 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<string.h>using namespace std;void get(char…… 题解列表 2023年01月11日 0 点赞 0 评论 470 浏览 评分:0.0
在后面的的往前面移,前面的直接往后面搬 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,m; scanf("%d",&n); int a[n-1]; int i …… 题解列表 2023年01月11日 0 点赞 0 评论 479 浏览 评分:0.0
指针数组法(直接翻译题意) 摘要:解题思路:将题干中出现的数字的英文单词对应储存在数组中,再对应输出注意事项:参考代码:#include<stdio.h>int main(){ char *a[60]={"zero","one","t…… 题解列表 2023年01月11日 0 点赞 0 评论 695 浏览 评分:9.9
成绩(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,s; scanf("%d%d%d",&a,&b,&c); s=a*0…… 题解列表 2023年01月11日 0 点赞 0 评论 801 浏览 评分:9.9
想了几种办法,这种最耗时最少 摘要:解题思路:while循环语句,if判断语句注意事项:认真参考代码:#include "stdio.h"int main(){ int m,n; int sum=0; int num; scanf("…… 题解列表 2023年01月11日 0 点赞 0 评论 581 浏览 评分:0.0
一直不习惯用while,这次解出来啦 摘要:解题思路:用while语句,if判断语句,奇数的判断方法语句余数不为零即可注意事项:别忘了题目给的数字范围哦参考代码:#include "stdio.h"int main(){ int m,n; in…… 题解列表 2023年01月11日 0 点赞 0 评论 601 浏览 评分:0.0