含有结束语句的去空格程序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[100]; int i,j[100],k=0; char en…… 题解列表 2022年01月24日 0 点赞 3 评论 603 浏览 评分:9.9
[编程入门]筛选N以内的素数-题解(python代码) 摘要:解题思路: 素数即只有1和它本身两个因子,显然,若数x在(2,根号X)内没有因子,则它在(根号X,x-1)内没有因子,为减少循环(但此题不容易超时,所以可以不用减少循环),计算在(2, int(…… 题解列表 2022年01月24日 0 点赞 0 评论 413 浏览 评分:0.0
Benjam1n:蓝桥杯算法提高VIP-高精度乘法(Java代码) 摘要:解题思路:直接调用BigIntger。注意事项:无参考代码:import java.util.Scanner; import java.math.BigInteger; public clas…… 题解列表 2022年01月24日 0 点赞 0 评论 317 浏览 评分:9.9
[编程入门]自定义函数之字符类型统计 (C++代码) 摘要:解题思路:用string格式保存题目信息比用数组保存更简单一些注意事项:需要导入string库参考代码:#include<iostream>using namespace std;#include<s…… 题解列表 2022年01月24日 0 点赞 0 评论 337 浏览 评分:0.0
蓝桥杯历届试题-回文数字 (暴力查找)C++代码。 摘要:解题思路: 在main()函数里输入N,和循环查找,在AA()函数中判断是否为回文数字,在BB()函数中判断,某个数字的所有位的和,是否等于输入的数字N;设置一个计数变量看是否没有满足条件的,输出:…… 题解列表 2022年01月24日 0 点赞 0 评论 338 浏览 评分:6.7
【编程入门】迭代法求平方根-题解(python) 摘要:解题思路: 根据所给公式写出相应代码,因为要迭代,所以利用python复合赋值。注意事项: 格式化输出保留三位小数。参考代码:x = int(input())a = x/2b = (a+x/a…… 题解列表 2022年01月24日 0 点赞 0 评论 439 浏览 评分:8.0
2191: Little Xie's issue(python代码) 摘要:解题思路:注意事项:参考代码:n = input() print('*'*(len(n)+4)) print('* '+n+' *') print…… 题解列表 2022年01月24日 0 点赞 0 评论 364 浏览 评分:0.0
python-矩阵加法 摘要:解题思路:注意事项:注意题目要求最后一行不要有多余空格参考代码:def f(n,m): A = [[int(j) for j in input().strip().split()] fo…… 题解列表 2022年01月24日 0 点赞 0 评论 434 浏览 评分:0.0
2190: Little Ke's problem 摘要:解题思路:注意事项:参考代码:n = input() print(f"What is your name? Hello {n}, nice to meet you.")…… 题解列表 2022年01月24日 0 点赞 0 评论 326 浏览 评分:0.0
2189: diamond(python代码) 摘要:解题思路:注意事项:参考代码:n = int(input()) m = 1 for i in range(n//2): print(' '*((n-m)//2)+'…… 题解列表 2022年01月24日 0 点赞 0 评论 273 浏览 评分:0.0