Lv.1
hmmm
在 【给莱利】 中回复
#include<bits/stdc++.h>//这是啥你别管,反正你的编辑器能通过
using namespace std;
int main()
{
int a,b;//a是被除数,b是除数
cin>>a>>b;//记住,cin后面一定要加输入流!!!
int c,d;//c是商,d是余数
c=a/b;//除号是向下取整的,也就是整数商
d=a%b;//求余数用百分号
cout<<c<<' '<<d;//输出
return 0;
}2020-04-08T11:05:30 点赞:0
在 【给莱利】 中回复
序号1的题解:
let ans=1;
for(let i=6;i<=20;i++){
ans*=i;
}
console.log(ans);2020-04-10T11:37:54 点赞:0
在 【教程贴】随机种树 中回复
var a_01=trunk_x_to - trunk_x_from;
var a_02=trunk_y_to - trunk_y_from;
var a_03=trunk_z_to - trunk_z_from;
var a_04=Math.round((a_01+a_02+a_03)/3)-1;
var a_05=127-a_04;//计算出随机数可能
帮你换掉了
2020-04-16T11:43:51 点赞:1
在 【代码岛3.0】正着开车的代码 中回复
world.querySelectorAll('.ofcar').forEach((e)=>{
e.onEntityContact(({other})=>{
other.player.mesh='';
other.player.invisible=false;
other.player.walkSpeed=0.22;//正常行走速度
other.player.runSpeed=0.4;//正常奔跑速度
other.player.canFly=false;
})
})//此代码不仅用于下车,也用于下任何交通工具,甚至不是交通工具2020-04-21T15:10:44 点赞:0
在 【代码岛3.0】快速建造的代码 中回复
https://box3create.codemao.cn/games/fd25d650605391d03003
2020-04-21T17:25:08 点赞:0
在 做为一名JavaScript萌新,在此向各位大佬请教一个问题 中回复
world.onPlayerJoin(({entity})=>{
entity.player.canFly=true;
entity.player.flySpeed=3;
entity.player.runSpeed=3;
})2020-04-23T17:20:55 点赞:0