--------------------字符串拼接------------------------------字符串倒序---------- 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include<string.h> void strcat_custom(char* dest, const char* …… 题解列表 2024年08月03日 0 点赞 0 评论 227 浏览 评分:9.9
不难,但有点繁琐 摘要:#include<bits/stdc++.h> using namespace std; int main() { char c[20]; cin>>c; int sum=0; …… 题解列表 2024年08月04日 0 点赞 0 评论 157 浏览 评分:0.0
1320: 字符串展开 摘要:解题思路:注意事项:只有一个小错误,91分参考代码:l = list(input().strip().split())if len(l) == 4: p1 = int(l[0]) p2 =…… 题解列表 2024年08月04日 0 点赞 0 评论 265 浏览 评分:0.0
这个比1246数据要强,考虑了闰年的情况 摘要:#include<bits/stdc++.h> using namespace std; int main() { int y,m,d; char c; while…… 题解列表 2024年08月04日 0 点赞 0 评论 196 浏览 评分:0.0
2876: 矩阵交换行 摘要:解题思路:注意事项:参考代码:l = []for i in range(5): s = list(input().strip().split()) l.append(s)a,b = map…… 题解列表 2024年08月04日 0 点赞 0 评论 524 浏览 评分:0.0
分数线划定(简单结构体) 摘要:解题思路:定义结构-输入-冒泡排序-输出注意事项:注意划定分数线的人数m*1.5取整后,如果有重分的话需要重新计算入选人数参考代码:#include<stdio.h>typedef struct St…… 题解列表 2024年08月04日 1 点赞 0 评论 241 浏览 评分:0.0
STL中有swap交换(无需手搓) 摘要:#include<bits/stdc++.h> using namespace std; const int N=1010; int a[N]; int main() { int n,m…… 题解列表 2024年08月04日 0 点赞 0 评论 126 浏览 评分:0.0
位运算基础 摘要:#include<bits/stdc++.h> using namespace std; #define int long long int lowbit(int x) { ret…… 题解列表 2024年08月04日 0 点赞 0 评论 122 浏览 评分:0.0
++++++++++++++++++ 绝对值排序+++++++++++++++++++ 摘要:解题思路:/* 一. 在C语言中,按绝对值排序一组数通常意味着你需要先计算每个数的绝对值, 然后根据这些绝对值来排序原始数组(或复制一份进行排序以避免修改原始数据)。 *//* 二. …… 题解列表 2024年08月04日 0 点赞 0 评论 289 浏览 评分:9.9
2877: 同行列对角线的格子 摘要:解题思路:注意事项:参考代码:n,a,b = map(int,input().strip().split())for i in range(n): print("(%d,%d)" % (a,i+…… 题解列表 2024年08月04日 0 点赞 0 评论 212 浏览 评分:0.0