题解列表
c语言简单思路,拿走不谢
摘要:分两部分分析:1,4个数中选3个。2,选出来的3个排列组合。ok,思路清晰了下面废话不多说直接展示。参考代码:#include <stdio.h>
int main()
{
int a[4],……
编写题解 2832: 第n小的质数
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;bool zs(int n){ for(int i=2;i<n/2+1;i++) {……
1094字符串的输入输出(两个while循环)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n; scanf("%d",&n); char s[10……
1095 3n+1(递归解决)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>long long digui(int n,long long m){ if(n==1)//如果是 1 ,就退出循环 { m+=1;……
完数的判断 for循环(c语言)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int main(){
int N,a[200],i,j,l;
scanf("%d",&N);
for(i=1;i<=……
编写题解 1022: [编程入门]筛选N以内的素数
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;bool qsh(int n) { for(int i=2;i<n;i++) {……
有规律的数列求和(c语言)
摘要:解题思路:假设分子为a,分母为b。Sn就为(a/b)+((a+b)/a)+(((a+b)+a)/(a+b))+......按照这个规律来设计代码。注意事项:参考代码:#include <stdio.h……