1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:printf写在式子前。参考代码:#include<stdio.h>#include<math.h> int main(){ int a; scanf("%d",&a); for …… 题解列表 2024年12月08日 0 点赞 0 评论 353 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int main(){ int a,sum = 0; scanf("%d",&a); for (int…… 题解列表 2024年12月08日 0 点赞 0 评论 251 浏览 评分:0.0
比较繁琐的解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,p=0; char a[5][1000]; i…… 题解列表 2024年12月08日 0 点赞 0 评论 174 浏览 评分:0.0
1150: C语言训练-计算t=1+1/2+1/3+...+1/n 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int main(){ int a; double sum = 0; scanf("%d",&a); …… 题解列表 2024年12月08日 1 点赞 0 评论 318 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int main(){ int a; long long sum = 1; scanf("%d",&a…… 题解列表 2024年12月08日 0 点赞 0 评论 343 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,n,c=0; scanf("%d",&n); …… 题解列表 2024年12月08日 0 点赞 0 评论 191 浏览 评分:0.0
邮局选址问题 摘要:解题思路:首先读取 n 对坐标值并存入两个数组 x 和 y 中。然后对这两个数组分别进行排序,找到中间位置的坐标值 a 和 b(分别是 x 数组和 y 数组的中位数)。最后计…… 题解列表 2024年12月08日 0 点赞 0 评论 168 浏览 评分:0.0
蓝桥杯2014年第五届真题-拼接平方数 (C++代码)简单通解 摘要:解题思路:注意事项:参考代码://1.先求所有平方数,缩小范围//2.只能拆分成左边数字和右边数字,通过求商和求余获得#include<iostream>#include<cmath>using na…… 题解列表 2024年12月08日 0 点赞 0 评论 144 浏览 评分:0.0
金明的预算方案 摘要:解题思路:这段代码的详细解释1. Max 函数:这是一个用于比较两个长整型数并返回较大值的函数。2. main 函数:定义了多个长整型数组 w (物品重量)、 v (物品价值)、 z1 、 …… 题解列表 2024年12月08日 0 点赞 0 评论 137 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int main(){ int a; double sum1 = 1; scanf("%d",&a);…… 题解列表 2024年12月08日 0 点赞 0 评论 212 浏览 评分:0.0