简单小学数论规律题:没想到吧giegie~ 摘要:# 小学奥数结论题(证明略) `若两个整数p、q互质 ,则p,q不能凑出的最小整数为 (p - 1)*(q - 1) - 1;` ```cpp #include using nam…… 题解列表 2022年10月21日 0 点赞 1 评论 723 浏览 评分:9.9
最简单解法,一看就会,不会的找我。 摘要:解题思路:注意审题,输出格式一定要正确注意事项:注意a是整形,b是浮点数,c是字符参考代码:#include<stdio.h>int main(){ int a; float b; cha…… 题解列表 2022年10月21日 2 点赞 1 评论 469 浏览 评分:9.9
题目 1016: [编程入门]水仙花数判断—常规求解方法 摘要:解题思路:while循环注意事项:指数用pow函数或者其他形式参考代码:#include<stdio.h> #include<math.h> int main(void) { int i…… 题解列表 2022年10月21日 0 点赞 0 评论 385 浏览 评分:0.0
数字后移(基础思路) 摘要:解题思路:两个数组,a[]保存原始输入值,b[]的头存a[]的尾,最后将a[]的后半部分给b[];注意事项:参考代码:#include<iostream>using namespace std;int…… 题解列表 2022年10月21日 0 点赞 0 评论 351 浏览 评分:9.9
编写题解 1141: C语言训练-百钱百鸡问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int cock=0, hen=0, chicken=99; for (; cock < 20; cock++)…… 题解列表 2022年10月21日 0 点赞 0 评论 283 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int N,i,j,k; scanf("%d",&N); for(i=1;i<=N;i++)…… 题解列表 2022年10月21日 0 点赞 0 评论 348 浏览 评分:0.0
真 小白做法 摘要:解题思路:注意事项:参考代码:int x,i=0; scanf("%d",&x); int y=x; while(x!=0){ x/=10; i++; …… 题解列表 2022年10月21日 0 点赞 0 评论 334 浏览 评分:0.0
利用strlen函数即可求解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void fun1(char charater[100]){ int i; i=str…… 题解列表 2022年10月21日 0 点赞 0 评论 382 浏览 评分:0.0
只要有因数比输入的数小,那就不是素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void isprime(int n){ int i,m=0; if(n==1) //1比较特殊单独考虑 { …… 题解列表 2022年10月21日 0 点赞 0 评论 311 浏览 评分:9.9
完全背包问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxs 110#define maxb 10#define max…… 题解列表 2022年10月21日 0 点赞 0 评论 459 浏览 评分:9.9