2865: 紧急措施(结构体+函数解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>// 函数arr用于将字符串中的大写字母转换为小写字母,小写字母转…… 题解列表 2024年11月10日 0 点赞 0 评论 552 浏览 评分:9.9
蓝桥杯2018年第九届真题-约瑟夫环-题解(C++代码)简单理解的进一步解释 解题思路:大佬的代码逻辑太强,对此作进一步的解释说明此代码运用的其实是一种从后往前倒推的思想,我们先假设最后一个人的位置为0,即s=0,所以s+m即为倒数第二个人的报数位置,以此类推,直到推出第一个人的报数位置,同时,这种方法的妙处在于它利用了报数问题的对称性和周期性, 题解列表 2024年11月10日 0 点赞 0 评论 720 浏览 评分:9.9
直接写就得了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a,b; scanf("%f %f",&a,&b); printf("%.2f",…… 题解列表 2024年11月10日 0 点赞 0 评论 493 浏览 评分:9.9
紧急措施(详细注释) 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体aaa,包含三个字符数组a, b, c struct aa…… 题解列表 2024年11月10日 1 点赞 1 评论 533 浏览 评分:9.9
新手较简单的数组方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[55]; int i; a[0]=1;a[1]=2;a[2]=3;a[3]=4; for(i=4;i…… 题解列表 2024年11月11日 0 点赞 0 评论 591 浏览 评分:9.9
直接写就行了 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int i,j=0,n,Sn=0; scanf…… 题解列表 2024年11月11日 2 点赞 1 评论 969 浏览 评分:9.9
最低通行费 (数字三角形模型dp) 二选一:我也不知道为什么限制为什么不同。方法一:#includeusingnamespacestd;constintN=110;intn;intw[N][N],f[N][N];intmain(){cin>>n;for(inti=1;iw[i][j];}}memset(f, 题解列表 2024年11月11日 0 点赞 0 评论 544 浏览 评分:9.9
看不懂直接喷我 摘要:解题思路:注意事项: 看我评论!!!!!参考代码: #include #include int main() { int i; char a[300]; gets (a); int num=strle…… 题解列表 2024年11月11日 0 点赞 1 评论 668 浏览 评分:9.9
简单易懂while循环就可以完成 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long int a,n,Tom; while(scanf("%ld",&n)!=EOF) { …… 题解列表 2024年11月11日 0 点赞 0 评论 654 浏览 评分:9.9
[编程入门]结构体之成绩统计2 ```c#includestructa{chara[30];charb[30];//结构体intc;intd;inte;};voidqw(structa*p,intn,int*w,int*e,int*r){for(intq=0;q 题解列表 2024年11月12日 1 点赞 0 评论 735 浏览 评分:9.9 « 12...5777577857795780578157825783...59105911 »