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 评论 292 浏览 评分:0.0
编写题解 2773: 计算线段长度,python超简单 摘要:解题思路:详见下列代码注意事项:如果不考虑两种情况,那么会出现运行错误,感觉题目有歧义,没有明确指出。。参考代码:from math import sqrt# 读取输入并转换为浮点数列表number …… 题解列表 2024年03月15日 0 点赞 2 评论 744 浏览 评分:0.0
简单易懂c++ 摘要: `#include using namespace std; bool prime_number(int a){//判断素数函数 if(a==2) return t…… 题解列表 2024年03月15日 0 点赞 0 评论 158 浏览 评分: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 评论 238 浏览 评分:0.0
完数的判断 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2024年03月15日 0 点赞 0 评论 238 浏览 评分: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 评论 601 浏览 评分:0.0
蓝桥杯基础练习VIP-分解质因数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a , b; cin >> a >> b; f…… 题解列表 2024年03月15日 0 点赞 0 评论 323 浏览 评分:0.0
java解题方法 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2024年03月15日 0 点赞 0 评论 200 浏览 评分:0.0
c++ 二分答案 摘要:解题思路:emmm就是经典的二分答案,但是我有一个案例没通过,不知道哪里有问题,有找到问题的欢迎评论区留言注意事项:参考代码:#include <bits/stdc++.h> using names…… 题解列表 2024年03月15日 0 点赞 0 评论 324 浏览 评分:0.0
A+B的第五种输入类型 摘要:解题思路:如下注意事项:这种题主要注意sum值的重新赋予参考代码:#include<stdio.h>int main(){ int n,m,i; int a; int sum; …… 题解列表 2024年03月15日 0 点赞 0 评论 451 浏览 评分:0.0