题解列表
[编程入门]第一个HelloWorld程序
摘要:解题思路:作为初学者的第一个程序,这个程序很简单,用printf打印出来就好了注意事项:1.注意*号的数量2.注意换行.参考代码:#include <stdio.h>int main(){ pr……
1234: 检查一个数是否为质数-题解
摘要:解题思路:注意事项:参考代码:a = int(input())if a <= 1: print("N")elif a == 2: print("Y")else: for i in r……
[编程入门]三个数字的排序------(Python)
摘要:利用Python函数:
sort-----对列表进行排序
```python
team=list(map(int,input().split()))
team.sort()
for i in……
[编程入门]数字逆序输出-----详解(Python)
摘要:reverse---可以将列表逆序
```python
team=list(map(int,input().split()))
team.reverse()
for i in team:
……
[编程入门]数字插入处理-----利用函数------(Python)
摘要:Python
append----在最末尾添加
sort-----将列表排序
```python
team=list(map(int,input().split()))
n=int(inpu……
[编程入门]矩阵对角线求和-------(Python)
摘要:```python
a=[]
sum1=sum2=0
for i in range(3):
team=list(map(int,input().split()))
a.app……
用c lass 和 循环一维
摘要:解题思路:注意事项:参考代码:class people: def __init__(self,num): self.num=num self.J=Truen=int(……
[编程入门]猴子吃桃的问题(C语言代码)简单易懂
摘要:解题思路: 一天吃剩的加一再乘二就变成吃之前的注意事项:控制for循环次数参考代码:#include<stdio.h>int main(){ int n,a=1,h=2; scanf("%d",&n)……
2182 就;IP就离谱C语言
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf(" *\n * *\n*****\n"); return 0;}……