编写题解 1099: 校门外的树(C语言) 摘要:解题思路:把路设为有路长+1的元素的数组,初始化为0代表有树,把后续的坐标当做数组的序号,坐标范围内的赋值1代表没树,最后统计0的数目即可。注意事项:参考代码:#include <stdio.h> …… 题解列表 2024年11月17日 0 点赞 0 评论 702 浏览 评分:0.0
比较简单的题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i; for(i=1;i<40;i++) { if((i%2)!…… 题解列表 2024年11月17日 0 点赞 0 评论 255 浏览 评分:0.0
信息学奥赛一本通T1422-活动安排 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体aaa,包含两个整数成员s和f struct aaa{ …… 题解列表 2024年11月17日 1 点赞 0 评论 450 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[101]; int i; gets(a); for(i=0;a[i]!=&…… 题解列表 2024年11月17日 0 点赞 0 评论 230 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[120]; char b[52]; int i,c=0,j; gets(a…… 题解列表 2024年11月17日 0 点赞 0 评论 370 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,a=0,b=0,c=0,d=0; for(i=1000;…… 题解列表 2024年11月17日 0 点赞 0 评论 192 浏览 评分:0.0
编写题解 2918: 成绩排序(sort) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<algorithm>using namespace std;// 定义学生结构体,包含姓名(字符数组形式,最多容纳…… 题解列表 2024年11月17日 0 点赞 0 评论 375 浏览 评分:0.0
[编程入门]自定义函数之字符串拷贝 摘要:解题思路:题目根本没要求复制,其实也用不着复制,只需要把指针定位到相应序号后输出即可注意事项:参考代码:#include <stdio.h> #include <stdlib.h> int m…… 题解列表 2024年11月18日 0 点赞 0 评论 314 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:#简易 a=list(map(int,input().strip().split())) a[4]+=a[0]//3 a[1]+=a[0]//3 a[0]//…… 题解列表 2024年11月18日 0 点赞 0 评论 162 浏览 评分:0.0
2059: [STL训练]sort练习 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;bool compare(int a,int b){ …… 题解列表 2024年11月18日 1 点赞 0 评论 274 浏览 评分:0.0