刷题记录2025/11/26 2773:计算线段长度 摘要:解题思路:注意事项:注意绝对值,注意保留三位小数参考代码:#include<stdio.h>#include<math.h>int main(){ double Xa,Ya,X…… 题解列表 2025年11月26日 1 点赞 0 评论 3 浏览 评分:10.0
最长上升序列(动态规划) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){ int max=(a>b) ? a : b;&n…… 题解列表 2025年11月26日 0 点赞 0 评论 4 浏览 评分:0.0
最长上升子序列 摘要:#include<stdio.h>int max(int a,int b){ if(a>=b) return a; &…… 题解列表 2025年11月26日 0 点赞 0 评论 4 浏览 评分:0.0
蓝桥杯2025图形 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int h,w; scanf("%d%d&…… 题解列表 2025年11月26日 0 点赞 0 评论 8 浏览 评分:0.0
1004:母牛的故事 摘要:解题思路:前3年:每年新增1头小牛,总数为年份数(f(1)=1, f(2)=2, f(3)=3)。第4年起:每只3岁及以上的母牛每年产1头小牛,新增数量等于3年前的母牛总数(f(n-3)),叠加…… 题解列表 2025年11月25日 0 点赞 0 评论 14 浏览 评分:0.0
1031字符串反转 摘要:解题思路:注意事项:参考代码:#include"stdio.h"#include"string.h"int main(){ char …… 题解列表 2025年11月25日 0 点赞 0 评论 9 浏览 评分:10.0
1044:字符串排序 摘要:解题思路:使用冒泡排序注意事项:由于输入为字符串,因此采用char字符,同时无法直接使用比较符号,因此引入string函数,在比较上采用string compare参考代码:#include"…… 题解列表 2025年11月25日 0 点赞 0 评论 7 浏览 评分:10.0
使用%o直接输出八进制数 摘要:解题思路:在c语言里%o能直接输出八进制数注意事项:需要注意题目没有说明输入数的数目,在while循环中以EOF作为文件结束标志参考代码:#include <stdio.h>int mai…… 题解列表 2025年11月24日 0 点赞 0 评论 14 浏览 评分:0.0
题目要求是找出绝对值最小的数,而不是改变数据本身。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int number[10];int num[10];int main(){ int b=0;&n…… 题解列表 2025年11月23日 0 点赞 0 评论 17 浏览 评分:0.0
筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int is_prime(int num){ if(n…… 题解列表 2025年11月23日 0 点赞 0 评论 20 浏览 评分:0.0