1142: C语言训练-立方和不等式 摘要:解题思路:注意事项:注意sun == n的时候直接输出i就行了。参考代码:#include<stdio.h>#include<math.h> int main(){ int a,sum = 0; sc…… 题解列表 2024年12月08日 0 点赞 0 评论 339 浏览 评分:0.0
比较繁琐的解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,j,p=0; char a[150],b[150],…… 题解列表 2024年12月08日 0 点赞 0 评论 112 浏览 评分:0.0
1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:printf写在式子前。参考代码:#include<stdio.h>#include<math.h> int main(){ int a; scanf("%d",&a); for …… 题解列表 2024年12月08日 0 点赞 0 评论 297 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int main(){ int a,sum = 0; scanf("%d",&a); for (int…… 题解列表 2024年12月08日 0 点赞 0 评论 198 浏览 评分:0.0
比较繁琐的解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,p=0; char a[5][1000]; i…… 题解列表 2024年12月08日 0 点赞 0 评论 131 浏览 评分: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 评论 254 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int main(){ int a; long long sum = 1; scanf("%d",&a…… 题解列表 2024年12月08日 0 点赞 0 评论 297 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,n,c=0; scanf("%d",&n); …… 题解列表 2024年12月08日 0 点赞 0 评论 166 浏览 评分:0.0
邮局选址问题 摘要:解题思路:首先读取 n 对坐标值并存入两个数组 x 和 y 中。然后对这两个数组分别进行排序,找到中间位置的坐标值 a 和 b(分别是 x 数组和 y 数组的中位数)。最后计…… 题解列表 2024年12月08日 0 点赞 0 评论 119 浏览 评分:0.0
蓝桥杯2014年第五届真题-拼接平方数 (C++代码)简单通解 摘要:解题思路:注意事项:参考代码://1.先求所有平方数,缩小范围//2.只能拆分成左边数字和右边数字,通过求商和求余获得#include<iostream>#include<cmath>using na…… 题解列表 2024年12月08日 0 点赞 0 评论 109 浏览 评分:0.0