编写题解 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 评论 388 浏览 评分:9.9
输入超过三位数的简单思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, s, g; scanf("%d", &a); b = a / 100; s…… 题解列表 2022年05月19日 0 点赞 0 评论 374 浏览 评分:0.0
带参数宏定义练习 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define reverse1(m) x2#define reverse2(n) x1int main(){ int x1,x2; s…… 题解列表 2022年05月19日 0 点赞 0 评论 455 浏览 评分:9.9
利用if对输出结果进行判断 摘要:解题思路:利用if判断输出结果即可注意事项:参考代码:#include<stdio.h>int main(){ int a,b,n; while(~scanf("%d%d", &a, &b…… 题解列表 2022年05月19日 0 点赞 0 评论 317 浏览 评分:0.0
防御力—详细注释,易懂版本 摘要:``` import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2022年05月19日 0 点赞 0 评论 569 浏览 评分:9.9
1045: [编程入门]自定义函数之整数处理(注意特殊情况,尤其容易错!) 摘要:本题的易错点在于,当你把最大值放在首位的时候,先换了最小值,最大值不在原来的位置了,后换最大值的时候就出错了;最小值同理; ```c #include int zchuli(int a[])…… 题解列表 2022年05月19日 0 点赞 0 评论 392 浏览 评分:0.0
蓝桥杯2021年第十二届国赛真题-二进制问题 -- 数位dp 摘要:```cpp #include #include using namespace std; const int N = 100; long long f[N][N]; long l…… 题解列表 2022年05月19日 0 点赞 0 评论 736 浏览 评分:0.0
“Sn公式求和”的题解方法 摘要:解题思路:观察2,22,222,2222,22222,.......之间的联系,列出式子即可。注意事项:用好for循环;先令t=0,,则第一个数为2,以此类推,后一个数总是前一个数的十倍加2,即t=t…… 题解列表 2022年05月19日 0 点赞 0 评论 330 浏览 评分:9.9
“阶乘求和”的题解方法 摘要:解题思路:先算n的阶乘,再想办法把他们一次加起来注意事项:1.一定不能用int类型,因为此题int类型长度不够,所以要用long long int类型!!2.注意long long int类型格式是%…… 题解列表 2022年05月19日 0 点赞 0 评论 387 浏览 评分:9.9