1135: C语言训练-求s=a+aa+aaa+aaaa+aa...a的值-题解(python) 摘要:解题思路:注意事项:参考代码:a,n = map(str,input().split())s = 0for i in range(1,int(n)+1): s += int(a*i)print(…… 题解列表 2021年10月22日 0 点赞 0 评论 750 浏览 评分:4.0
二级C语言-计负均正(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a=0,s[20]; //数组储存20个整数 float x,sum=0; for(int i=…… 题解列表 2021年11月14日 0 点赞 0 评论 365 浏览 评分:4.0
编写题解 1162: 密码(C++) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <string> using namespace std; int main() { int …… 题解列表 2021年11月16日 0 点赞 0 评论 395 浏览 评分:4.0
哎哟我去海盗狗 摘要:#include <stdio.h> int main() { int a[100], b[100] = { 0 }, n, k = 0; scanf_s("%d", &n); for…… 题解列表 2021年11月26日 0 点赞 0 评论 333 浏览 评分:4.0
剪刀石头布 摘要:解题思路:利用if进行枚举,其余情况输出0注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b; …… 题解列表 2021年11月28日 0 点赞 0 评论 707 浏览 评分:4.0
跟着思路写就好了 摘要:#include <stdio.h> int main() { float score; int dydy85=0,dydy60=0,xy60=0; scanf("%…… 题解列表 2021年12月02日 0 点赞 3 评论 682 浏览 评分:4.0
2551.:作文 python 、90%错误的可以看一看! 摘要:### 思路 思路很简单就是用count去记录行数,cur_line_num 去记录当前行是写到第几个了。 对于一个新单词来说,如果( 这个单词长度 + cur_line_num )不超过每行最大…… 题解列表 2021年12月11日 0 点赞 0 评论 375 浏览 评分:4.0
2007: 计算输入数据的和与乘积 摘要:解题思路:注意事项:参考代码:n = input() h=0 s=1 for i in n: h += int(i) s *= int(i) print(h,s)…… 题解列表 2022年01月05日 0 点赞 0 评论 457 浏览 评分:4.0
2081: 蓝桥杯基础练习-十六进制转八进制 摘要:解题思路:注意事项:参考代码:n = int(input()) for i in range(n): m = input() print(oct(int(m,16))[2:])…… 题解列表 2022年01月13日 0 点赞 0 评论 538 浏览 评分:4.0
python-扑克排序 摘要:解题思路:①将2~10,J,Q,K,A 分别对应下标0~13②将颜色方块(d)、梅花(c)、红桃(h)、黑桃(s)分别对应下标0~3③将结果存放在result数组中,数组中每个元素为一个4*1大小的数…… 题解列表 2022年01月29日 0 点赞 0 评论 1011 浏览 评分:4.0