2903: 不高兴的津津 ```#includeusingnamespacestd;intschool[8],home[8],sum[8],ans;intmain(){for(inti=1;i>school[i]>>home[i];}for(inti=1;i8){sum[i]=school[i]+home[i];}}for(i 题解列表 2023年12月01日 0 点赞 0 评论 441 浏览 评分:0.0
题解 1099: 校门外的树 #includeusingnamespacestd;inta[100000],c,b,sum,d,e,f;intmain(){cin>>c>>d;for(inti=0;i>e>>f;for(intp=e;p 题解列表 2023年12月01日 0 点赞 0 评论 521 浏览 评分:0.0
2901: 查找特定的值 摘要:```#include using namespace std; int n,x,N[100000]; int main(){ cin>>n; for( int i=1;i>N[i]; …… 题解列表 2023年12月01日 0 点赞 0 评论 418 浏览 评分:0.0
c代码记录之TOM数(atoi函数用于字符串转数字,单个字符不行) 代码1:用atoi函数#include#includeintmain(){charstr[20],num[2];//因为atoi不能转单个字符,故建议一个数组来盛放单个字符,使其成串intsum=0,n,i,m;while(~scanf("%s", 题解列表 2023年12月01日 0 点赞 0 评论 473 浏览 评分:0.0
[编程入门]结构体之成绩统计 屎山代码 只会语法 摘要:解题思路:注意事项:参考代码:class Student: def input(self, student_id, name, score): self.student_i…… 题解列表 2023年12月01日 0 点赞 0 评论 502 浏览 评分:0.0
c语言函数解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void change(char s[]){ char b[1000]; int cou…… 题解列表 2023年12月01日 0 点赞 1 评论 658 浏览 评分:9.9
[编程入门]结构体之成绩记录 摘要:解题思路:注意事项:参考代码:class Student(): def input(self, student_id, name, score): self.student…… 题解列表 2023年11月30日 1 点赞 0 评论 485 浏览 评分:0.0
《01背包问题》改版 #《01背包问题》改版**如果你不了解01背包问题,那就请到b站上先了解,你才有可能通过此题。**##价值(val[])、总容量(V)、每件容量(v[])、考虑此物时的价值(dp[])**这几个变量必须要了解!!!**##以下是利用了滚动一维数组的代码**主要是考虑了下一件物品后上一次的价值就没用了, 题解列表 2023年11月30日 0 点赞 0 评论 634 浏览 评分:9.9
矩阵交换行 摘要:解题思路:注意事项:参考代码:for i in range(5): ls = list(map(int, input().split())) a.append(ls)b = list(ma…… 题解列表 2023年11月30日 0 点赞 0 评论 745 浏览 评分:8.0
答案之中的答案 摘要:解题思路:wu注意事项:wu参考代码:#include <iostream>using namespace std;int main() { int N,sum = 0; cin >> N…… 题解列表 2023年11月30日 0 点赞 1 评论 462 浏览 评分:9.9