关键处只有一行代码 摘要:解题思路:根据老板可以借水,可以变相理解为使用2个空瓶和老板换一瓶水,代码改写为参考代码:while 1: t=int(input()) if t == 0: break …… 题解列表 2022年10月21日 0 点赞 1 评论 507 浏览 评分:9.9
编写题解 2879: 错误探测 C 摘要:解题思路:输入-每行计算1的值-每列计算1的值-输出注意事项:分开写比较清楚参考代码:#include<stdio.h>int main(){ int n; int a=0,b=0; …… 题解列表 2022年10月21日 0 点赞 0 评论 1054 浏览 评分:9.9
打地鼠-题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>//int f(int a,int b);main(){int n,n1; while(~scanf("…… 题解列表 2022年10月21日 0 点赞 0 评论 551 浏览 评分:9.9
求矩阵最大元素值、下标 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,k,l; int big,tmp; int a[100][100]; scanf("%d",…… 题解列表 2022年10月21日 0 点赞 0 评论 655 浏览 评分:9.9
C语言-矩阵交换行 摘要:解题思路:输入-改行-输出注意事项:改行的时候注意是一个二维数组参考代码:#include<stdio.h>int main(){ int n[5][5]; int m,a; int…… 题解列表 2022年10月21日 0 点赞 1 评论 945 浏览 评分:7.3
简单的动态规划算法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 15//对于100%的数据,n<=13int n,simi…… 题解列表 2022年10月21日 0 点赞 0 评论 798 浏览 评分:9.9
调库就行了 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 10010#define maxm 105int n,m;…… 题解列表 2022年10月21日 0 点赞 0 评论 525 浏览 评分:9.9
简单小学数论规律题:没想到吧giegie~ #小学奥数结论题(证明略)`若两个整数p、q互质,则p,q不能凑出的最小整数为(p-1)*(q-1)-1;````cpp#includeusingnamespacestd;intn,m;intmain(){cin>>n>>m;cout 题解列表 2022年10月21日 0 点赞 1 评论 860 浏览 评分:9.9
最简单解法,一看就会,不会的找我。 摘要:解题思路:注意审题,输出格式一定要正确注意事项:注意a是整形,b是浮点数,c是字符参考代码:#include<stdio.h>int main(){ int a; float b; cha…… 题解列表 2022年10月21日 2 点赞 1 评论 629 浏览 评分:9.9
题目 1016: [编程入门]水仙花数判断—常规求解方法 摘要:解题思路:while循环注意事项:指数用pow函数或者其他形式参考代码:#include<stdio.h> #include<math.h> int main(void) { int i…… 题解列表 2022年10月21日 0 点赞 0 评论 572 浏览 评分:0.0