报数问题,通用的!!!(Java代码) 摘要:解题思路:这道题明显就是一个约瑟夫环的问题,只不过就是简化了,给了一个固定的数而已思路如下:1. 需要创建一个单向的循环链表(怎么创建这里我就不多说了)2. 解决约瑟夫环问题的思路: 2.1 需要创建…… 题解列表 2021年07月31日 0 点赞 0 评论 605 浏览 评分:0.0
阶乘求和,用函数解 摘要:解题思路:函数注意事项:参考代码:#include<iostream>using namespace std;long long f(int a1){ int i=2; long long s=1; …… 题解列表 2021年07月31日 0 点赞 0 评论 659 浏览 评分:0.0
c++,cin.get()解法 摘要:解题思路:cin.get()读到行的最后一个,但是不读入回车,因此,通过读到null终止循环。注意事项:参考代码:#include<iostream>#include<string>using nam…… 题解列表 2021年07月31日 0 点赞 0 评论 776 浏览 评分:0.0
编写题解 1014: [编程入门]阶乘求和(c语言) 摘要:解题思路:这道题由输入值可以判断出来这是循环的次数,然后就是一个累加求和 和 循环 ,关键是需要既然用到累加,就需要保存前一个值的大小,如1!+2!+3!,此时我如果要算第三项的话,就需要在前一项…… 题解列表 2021年07月31日 0 点赞 0 评论 530 浏览 评分:0.0
成绩评定-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d", &a); if (a>=90) { pri…… 题解列表 2021年08月01日 0 点赞 0 评论 650 浏览 评分:0.0
蓝桥杯历届试题-九宫重排 c++ 摘要:``` #include using namespace std; int fx[4][2] = { {0,-1},{-1,0},{0,1},{1,0} }; string start; …… 题解列表 2021年08月01日 0 点赞 0 评论 659 浏览 评分:0.0
蓝桥杯2013年第四届真题-买不到的数目 摘要:``` #include using namespace std; int a,b; set s; vector c; int main() { cin>>a>>b; fo…… 题解列表 2021年08月01日 0 点赞 0 评论 401 浏览 评分:0.0
极简解题 摘要: while True: try: n = int(str(input()).strip()) for i in…… 题解列表 2021年08月01日 0 点赞 0 评论 411 浏览 评分:0.0
编写题解 2012: 百分制成绩转换 摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main() { int x,y,s,a[6]={0}; scanf("%d",&x); do { scan…… 题解列表 2021年08月01日 0 点赞 0 评论 725 浏览 评分:0.0
1051: [编程入门]结构体之成绩统计2 摘要:解题思路:结构体数组定义与使用注意事项:参考代码:struct inf{ char no[100]; char name[100]; int sc1; int …… 题解列表 2021年08月02日 0 点赞 0 评论 328 浏览 评分:0.0