蛇形矩阵(java利用for循环) 摘要:解题思路:以n=5为例:第一行第一个数是1每一行的第一个数与前一行的第一个数依次大1,2,3,4由此我们可以推出每一行的第一个数第一行前一个数和后一个数依次相差2,3,4,5第二行前一个数和后一个数依…… 题解列表 2023年02月21日 0 点赞 0 评论 298 浏览 评分:9.9
楼上题解太逊了 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n,a,b,tail,head,k[300],q[300][3],p[300…… 题解列表 2023年02月21日 0 点赞 2 评论 383 浏览 评分:6.0
分解因数(暴搜) 摘要:解题思路:暴力搜索,满足条件则方案+1 参考代码: ```cpp #include using namespace std; #define ll long long const int …… 题解列表 2023年02月21日 0 点赞 3 评论 664 浏览 评分:7.3
学霸的迷宫 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;char c[1007][1007];int vis[1007][1007];int…… 题解列表 2023年02月21日 0 点赞 0 评论 431 浏览 评分:0.0
常规解法 求金币 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,k=0,m=0,sum=0; cin>>n; …… 题解列表 2023年02月21日 0 点赞 0 评论 521 浏览 评分:9.9
结构体之成绩统计2 摘要:- 解题思路:用两个函数完成输入与输出,具体见代码注释 - 代码如下: ```c #include #include typedef struct stduent { char i…… 题解列表 2023年02月21日 0 点赞 0 评论 492 浏览 评分:9.9
2820: 含k个3的数(python) 摘要:解题思路:注意事项:参考代码:m,k = input().split() y = "NO" if int(m) % 19 == 0 and m.count("3") == int(k): …… 题解列表 2023年02月21日 0 点赞 0 评论 598 浏览 评分:9.9
2819: 数字反转(python) 摘要:解题思路:注意事项:参考代码:n = int(input()) if n < 0: print("-",end = "") n = -n n = str(n)[::-1] …… 题解列表 2023年02月21日 0 点赞 0 评论 493 浏览 评分:0.0
结构体之成绩记录 摘要:解题思路:用结构体数组来解决问题注意事项:见代码参考代码:#include <stdio.h>typedef struct student{ char id[20]; char name[20]; i…… 题解列表 2023年02月21日 0 点赞 0 评论 338 浏览 评分:0.0
买图书的小明 摘要:解题思路:注意事项:参考代码:#includeint main(){ double n,m,s; scanf("%lf %lf",&n,&m); s=n-0.8*m; if(n==10&&m==1) …… 题解列表 2023年02月21日 0 点赞 0 评论 482 浏览 评分:0.0