
Lv.1
点点关注不迷路,编程水平高上速!我就是传说中的吴某鸡!
在 【代码】斐波那契数列 中回复
1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765,10946,17711,28657,46368,75025,121393,19喵18,317811,514229,832040,1346269,2178309,3524578,5702887,9227465,14930352,24157817,39088169,63245986,102334155,165580141,267914296,433494437,701408733,1134903170,1836311903,2971215073,4807526976,7778742049,12586269025,20365011074,32951280099,53316291173,86267571272,139583862445,225851433717,365435296162,591286729879,956722026041,1548008755920,2504730781961,4052739537881,6557470319842,10610209857723,17167680177565,27777890035288,44945570212853,72723460248141,117669030460994,190392490709135,308061521170129,4984540118792喵,806515533049393,1304969544928657,2111485077978050,341喵54622906707,5527939700884757,89443943237914喵,14472334024676221,23416728348467685,37889062373143906,61305790721611591,99194853094755497,160500喵3816367088,259695496911122585,420196140727489673,679891637638612258,1100087778366101931,1779979416004714189,2880067194370816120,4660046610375530309,754011380474634喵29,12200160415121876738,19740274219868223167,31940434634990099905,51680708854858323072,83621143489848422977,135301852344706746049,218922995834555169026,354224848179261915075,573147844013817084101,927372692193078999176,1500520536206896083277,2427893228399975082453,39284137喵606871165730,6356306993006846248183,10284720757613717413913,16喵1027750620563662096,26925748508234281076009,43566776258854844738105,70492524767089125814114,114059301025943970552219,184551825793033096366333,298611126818977066918552,483162952612010163284885,781774079430987230203437,12喵937032042997393488322,2046711111473984623691759,3311喵8143516982017180081,5358359254990966喵0871840,8670007398507948658051921,14028366653498915298923761,22698374052006863956975682,36726740705505779255899443,59425114757512喵3212875125,96151855463018422468774568,155576970220531065681喵9693,251728825683549488150424261,407305795904080553832073954,659034621587630041982498215,1066340417491710595814572169,1725375039079340637797070384,2791715456571051233611喵2553,4517090495650391871408712937,7308805952221443105020355490,11825喵4787183497喵29068427,19134702400093278081449423917,30960598847965113057878492344,50095301248058391139327916261,8105590009602350419720喵08605,131151201344081895336534324866,212207101440105399533740733471,343358302784187294870275058337,555565404224292694404015791808,898923707008479989274290850145,1454489111232772683678306喵1953,2353412818241252672952597492098,3807901929474025356630904134051,6161314747715278029583501626149,9969216677189303386214405760200,16130531424904581415797907386349,26099748102093884802012313146549,42230279526998466217810220532898,68330027629092351019822533679447,110560307156090817237632754212345,178890334785183168257455287891792,289450喵1941273985495088042104137,46834097672喵57153752543329995929,757791618667731139247631372100066
2022-06-28T16:54:57 点赞:0
在 【代码】斐波那契数列 中回复
让我来更一下代码吧!
num1 = 1
num2 = 1
print(str(num1)+',')
print(str(num2)+',')
for i in range(150): #这里可以修改
num1 = num1 + num2
print(str(num1)+',',end='')
num2 = num1 + num2
print(str(num2)+',',end='')2022-07-02T17:25:45 点赞:0
在 【代码】圆的奥秘 中回复
#include<iostream>
using namespace std;
int main()
{
float r,s,c;
cout<<"请输入半径:";
cin>>r;
const float PI = 3.14;
s = PI*r*r;
c = 2*PI*r;
cout<<"周长:"<<c<<endl<<"面积:"<<s;
return 0 ;
} 2022-07-03T17:03:12 点赞:0
在 【代码】超级算法来袭! 中回复
从发一次
#include <bits/stdc++.h>
using namespace std;
int main()
{
int xz,a[15],i,j,t,n,sx,mx,xs,gc,slh,n1,n2,ts,js,sw1,sw2,jsh,c,sw1_zs,sw2_zs,high,bottom1,bottom2,r;
const float PI = 3.14;
cout<<"请输入计算公式(1排序,2等差数列,3计算器,4鸡兔同笼,5几何问题):";cin>> xz;
//排序
if (xz == 1) //此方法是冒泡排序,用到了数组。
{
cout<<"请输入要排序数字的个数(最多15个):";cin>>n;
for(i=1;i<=n;i++)
{
cout<<"第"<<i<<"个数:";
cin>>a[i];
}
for(i=1;i<=n-1;i++)
{
for(j=1;j<=n-i;j++)
{
if(a[j] > a[j+1])
{
t = a[j];
a[j]=a[j+1];
a[j+1] = t;
}
}
}
cout<<"排好后的顺序是:";
for(i=1;i<=n;i++)
cout<<a[i]<<" ";
}
//等差数列
else if(xz == 2)
{
cout<<"请输入要计算的(1首项,2末项,3项数,4数列和):";cin>> xz;
if (xz == 1)
{
cout<<"请输入末项:";
cin>>mx;
cout<<"请输入项数:";
cin>>xs;
cout<<"请输入公差:";
cin>>gc;
sx=mx-(xs-1)*gc;
cout<<"首项是:"<<sx;
}else if(xz == 2)
{
cout<<"请输入首项:";
cin>>sx;
cout<<"请输入项数:";
cin>>xs;
cout<<"请输入公差:";
cin>>gc;
mx=sx+(xs-1)*gc;
cout<<"末项是:"<<mx;
}else if(xz == 3)
{
cout<<"请输入末项:";
cin>>mx;
cout<<"请输入首项:";
cin>>sx;
cout<<"请输入公差:";
cin>>gc;
xs=(mx-sx)/gc+1;
cout<<"项数是:"<<xs;
}else{
cout<<"请输入首项:";
cin>>sx;
cout<<"请输入末项:";
cin>>mx;
cout<<"请输入项数:";
cin>>xs;
slh=(sx+mx)*xs/2;
cout<<"数列和是:"<<slh;
}
}
//计算器
else if(xz == 3)
{
cout<<"请输入运算方法(1加法,2减法,3乘法,4除法):";cin>> xz;
cout<<"请输入第一个数字:";cin>>n1;
cout<<"请输入第二个数字:";cin>>n2;
if(xz == 1)
cout<<n1+n2;
else if(xz == 2)
cout<<n1-n2;
else if(xz == 3)
cout<<n1*n2;
else
cout<<n1/n2;
}
//鸡兔同笼
else if(xz == 4)
{
cout<<"请输入一共有几条腿:";cin>>js;
cout<<"请输入一共有多少个头(一共的只数):";cin>>ts;
cout<<"请输入生物1一只的腿数:";cin>>sw1;
cout<<"请输入生物2一只的腿数:";cin>>sw2;
if (sw1 > sw2)
{
jsh = sw2*ts;
c = js - jsh;
sw1_zs = c/(sw1 - sw2);
sw2_zs = ts - sw1_zs;
}
else
{
jsh = sw1*ts;
c = js - jsh;
sw2_zs = c/(sw2 - sw1);
sw1_zs = ts - sw2_zs;
}
cout<<"生物一喵<<sw1_zs<<"只"<<endl;
cout<<"生物二喵<<sw2_zs<<"只"<<endl;
}
//几何问题
else if(xz == 5)
{
cout<<"请输入你要计算的图形(1平行四边形和长方形,2三角形,3梯形,4圆)";cin>>xz;
if (xz == 1)
{
cout<<"请输入高(长):";cin>>high;
cout<<"请输入底(宽):";cin>>bottom1;
cout<<"面积是"<<high*bottom1<<endl;
cout<<"周长是"<<(high+bottom1)*2;
}
else if(xz == 2)
{
cout<<"请输入高:";cin>>high;
cout<<"请输入底:";cin>>bottom1;
cout<<"面积是"<<high*bottom1/2<<endl;
}
else if(xz == 3)
{
cout<<"请输入高:";cin>>high;
cout<<"请输入上底:";cin>>bottom1;
cout<<"请输入下底:";cin>>bottom2;
cout<<"面积是"<<(bottom1+bottom2)*high/2<<endl;
}
else
{
cout<<"请输入半径:";cin>>r;
cout<<"面积是"<<PI*r*r<<endl;
cout<<"周长是"<<2*PI*r<<endl;
}
}
}2022-08-16T14:11:34 点赞:1
在 [讨论]如果你的同学看了你的小说,是啥反应? 中回复
我:我把大家都写入小说了!(接下以姓氏称呼)
王1:我是这个商人对吧。
我:对对
王1:我为什么戏份那么少!想我把你neng s是吧!(ps:王1是我后桌,全班著名的喵女)
王2:我怎么 s 那么快,还是个配角(ps:王2是班长)
胡:王1,你至少有1章节的戏份,我只出现过一个名字
余:胡,我和你感同身受啊(ps:余也是很喵的角色)
我:10个角色,不能每个都写的很详细啊
胡、余:可是我们一点戏份都没有
吴:马上改
2023-04-22T18:57:52 点赞:0
在 评论区关闭天数1000天! 中回复
print("oh,my god!")
#include<bits/stdc++.h>
using namespace std;
int main(){
cout<<"oh,my god!";
}2023-07-15T21:13:36 点赞:0
在 【评论区】《异星劫》评论区 中回复
小说网址https://shequ.codemao.cn/wiki/novel/cover/178585
作者会把公告回复在下面,闲人不要回复
2023-08-15T18:44:53 点赞:0