最大公约数与最小公倍数 摘要:解题思路:由于两个数的乘积等于这两个数的最大公约数与最小公倍数的积。所以,求两个数的最小公倍数,就可以先求出它们的最大公约数,然后用两个数的积除去最大公约数得出它们的最小公倍数。参考代码:#inclu…… 题解列表 2023年11月04日 0 点赞 0 评论 373 浏览 评分:0.0
结构体之成绩记录(原始解法通俗易懂) 摘要:解题思路:原始解法,没有加任何指针或者链表。方便理解。注意事项:参考代码:#include<stdio.h>#include<string.h>struct Student { char id[128…… 题解列表 2023年11月04日 0 点赞 0 评论 321 浏览 评分:0.0
for循环c语言版 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int Y; float M,R; scanf("%f %f %d",&R,&M,&Y); …… 题解列表 2023年11月04日 0 点赞 0 评论 367 浏览 评分:0.0
宏定义之闰年判断 摘要:解题思路:在这题中使用定义宏的方法比使用定义函数的方法更简单注意事项:#define 定义常量和宏注意 #define 后面没有分号;#define 常量名 常量值#define 宏名 宏表达式参考代…… 题解列表 2023年11月05日 0 点赞 0 评论 297 浏览 评分:0.0
新手简单快速解决!!! 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n = 0, x = 0, y = 0; cin …… 题解列表 2023年11月05日 0 点赞 0 评论 346 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-刷题统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long int a, b, n, day = 0; scanf("%ld%ld%ld", &a, …… 题解列表 2023年11月05日 0 点赞 0 评论 339 浏览 评分:0.0
c语言求解链表之节点删除 摘要:```c #include #include #define _CRT_SECURE_NO_WARNINGS 1 typedef struct student { int num;…… 题解列表 2023年11月05日 0 点赞 0 评论 517 浏览 评分:0.0
图像旋转(挺绕的,我是再整了一个数组为旋转了90度的数组) 摘要:解题思路:旋转90度得到的新数组也就是原来数组的每一列,变为新数组的每一行注意事项:参考代码:#include<stdio.h> int main() { int n,m; scanf("…… 题解列表 2023年11月05日 0 点赞 0 评论 267 浏览 评分:0.0
题解 1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int N,a=1; cin>>N; for(int i=1…… 题解列表 2023年11月05日 0 点赞 0 评论 404 浏览 评分:0.0
c++ STL解法,用上vector容器,sort函数 摘要:#include<iostream> #include<vector> #include<algorithm> using namespace std; bool cmp(int a,int …… 题解列表 2023年11月05日 0 点赞 0 评论 302 浏览 评分:0.0