“Sn公式求和”的题解方法 解题思路:观察2,22,222,2222,22222,.......之间的联系,列出式子即可。注意事项:用好for循环;先令t=0,,则第一个数为2,以此类推,后一个数总是前一个数的十倍加2,即t=t*10;t=t+2;接着求和s=s+t即可。 题解列表 2022年05月19日 0 点赞 0 评论 561 浏览 评分:9.9
蓝桥杯2021年第十二届国赛真题-二进制问题 -- 数位dp ```cpp#include#includeusingnamespacestd;constintN=100;longlongf[N][N];longlonga[N],al;longlongn,k;longlongdp(intpos,intst, 题解列表 2022年05月19日 0 点赞 0 评论 954 浏览 评分:0.0
1045: [编程入门]自定义函数之整数处理(注意特殊情况,尤其容易错!) 本题的易错点在于,当你把最大值放在首位的时候,先换了最小值,最大值不在原来的位置了,后换最大值的时候就出错了;最小值同理;```c#includeintzchuli(inta[]){intminnum=0,maxnum=0,j;for(j=0;j 题解列表 2022年05月19日 0 点赞 0 评论 593 浏览 评分:0.0
防御力—详细注释,易懂版本 ```importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){/*思路:1.排序A类道具,A类道具从小到大取,排序B类道具,B类道具从大到小取2.至于那个防御力, 题解列表 2022年05月19日 0 点赞 0 评论 816 浏览 评分:9.9
利用if对输出结果进行判断 摘要:解题思路:利用if判断输出结果即可注意事项:参考代码:#include<stdio.h>int main(){ int a,b,n; while(~scanf("%d%d", &a, &b…… 题解列表 2022年05月19日 0 点赞 0 评论 496 浏览 评分:0.0
带参数宏定义练习 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define reverse1(m) x2#define reverse2(n) x1int main(){ int x1,x2; s…… 题解列表 2022年05月19日 0 点赞 0 评论 656 浏览 评分:9.9
输入超过三位数的简单思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, s, g; scanf("%d", &a); b = a / 100; s…… 题解列表 2022年05月19日 0 点赞 0 评论 563 浏览 评分:0.0
编写题解 1033: [编程入门][C语言]自定义函数之字符提取 摘要:#include<stdio.h> void check(char a[]) { int i; int fg1=0,fg2=0,fg3=0,fg4=0,fg5=0;//在循环外定义,用来使…… 题解列表 2022年05月19日 0 点赞 0 评论 677 浏览 评分:9.9
[编程入门]C语言循环移位 摘要:解题思路:注意事项:参考代码://程序名:新的C++程序//作者: #include<iostream>#include<fstream>#include<algorithm>using namesp…… 题解列表 2022年05月19日 0 点赞 0 评论 692 浏览 评分:10.0