1169: 绝对值排序(sort) 摘要:解题思路: 核心:l.sort(key=abs, reverse=True)注意事项: 去掉绝对值最大的数参考代码:while True: l = [int(x) for x i…… 题解列表 2024年08月17日 0 点赞 0 评论 353 浏览 评分:0.0
无聊的星期六 摘要:#include <stdio.h> typedef struct days { int year; int month; int day; }days; …… 题解列表 2024年08月17日 0 点赞 0 评论 539 浏览 评分:0.0
无聊的星期六 摘要:#include <stdio.h> #define LEAP_YEAR(y) putchar((y % 400 == 0 || y % 4 == 0 && y % 100 != 0)?'…… 题解列表 2024年08月17日 0 点赞 0 评论 772 浏览 评分:0.0
素数算法,时间复杂度降低版 摘要:#include<bits/stdc++.h> using namespace std; bool su(int n) { if(n<2) return false; …… 题解列表 2024年08月17日 0 点赞 0 评论 197 浏览 评分:0.0
自守数问题,简单明了,C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ long s,j; printf("0"); for(long i=1; i<=200000…… 题解列表 2024年08月18日 2 点赞 0 评论 447 浏览 评分:0.0
尝试写、找规律 摘要:解题思路:不完全归纳法找规律day1 1day2 2day3 3day4 4--------day5 6 day6 9 day7 13day8 19参考代码:#include<bits/stdc++.…… 题解列表 2024年08月18日 0 点赞 0 评论 197 浏览 评分:0.0
1204: 大小写转换 摘要:核心: name = 'Hello World' print(name.lower()) # 大写转小写 print(name.upper()) # 小写转大写 …… 题解列表 2024年08月18日 0 点赞 0 评论 722 浏览 评分: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 评论 359 浏览 评分:0.0
拿捏,已知元素从小到大排列的两个数组x[]和y[],请写出一个程序算出两个数组彼此之间差的绝对值中最小的一个,这叫做数组的距离 摘要:解题思路:输入,迭代器迭代,做差,比较,赋值,输出注意事项:调试信息屏蔽掉参考代码:#include <iostream> #include <vector> #include <cmath> …… 题解列表 2024年08月19日 0 点赞 0 评论 469 浏览 评分:0.0
我们就要设置一个安全的密码,安全密码的检验,easy 摘要:解题思路:yixie c++的字符串基本操作注意事项:bool arr[4] = {true};只会将第一个元素设置为true;参考代码:#include <iostream> #include <…… 题解列表 2024年08月19日 0 点赞 0 评论 243 浏览 评分:0.0