c++格子刷油漆 摘要:解题思路:https://www.freesion.com/article/4385447958/参考代码:#include<iostream> using namespace std; int …… 题解列表 2022年05月08日 0 点赞 0 评论 900 浏览 评分:2.0
题解 1681: 数据结构-行编辑程序 stack 摘要:#include<iostream> #include<stack> #include<string> using namespace std; int main() { stri…… 题解列表 2022年05月25日 0 点赞 0 评论 655 浏览 评分:2.0
对矩阵二维数组还是不是很熟悉啊 摘要:解题思路:注意事项:折腾了这么久,不懈题解对不起自己看时间一道题也高了快一个小时了参考代码:##while True:## n=int(input())## lh=[]## for …… 题解列表 2022年05月27日 0 点赞 0 评论 605 浏览 评分:2.0
信息学奥赛一本通T1598-最大连续和-题解(各语言代码) 题意为求区间和的最大值可分为两步解决:第一步求区间和,第二步求区间最大值区间求和最高效的方式是前缀和,而区间最值可以用单调队列解决时间复杂度O(n),空间复杂度O(m)**C++**```cpp#include#includeusingnamespacestd;intmain(){ios::sync_ 题解列表 2022年06月03日 0 点赞 0 评论 979 浏览 评分:2.0
思维题-解谜游戏 分为四组,组内互换组间不能互换,因此每组每种颜色数量必为1/4```cpp//外圈:123|456|789|101112//中圈:12|34|56|78//内圈:1|2|3|4#includeusingnamespacestd;typedeflonglongll;constintN=1e5+5;int 题解列表 2022年06月10日 0 点赞 0 评论 728 浏览 评分:2.0
1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { char st; while((st=getchar())!=EOF){ if(st==…… 题解列表 2022年06月13日 0 点赞 0 评论 497 浏览 评分:2.0
C语言入门scanf和printf,浮点数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double F,T; scanf("%lf",&F); T=5.0*(F-32.0)/9.0;…… 题解列表 2022年06月20日 0 点赞 0 评论 564 浏览 评分:2.0
分段函数(if简单应用) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<1) y=x; el…… 题解列表 2022年06月20日 0 点赞 0 评论 427 浏览 评分:2.0
简单易懂,暴力开解(残稿,有问题,不完全) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,s,i,d=2; scanf("%d",&n); if(n<5){ for(i…… 题解列表 2022年06月21日 0 点赞 0 评论 550 浏览 评分:2.0
题目 1806: [编程基础]输入输出练习之第二个数字 摘要:解题思路:定义一个数组,利用数组地址指定输出值。注意事项:数组定义为int型,而不是char。参考代码:#include<stdio.h>int main(){ int a[3]; for…… 题解列表 2022年06月30日 0 点赞 0 评论 562 浏览 评分:2.0