1670: 拆分位数 摘要:#include<stdio.h> int main() { //scanf("%d",&n); char a,b,c; a=getchar(); …… 题解列表 2023年03月11日 0 点赞 0 评论 308 浏览 评分:0.0
1011: [编程入门]最大公约数与最小公倍数 摘要:#include<stdio.h> int main() { int a,b,m,n; int gcd(int x,int y);//函数声明 int lcm(int…… 题解列表 2023年03月11日 0 点赞 0 评论 248 浏览 评分:0.0
蛇形矩阵(简单赋值思路) 摘要:解题思路:先寻找赋值规律例如:n=3,t=1;赋值顺序:i=0,j=0,a[i][j]=t++ i=1,j=0,a[i][j]=t++   题解列表 2023年03月11日 0 点赞 0 评论 336 浏览 评分:0.0
奇数偶数和 摘要:解题思路: 用两次循环分别跑一遍奇数和与偶数和注意事项:参考代码: #include<stdio.h>int main(){ int m,i,j; int a=0,n=0; …… 题解列表 2023年03月11日 0 点赞 0 评论 308 浏览 评分:0.0
哥们 看看我为啥运行错误 凑啊 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s ="abcdefghijklmnopqrstuvwxyz";cha…… 题解列表 2023年03月11日 0 点赞 0 评论 391 浏览 评分:0.0
三次循环加剪枝 摘要:解题思路:从最大的数开始枚举,如果遇到小的满足条件的数直接跳出循环注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int n,m,s…… 题解列表 2023年03月11日 0 点赞 0 评论 509 浏览 评分:9.9
3074: 计算(calc) 摘要:解题思路:自己看着代码 把案例过一遍 代码就明白了 自己再多敲几遍注意事项:参考代码:#include<bits/stdc++.h>using namespace std;stack<int>num;…… 题解列表 2023年03月11日 0 点赞 0 评论 520 浏览 评分:0.0
flag开关+C语言解决对称矩阵判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,k=0,flag; int a[100][100]; while(scanf("%d",&n)!=E…… 题解列表 2023年03月11日 0 点赞 0 评论 376 浏览 评分:9.9
快速排序-链表合并 摘要:解题思路:注意事项:参考代码:while True: try: a = [] N, M = map(int, input().split()) for …… 题解列表 2023年03月10日 0 点赞 0 评论 324 浏览 评分:0.0
杨辉三角—数组版本C++ 摘要:解题思路:构造一个二维矩阵存放杨辉三角的数值,然后直接查找输出指定位置的数据即可注意事项:但是使用int类型构造二维数组时,总是报错,提示数组越界,偶然间看到用long long 来代替,问题得到解决…… 题解列表 2023年03月10日 0 点赞 0 评论 338 浏览 评分:0.0