编写题集 思路清晰 C语言 摘要:#include <stdio.h>#include <math.h>int main(){ int n,i,a[100],b[100]; scanf("%d",&n); for(i=0;i<n;i+…… 题解列表 2024年08月16日 0 点赞 0 评论 162 浏览 评分:0.0
最大公约数与最小公倍数(用for)循环解决 摘要:解题思路:关于最大公因数:正确的表述应该是最大公因数是能够同时整除 a 和 b 的最大正整数。关于最小公倍数:正确的表述应该是最小公倍数是能够同时被 a 和 b 整除的最小正整数。首先,通过用户输入获…… 题解列表 2024年08月17日 1 点赞 0 评论 602 浏览 评分:0.0
1169: 绝对值排序(sort) 摘要:解题思路: 核心:l.sort(key=abs, reverse=True)注意事项: 去掉绝对值最大的数参考代码:while True: l = [int(x) for x i…… 题解列表 2024年08月17日 0 点赞 0 评论 268 浏览 评分:0.0
无聊的星期六 摘要:#include <stdio.h> typedef struct days { int year; int month; int day; }days; …… 题解列表 2024年08月17日 0 点赞 0 评论 453 浏览 评分:0.0
无聊的星期六 摘要:#include <stdio.h> #define LEAP_YEAR(y) putchar((y % 400 == 0 || y % 4 == 0 && y % 100 != 0)?'…… 题解列表 2024年08月17日 0 点赞 0 评论 641 浏览 评分:0.0
素数算法,时间复杂度降低版 摘要:#include<bits/stdc++.h> using namespace std; bool su(int n) { if(n<2) return false; …… 题解列表 2024年08月17日 0 点赞 0 评论 151 浏览 评分:0.0
自守数问题,简单明了,C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ long s,j; printf("0"); for(long i=1; i<=200000…… 题解列表 2024年08月18日 2 点赞 0 评论 374 浏览 评分:0.0
尝试写、找规律 摘要:解题思路:不完全归纳法找规律day1 1day2 2day3 3day4 4--------day5 6 day6 9 day7 13day8 19参考代码:#include<bits/stdc++.…… 题解列表 2024年08月18日 0 点赞 0 评论 123 浏览 评分:0.0
1204: 大小写转换 摘要:核心: name = 'Hello World' print(name.lower()) # 大写转小写 print(name.upper()) # 小写转大写 …… 题解列表 2024年08月18日 0 点赞 0 评论 589 浏览 评分:0.0
蓝桥杯算法提高VIP-删除数组中的0元素 摘要:解题思路:注意事项:参考代码:void del(int arr[], int n){ int count = 0;//统计非0元素个数 for (int i = 0; i < n; i++) { i…… 题解列表 2024年08月19日 0 点赞 0 评论 230 浏览 评分:0.0