题解列表

筛选

1020递归解法

摘要:解题思路:注意事项:参考代码:def peach(n):    if n==1:        return 1    else:        return 2*peach(n-1)+2a=int(……

1015匿名函数解法(Python)

摘要:注意事项:其实写在一行,不过展示出来太臃肿,如果有优化的一行解写法请在评论区留言参考代码:lst = list(map(int, input().split()))print('{:.2f}&……

1132基础解法(Python)

摘要:注意事项:用sys.stdin避免输入异常,此题因为-1即表示终止,且不存在多个-1或者-1后仍有输入的情形,所以难度大大降低参考代码:import syslst = []for line in sy……

排序排序排序排序 C

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){         int n,i,j,t;         int min,min_i;         sca……

1173一行解(Python)

摘要:解题思路:注意事项:参考代码:import mathimport sysfor line in sys.stdin:print(&#39;{:.2f}&#39;.format((4/3)*math.p……

剪刀石头布C++

摘要:解题思路:  一一比较注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a, b;    cin >> a >> b……

字符串拷贝简易版

摘要:解题思路:输入一串字符串,然后直接从输入的m个字符中从第n个开始截断输出注意事项:注意数组是从0开始计数,所以第一个字符对应的数组下标为0参考代码:#include <stdio.h>int main……