题解列表

筛选

不懂可评论

摘要:解题思路:注意事项:参考代码:num=list(map(int,input().split())) num.sort() for i in num:     print(i,end=" ")……

3030: 全排列

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int l; // 字符串长度 string s; ……

糖果游戏-环状数组的左右索引公式

摘要:解题思路:初始化数组,输入循环,左右索引的循环,按照索引同时更新数组,输出的循环。注意事项:cin的位置;索引的初始化(int left);环状数组的左右索引公式-左侧:(i-1+n)%n 右侧:(i……

向量点积计算

摘要:解题思路:注意事项:参考代码:#include<stdio.h>  int main(){    int n,i,sum=0 ;    int a[223223]={0},b[23244252]={0……

c语言string解法

摘要:解题思路:注意事项:注意字符串的表达参考代码:#include <stdio.h>#include <string.h>int main(){    int N;    char S1[50],S2[……

集合的划分 递归

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; long long aaa(int n, int k) {     // ……