题解列表

筛选

2901: 查找特定的值

摘要:```#include using namespace std; int n,x,N[100000]; int main(){ cin>>n; for( int i=1;i>N[i];……

c语言函数解法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void change(char s[]){    char b[1000];    int cou……

[编程入门]结构体之成绩记录

摘要:解题思路:注意事项:参考代码:class Student():     def input(self, student_id, name, score):         self.student……

《01背包问题》改版

摘要:# 《01背包问题》改版 **如果你不了解01背包问题,那就请到b站上先了解,你才有可能通过此题。** ## 价值(val[]) 、总容量(V)、每件容量(v[])、考虑此物时的价值(dp……

矩阵交换行

摘要:解题思路:注意事项:参考代码:for i in range(5):    ls = list(map(int, input().split()))    a.append(ls)b = list(ma……

答案之中的答案

摘要:解题思路:wu注意事项:wu参考代码:#include <iostream>using namespace std;int main() {    int N,sum = 0;    cin >> N……

自定义函数之字符串连接

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void str_cat(char a[],char b[]){    strcat(a,b);  ……

自定义函数之字符串反转

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void dx_print(char a[],int n){    int i=0;     for(i=n-1;i>=0;i--)  ……