勉强通过测试没办法解决两行两列问题的c++代码 摘要:解题思路:首先确定该题目是属于数据结构中的连通图的遍历问题,想到要使用dfs即深度优先遍历,属于一个递归,回溯和剪枝问题注意事项:要注意递归循环时需要在设置一个数组来标记该点有没有被访问过,否则会出现…… 题解列表 2022年03月15日 0 点赞 1 评论 200 浏览 评分:2.0
成绩评定--(if else代码) 摘要:##[编程入门]成绩判定 ###if选择结构题解 ```c #include int main() { int x; scanf("%d",&x); if(x>=90){ …… 题解列表 2022年03月16日 0 点赞 0 评论 303 浏览 评分:2.0
十六进制转十进制 摘要:```python n = input() d = int(n, 16) print(d) ```# MarkDown编辑器基本使用说明 **如果这是您第一次使用MarkDown编辑器,…… 题解列表 2022年03月18日 0 点赞 0 评论 386 浏览 评分:2.0
题解 2080: 蓝桥杯基础练习-十六进制转八进制 摘要:解题思路:注意事项:直接上代码参考代码:n = input()d = int(n, 16)print(d)…… 题解列表 2022年03月18日 0 点赞 0 评论 367 浏览 评分:2.0
编写题解 1026: [编程入门]数字逆序输出 摘要:解题思路:怎么说呢,只要你学过数组你一定能解注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ int n1,n2,n[…… 题解列表 2022年03月21日 0 点赞 0 评论 261 浏览 评分:2.0
编写题解 2322: 大鱼吃小鱼 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split()) ls=list(map(int,input().split())) for i in range(m): …… 题解列表 2022年03月30日 0 点赞 0 评论 635 浏览 评分:2.0
编写题解 1811: [编程基础]输入输出练习之浮点数专题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double a; scanf("%lf",&a); //双精度 %lf printf(…… 题解列表 2022年03月30日 0 点赞 0 评论 326 浏览 评分:2.0
2547: [CSP-J2019] 数字游戏 摘要:解题思路:注意事项:参考代码:print(input().count('1'))…… 题解列表 2022年03月31日 0 点赞 0 评论 471 浏览 评分:2.0
2576: 蓝桥杯2020年第十一届省赛真题-解码(python) 摘要:解题思路:注意事项:参考代码:st=input() for i in range(len(st)): if st[i].isdigit(): print(st[i-1]*…… 题解列表 2022年03月31日 0 点赞 0 评论 454 浏览 评分:2.0
remove是满分,但是直接pop就错了,求解 摘要:解题思路:注意事项:参考代码:li=list(map(int,input().split()))# li.pop()出错了if 0 in li: # 去除零值 li.remove(0)li…… 题解列表 2022年04月01日 0 点赞 0 评论 386 浏览 评分:2.0