题解列表
级数求和.......
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int k,i; double s=.0 ; scanf("%d",&k) ; for(i=1;;i++){ ……
编写题解 1084: 用筛法求之N内的素数(so easy)
摘要:####莫名其妙的就写完了,说实话我都不知道怎么写出来的,就这么莫名其妙的过了。可能是素数题写多了,脑袋没动,手就帮忙写完了。
```
#include
using namespace std;……
编写题解 3012: 分苹果
摘要:编写题解 3012: 分苹果
```
#include
using namespace std;
int main()
{
int n;
cin>>n;
cout……
2811: 救援(Python)
摘要:解题思路:注意事项:参考代码:from decimal import *
n = int(input())
t0 = 0
while True:
try:
x,y,num=map(in……
Python求解背包问题
摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())w=[0]*(n+1)v=[0]*(n+1)for i in range(1,n+1): w[i],v[i]……
字符串逆序输出(C语言)
摘要:两种方法:
法一:字符串数组 冒泡排序法
#include<stdio.h>
#include<stdlib.h>
void sort_bubble(char arr[], int len)
……