题解列表

筛选

自定义函数处理素数易懂

摘要:解题思路:1,2是特别的数单独处理,然后再对其他数进行处理注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a,su……

C语言训练-求PI*(python版)

摘要:解题思路:注意事项:参考代码:import mathsum = 0i = 1k = 0n = 1while math.fabs(n) >= 10**(-6):    #控制循环    sum += n……

左孩子右兄弟 递归

摘要:参考代码:import java.util.*; public class Main {     public static Map<Integer, List<Integer>> nodeT……

编写题解 1209: 密码截获

摘要:解题思路:注意事项:参考代码:while True:     try:         st=input()         ts=st[::-1]         s=[]   &n

用筛法求之N内的素数

摘要:解题思路:注意事项:参考代码://用筛法求之N内的素数#include<stdio.h>int main(){ int n; int a[1001]; scanf("%d",&n); for(int ……

题目 1093: 字符逆序

摘要:解题思路:①将输入的字符串生成列表②用reverse进行翻转③输出字符注意事项:输出为一行参考代码:li=list(str(input()))if len(li)<=100: li.reverse()……