题解列表
《01背包问题》改版
摘要:# 《01背包问题》改版
**如果你不了解01背包问题,那就请到b站上先了解,你才有可能通过此题。**
## 价值(val[]) 、总容量(V)、每件容量(v[])、考虑此物时的价值(dp……
[编程入门]结构体之成绩记录
摘要:解题思路:注意事项:参考代码:class Student():
def input(self, student_id, name, score):
self.student……
[编程入门]结构体之成绩统计 屎山代码 只会语法
摘要:解题思路:注意事项:参考代码:class Student:
def input(self, student_id, name, score):
self.student_i……
c代码记录之TOM数(atoi函数用于字符串转数字,单个字符不行)
摘要:代码1:用atoi函数
#include
#include
int main()
{
char str[20],num[2];//因为atoi……
2901: 查找特定的值
摘要:```#include
using namespace std;
int n,x,N[100000];
int main(){
cin>>n;
for( int i=1;i>N[i];
……
题解 1099: 校门外的树
摘要: #include
using namespace std;
int a[100000],c,b,sum,d,e,f;
int main(){
cin……
2903: 不高兴的津津
摘要:```
#include
using namespace std;
int school[8],home[8],sum[8],ans;
int main(){
for( int i=1;i……