Lv.1
签名:大号L.W.Kevin0wvf
在 3个最佳、15个提名,和即将告一段落的神岛创作节 中回复
大力招收合作者,各位人才就来吧!大力招收合作者,各位人才就来吧!大力招收合作者,各位人才就来吧! 进入这个链接 https://box3.fun/e/92d3299b91e8c893bb75
2022-05-25T08:33:08 点赞:0
在 【神岛创作节】年度优秀地图召唤行动,比赛倒计时1天~ 中回复
创作节组队,地图https://box3.codemao.cn/e/38a9a822841885dd8696
2022-07-12T10:15:30 点赞:1
在 【小小的问题】(求助) 中回复
emmm··· 这个报错的信息看样子应该不是你给的那段代码中的问题,那个地图源代码的325行和408行有错误,很可能是world.onDie的问题,因为喵的不是玩家,所以没有entity.player.name这个参数,可以加一个判断
world.onDie(({原参数···})=>{/*本行可以不修改*/
if (entity.isPlayer){
/*world.onDie里的原代码*/
}else{
world.say(`${entity.id} 被 ${attacker.player.name} 击败了!`)
entity.destroy() /*清除模型实体*/
/* 其他操作··· */
}
})2022-08-15T15:09:01 点赞:1
在 每日拍车(4 / 4) 中回复
列车驱动也就velocity和querySelectorAll标签,车内小的功能也不怎么难(也没太必要,做精细了也好),最主要的是模型和肝
2022-11-19T20:23:09 点赞:0
在 【整活:规则类怪谈】社区论坛怪谈 中回复
80.编程猫社区没有红色的创作按钮,如果发现,请立即关闭电脑。如果没能及时关闭电脑,一定不顾一切包括生命要去看第81条,否则会█████
2023-01-16T17:27:06 点赞:0
在 【整活:规则类怪谈】社区论坛怪谈 中回复
-1.如果当这些规则中的条件全部满足时,立刻关闭电脑,保证████████,努力使自己不要回想几秒前发生的事情,否则在几秒后会██████。
2023-01-16T17:30:51 点赞:0
在 怎样把计时器从界面上弄出去!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 中回复
所以用手屑亿个只因时器是一个布戳的选折。
2023-01-16T22:14:51 点赞:0
在 随便做的C++代码模板,不喜勿喷 中回复
#include <iostream>
using namespace std;
int main()
{
return 0;
}
#include <iostream>
#define int long long
using namespace std;
signed main()
{
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main()
{
return 0;
}
for (int i = 1; i <= n; i++) cout << a[i] << " ";
cout << endl;
for (int i = 1; i <= n; i++)
{
for (int j = 1; j <= m; j++) cout << a[i][j] << " ";
cout << endl;
}
for (int i = 1; i <= n; i++) cout << i << endl;
for (int i = n; i >= 1; i--) cout << i << endl;
for (int i = 1; i <= n; i++) cin >> a[i];
for (int i = 1; i <= n; i++) for (int j = 1; j <= m; j++) cin >> a[i][j];
for (int i = 1; i <= n; i++)
{
if (condition) break;
other programs
}
while (cin >> a[i]) i++;
while (i <= num) i++;
#include <iostream>
using namespace std;
int a[num];
int main()
{
int n;
cin >> n;
for (int i = 1; i <= n; i++) cin >> a[i];
for (int i = 1; i <= n; i++)
{
for (int j = 1; j <= i; j++)
{
if (a[i] < a[j]) swap(a[i], a[j]);
}
}
for (int i = 1; i <= n; i++) cout << a[i] << " ";
cout << endl;
return 0;
}
#include <iostream>
#include <algorithm>
using namespace std;
int a[num];
bool cmp(int x, int y)
{
return x < y;
}
void selectionSort(int *first, int *last, bool (*comp)(int, int))
{
for (int *i = first; i < last; i++)
{
for (int *j = first; j < i; j++)
{
if (comp(*i, *j)) swap(*i, *j);
}
}
}
int main()
{
int n;
cin >> n;
for (int i = 1; i <= n; i++) cin >> a[i];
selectionSort(a + 1, a + n + 1, cmp);
for (int i = 1; i <= n; i++) cout << a[i] << " ";
cout << endl;
return 0;
}
#include <iostream>
using namespace std;
int a[num];
int main()
{
int n;
cin >> n;
for (int i = 1; i <= n; i++) cin >> a[i];
for (int i = 1; i < n; i++)
{
for (int j = 1; j < n - i; j++)
{
if (a[j + 1] < a[j]) swap(a[j], a[j + 1]);
}
}
for (int i = 1; i <= n; i++) cout << a[i] << " ";
cout << endl;
return 0;
}
#include <iostream>
#include <algorithm>
using namespace std;
int a[num];
bool cmp(int x, int y)
{
return x < y;
}
void bubbleSort(int *first, int *last, bool (*comp)(int, int))
{
for (int *i = first, sub = 0; i < last - 1; i++, sub++)
{
for (int *j = first; j < last - sub - 1; j++)
{
if (comp(*(j + 1), *j)) swap(*(j + 1), *j);
}
}
}
int main()
{
int n;
cin >> n;
for (int i = 1; i <= n; i++) cin >> a[i];
bubbleSort(a + 1, a + n + 1, cmp);
for (int i = 1; i <= n; i++) cout << a[i] << " ";
cout << endl;
return 0;
}
#include <iostream>
using namespace std;
int a[num];
int main()
{
int n;
cin >> n;
for (int i = 1; i <= n; i++) cin >> a[i];
for (int i = 2; i <= n; i++)
{
int j = i, tmp = a[i];
while (j && !(a[j - 1] < tmp))
{
a[j] = a[j - 1];
j--;
}
a[j] = tmp;
}
for (int i = 1; i <= n; i++) cout << a[i] << " ";
cout << endl;
return 0;
}
#include <iostream>
using namespace std;
int a[num];
bool cmp(int x, int y)
{
return x < y;
}
void insertionSort(int *first, int *last, bool (*comp)(int, int))
{
for (int *i = first + 1; i < last; i++)
{
int *j = i, tmp = *i;
while (!(*(j - 1) < tmp))
{
*j = *(j - 1);
j--;
if (j == first) break;
}
*j = tmp;
}
}
int main()
{
int n;
cin >> n;
for (int i = 1; i <= n; i++) cin >> a[i];
insertionSort(a + 1, a + n + 1, cmp);
for (int i = 1; i <= n; i++) cout << a[i] << " ";
cout << endl;
return 0;
}
#include <iostream>
using namespace std;
const int N = num;
int a[N], s[N];
int main()
{
int n, q;
cin >> n;
//输入数组&求前缀和
for (int i = 1; i <= n; i++)
{
cin >> a[i];
s[i] = s[i - 1] + a[i];
}
//q次询问求区间和
cin >> q;
for (int i = 1; i <= q; i++)
{
int x, y;
cin >> x >> y;
cout << s[y] - s[x - 1] << endl;
}
return 0;
}
2024-03-23T17:19:49 点赞:0
在 工作室招生命体 中回复
GRW团队招生了!无论你是跑酷大神,生存大师,还是PVP大佬,又或是起床大佬,还是PVP大佬,又或是建筑大佬,还是PVP大佬,又或是红石大佬,还是什么都不知道的小白PVP大佬……(乱入)
2024-04-20T21:40:07 点赞:0