编写题解 1141: C语言训练-百钱百鸡问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int cock=0, hen=0, chicken=99; for (; cock < 20; cock++)…… 题解列表 2022年10月21日 0 点赞 0 评论 273 浏览 评分: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 评论 345 浏览 评分:0.0
真 小白做法 摘要:解题思路:注意事项:参考代码:int x,i=0; scanf("%d",&x); int y=x; while(x!=0){ x/=10; i++; …… 题解列表 2022年10月21日 0 点赞 0 评论 325 浏览 评分:0.0
利用strlen函数即可求解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void fun1(char charater[100]){ int i; i=str…… 题解列表 2022年10月21日 0 点赞 0 评论 375 浏览 评分:0.0
只要有因数比输入的数小,那就不是素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void isprime(int n){ int i,m=0; if(n==1) //1比较特殊单独考虑 { …… 题解列表 2022年10月21日 0 点赞 0 评论 301 浏览 评分:9.9
完全背包问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxs 110#define maxb 10#define max…… 题解列表 2022年10月21日 0 点赞 0 评论 449 浏览 评分:9.9
蓝桥杯算法训练VIP-拦截导弹 摘要:解题思路:注意事项:参考代码:public class Tdd { public static void main(String[] args) { Scanner sc …… 题解列表 2022年10月20日 0 点赞 0 评论 351 浏览 评分:9.9
题目 1015: [编程入门]求和训练—常规求解方法 摘要:解题思路:3个for循环相加注意事项:把变量进行赋值时,不仅需要注意把值赋给另一个变量后的类型,还需要注意式子运算时的类型参考代码:#include<stdio.h> #include<math.h…… 题解列表 2022年10月20日 0 点赞 0 评论 878 浏览 评分:0.0
三个数排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include <algorithm> int main(){ int a,b,c; …… 题解列表 2022年10月20日 0 点赞 0 评论 282 浏览 评分:9.9
用了数组的知识 摘要:解题思路:定义一个数组分别存储每次输入的值并求和,存储在sum变量里最后除以输入的个数得到平均值。注意事项:需要一个临时变量m来接收n的值,因为此处使用了while循环将n的值变化,所以需要提前准备一…… 题解列表 2022年10月20日 0 点赞 0 评论 1150 浏览 评分:8.0