编写题解 2833: 金币 摘要:解题思路:注意不符合常规天数递增的冗余天数注意事项:参考代码:package test; //题目 2833: 金币 import java.util.Scanner; public class…… 题解列表 2024年01月27日 0 点赞 0 评论 182 浏览 评分:0.0
结构体之成绩记录 摘要:解题思路:定义一个结构体初始化结构体数组利用结构体数组实现数据存入再输出即可注意事项:参考代码:#include<iostream>using namespace std;struct student…… 题解列表 2024年01月27日 1 点赞 0 评论 194 浏览 评分:0.0
编写题解 2832: 第n小的质数 摘要:package test; //题目 2832: 第n小的质数 import java.util.Scanner; public class Main { public static void…… 题解列表 2024年01月27日 0 点赞 0 评论 151 浏览 评分:0.0
【排列组合】统计素数和偶数个数 摘要:解题思路:理解题意:给一个数组,例如 int[]arr={1,3,3,3,2,2,4}下标集合I={0,1,2,3,4,5,6}R1是I下标集合的一个子集例如{0,1,2,5,6}或者{2,4,5}这…… 题解列表 2024年01月27日 1 点赞 0 评论 798 浏览 评分:9.3
结构体之时间设计 摘要:解题思路:先根据年份判断平闰年调用函数实现天数判断最后返回天数即可注意事项:在定义类的时候不能定义为已有的函数名称,否则报错参考代码:#include<iostream>using namespace…… 题解列表 2024年01月27日 0 点赞 0 评论 195 浏览 评分:0.0
多边形内角和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,j,o,sum=0; scanf("%d", &n); j = (n - 2) * 180; for…… 题解列表 2024年01月27日 0 点赞 0 评论 145 浏览 评分:0.0
1151: C语言训练-计算一个整数N的阶乘 摘要:###[题目传送门](https://www.dotcpp.com/oj/problem1151.html) ------------ ###思路 用一个循环把sum从一乘到n,最后输出…… 题解列表 2024年01月27日 0 点赞 0 评论 341 浏览 评分:9.9
完数的判断 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,s=0; cin >> a; for(int…… 题解列表 2024年01月27日 0 点赞 0 评论 129 浏览 评分:0.0
水仙花数判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int g,s,b; for(int i=100;i<10…… 题解列表 2024年01月27日 0 点赞 0 评论 156 浏览 评分:0.0
求和训练(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int a,b,c; c…… 题解列表 2024年01月27日 0 点赞 0 评论 189 浏览 评分:0.0