题解列表
编写题解 1671: 小九九
摘要:for i in range(1,10):
for j in range(1,i+1):
print('%-6s'%(f'{j}*{i}={i*j}……
编写题解 1670: 拆分位数
摘要:解题思路:注意事项:参考代码:
a= input()
for i in a[::-1]:
print(i,end=' ')……
1636: 蓝桥杯算法训练VIP-整除问题
摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input().split())
for i in range(a,b+1):
if i % c ==0:
……
解 1635: 蓝桥杯算法训练VIP-整数平均值
摘要:解题思路:注意事项:参考代码:
n = int(input())
s = list(map(int,input().split()))
print(int(sum(s)/len(s)))……
586: 蓝桥杯算法训练VIP-A+B problem
摘要:解题思路:注意事项:参考代码:while True:
try:
a,b=map(int,input().strip().split())
print(a+b)
except:
……
编写题解 1585: 蓝桥杯算法训练VIP-链表数据求和操作
摘要:解题思路:注意事项:参考代码:s=c=0
while True:
try:
a,b=map(int,input().split())
s += a
c += b
excep……
1153: C语言训练-谁家孩子跑最慢*
摘要:解题思路:题目有四个条件 1.李家的孩子最高分是9,王家的孩子最高分是8;2.每一家孩子得分不相邻;3.每一家得分相同(1+……+9=45 45/3=15)即每一家总分是15;4.没有得分相同的孩子……
题目 1046: [编程入门]自定义函数之数字后移
摘要:解题思路:1:循环m次2:①每次先用t保存最后一个数,即a[n-1]②然后a[] 从末尾开始依次等于前一个数③让a[0]=t;4:输出a[];注意事项:参考代码:#include <stdio.h>v……
C++代码宏定义实参实现2个数字交换,最终实现3个数字的排序
摘要:解题思路:选择排序法注意事项:暂时不明参考代码:#include<iostream>using namespace std;#define swap(x,y) {int temp=x;x=y;y=te……