题解11111111111111111111111 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){int i,j,k=4,a[4],t,s=0;for(i=0;i<4;i++)scanf("%d",&a[i])…… 题解列表 2021年08月13日 0 点赞 0 评论 170 浏览 评分:0.0
奇度单增序列(完美c++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[500],i,j=0,m; //输入 ci…… 题解列表 2021年08月13日 0 点赞 0 评论 665 浏览 评分:7.4
输出实数,利用for循环 摘要:解题思路: 每个输出都一样,所以令其循环输出 printf("%6.2f ", x) 即可,虽然在这道题中显得有些多余 但在需要大量输出的地方还是比较简单的注意事项…… 题解列表 2021年08月13日 0 点赞 0 评论 267 浏览 评分:0.0
插入排序,java代码;这道题就是有点坑(注意例子) 摘要:解题思路:注意事项:建议开个VIP,不然你哪里错了都不知道,这道题的例题和题目给的不符合要求,看下图!!!!!参考代码:package lanqiao; import java.util.Sca…… 题解列表 2021年08月13日 0 点赞 0 评论 262 浏览 评分:9.9
1016: [编程入门]水仙花数判断 摘要:#include<stdio.h>int main(){ int i,s1,s2,s3,s; for(i=100;i<=999;i++) { s1=(i%100)%10…… 题解列表 2021年08月13日 0 点赞 0 评论 686 浏览 评分:0.0
1015: [编程入门]求和训练 摘要:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); int i,j,s1=0,s2=0; …… 题解列表 2021年08月13日 0 点赞 0 评论 171 浏览 评分:0.0
1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:注意溢出参考代码:(小白求解)下面代码不能通过,错误50#include<stdio.h>int main(){ int n,j,i=1; long int S=0; …… 题解列表 2021年08月13日 0 点赞 0 评论 219 浏览 评分:9.9
1019数组解法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int fun(int n){ int a[4],i; while(n!=0) {…… 题解列表 2021年08月13日 0 点赞 0 评论 222 浏览 评分:0.0
1013: [编程入门]Sn的公式求和 摘要:参考代码:#include<stdio.h>int main(){ int n,S=0,i,j=2; scanf("%d",&n); for(i=0;i<n;i++) { …… 题解列表 2021年08月13日 0 点赞 0 评论 230 浏览 评分:0.0
筛选N以内的素数,简单优化过的算法 摘要:解题思路:此算法进行了简单的优化,只找n以内的奇数,并且验证一个数i是否为素数时用i%j(j=2,3,4…,i/2)。(实际上只需增加到i的平方根,因为如果i能拆成两个整数的积,通常这两个整数位于i的…… 题解列表 2021年08月13日 0 点赞 0 评论 302 浏览 评分:9.9