二级C语言-进制转换(python) 摘要:解题思路:二进制:bin() 八进制:oct() 十六进制:hex()注意事项:去除前缀可用切片实现操作参考代码:a=int(input())c=o…… 题解列表 2024年03月14日 0 点赞 0 评论 400 浏览 评分:0.0
2177: 信息学奥赛一本通T1252-走迷宫-BFS 摘要: #include #include #include using namespace std; int m,n; string maze[45…… 题解列表 2024年03月14日 0 点赞 0 评论 246 浏览 评分:0.0
只做记录,基本借鉴别人 摘要:解题思路: 要将三个水龙头的等待时间分别累加起来注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main()…… 题解列表 2024年03月14日 0 点赞 0 评论 209 浏览 评分:0.0
python用for解决 摘要:解题思路:注意事项:参考代码:str=input()a,b,c,d=0,0,0,0for i in str: if (i>='A' and i<='Z') or …… 题解列表 2024年03月15日 2 点赞 0 评论 264 浏览 评分:0.0
编写题解 2773: 计算线段长度,python超简单 摘要:解题思路:详见下列代码注意事项:如果不考虑两种情况,那么会出现运行错误,感觉题目有歧义,没有明确指出。。参考代码:from math import sqrt# 读取输入并转换为浮点数列表number …… 题解列表 2024年03月15日 0 点赞 2 评论 656 浏览 评分:0.0
简单易懂c++ 摘要: `#include using namespace std; bool prime_number(int a){//判断素数函数 if(a==2) return t…… 题解列表 2024年03月15日 0 点赞 0 评论 127 浏览 评分:0.0
一般方法,一般思路,小白解法 摘要:解题思路:注意事项:参考代码:n=input()l=''for i in range(len(n)-1): l+=chr(ord(n[i])+ord(n[i+1]))l+=chr…… 题解列表 2024年03月15日 0 点赞 0 评论 204 浏览 评分:0.0
完数的判断 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2024年03月15日 0 点赞 0 评论 204 浏览 评分:0.0
编写题解 2785: 判断一个数能否同时被3和5整除,python超简单 摘要:解题思路:详见代码注意事项:%的运用参考代码:n = int(input())if n % 3 == 0 and n % 5 == 0: print('YES')else: …… 题解列表 2024年03月15日 0 点赞 0 评论 544 浏览 评分:0.0
蓝桥杯基础练习VIP-分解质因数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a , b; cin >> a >> b; f…… 题解列表 2024年03月15日 0 点赞 0 评论 271 浏览 评分:0.0