文章列表

筛选

输入确定数组长度

摘要:用 malloc库函数实现/* malloc example: random string generator*/#include <stdio.h>      /* printf, scanf, N……

梯度算利润

摘要:#include<stdio.h>void main(){ double a, sum = 0; float rate; scanf("%lf", &a); if (a > 1000000) { r……

振兴中华O。o

摘要:#include <bits/stdc++.h>using namespace std;int a[]={0,1};int b[]={1,0};int cnt;void dfs(int x,int y……

李白打酒O。o

摘要:#include <bits/stdc++.h>using namespace std;int sum = 0;void f(int dian, int hua, int jiu){    if(di……

矩阵行列互换

摘要:#原始#00 01 02#10 11 12#20 21 22#转化为#00 10 20#01 11 21#02 12 22#定义 3*3二维数组arr=[[0 for i in range(3)] f……

九宫填数(c++)代码

摘要:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cstring>#include<vector……

a+b(python)两数之和

摘要:while True:    num1=list(map(int,input().split()))    sum=0    for i in range(0,len(num1)):        s……