【C语言题解】蓝桥杯2023年第十四届省赛真题-平方差 摘要:``` #include int main(){ long int L,R,cnt; scanf ("%ld%ld",&L,&R); //x=y*y-z*z 即x…… 题解列表 2024年03月03日 4 点赞 3 评论 948 浏览 评分:10.0
The 3n + 1 problem 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<math.h>int main(){ int a,b; int i = 0; int x; while (scan…… 题解列表 2024年03月05日 1 点赞 0 评论 225 浏览 评分:10.0
编写题解 2791: 计算邮资python 摘要:参考代码:r, s = input().split() r = int(r) money = 8 if r > 1000: money += (r-1000)//500*4 …… 题解列表 2024年03月06日 0 点赞 0 评论 374 浏览 评分:10.0
编写题解 1119: C语言训练-"水仙花数"问题1(循环解决) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,c=0; scanf("%d", &n); int t = n; while (n != 0) …… 题解列表 2024年03月06日 1 点赞 0 评论 475 浏览 评分:10.0
A+B for Input-Output Practice (I) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) cou…… 题解列表 2024年03月07日 0 点赞 0 评论 522 浏览 评分:10.0
1290: 奶牛的锻炼 摘要:解题思路:注意事项:说实话没怎么看懂!参考代码:#include <iostream>using namespace std;int main(){ //d[i]代表第i分钟可以跑的路程 …… 题解列表 2024年03月10日 2 点赞 0 评论 326 浏览 评分:10.0
数的划分(深搜) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n, m, ans; void dfs(int k,int s…… 题解列表 2024年03月11日 1 点赞 0 评论 283 浏览 评分:10.0
2680: 蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路: 在这段代码中,int s = int(str1[1])-48; 的目的是将输入的字符串中的第二个字符转换为整数。这是因为输入的字符串表示的是一个数字,而不是一个…… 题解列表 2024年03月12日 1 点赞 0 评论 379 浏览 评分:10.0
C语言最简单易懂的01背包解法 摘要:解题思路:注意事项:参考代码:// DP动态规划 01背包#include<stdio.h>int main(){ int N, m, v[25], p[25], dp[30000] = { …… 题解列表 2024年03月12日 0 点赞 0 评论 347 浏览 评分:10.0
1113: C语言考试练习题_保留字母 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main(){ char a[100]; gets(a); int l=strlen(a…… 题解列表 2024年03月14日 0 点赞 0 评论 219 浏览 评分:10.0