编写题解 1014: [编程入门]阶乘求和(c语言) 摘要:解题思路:这道题由输入值可以判断出来这是循环的次数,然后就是一个累加求和 和 循环 ,关键是需要既然用到累加,就需要保存前一个值的大小,如1!+2!+3!,此时我如果要算第三项的话,就需要在前一项…… 题解列表 2021年07月31日 0 点赞 0 评论 855 浏览 评分:0.0
成绩评定-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d", &a); if (a>=90) { pri…… 题解列表 2021年08月01日 0 点赞 0 评论 961 浏览 评分:0.0
蓝桥杯历届试题-九宫重排 c++ ```#includeusingnamespacestd;intfx[4][2]={{0,-1},{-1,0},{0,1},{1,0}};stringstart;stringed;unordered_mapd;intbfs(stringstart){queueq;q.push(start);d[sta 题解列表 2021年08月01日 0 点赞 0 评论 908 浏览 评分: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 评论 623 浏览 评分:0.0
极简解题 whileTrue:try:n=int(str(input()).strip())foriinrange(1,n+1):first=int(i*(i-1)/2+1)print(first,end='')forjinrange(i+1,n+1):first+=jifj!=n:print(first, 题解列表 2021年08月01日 0 点赞 0 评论 667 浏览 评分: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 评论 1059 浏览 评分:0.0
1051: [编程入门]结构体之成绩统计2 摘要:解题思路:结构体数组定义与使用注意事项:参考代码:struct inf{ char no[100]; char name[100]; int sc1; int …… 题解列表 2021年08月02日 0 点赞 0 评论 660 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝 摘要:解题思路:注意事项:getchar();//去回车;输入方式学习参考代码:int main(){ int n,m,i; char n1[100]; scanf("%d",&n); getcha…… 题解列表 2021年08月02日 0 点赞 0 评论 650 浏览 评分:0.0
DNA----------------------------------- 摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "math.h"char S[100];void X(int a, int x,int y) { for (int…… 题解列表 2021年08月02日 0 点赞 0 评论 522 浏览 评分:0.0
IP判断---------------------------------- 摘要:解题思路:注意事项:参考代码: #include "stdio.h"int main() { char S[100]; int a=0; while (scanf("%s", S)!=EOF) { …… 题解列表 2021年08月02日 0 点赞 0 评论 659 浏览 评分:0.0