
Lv.1
我们仍然在宿命当中,我们仍然没能逃脱。
签名:https://codemao.cn/ https://www.ccw.site/ https://nightly.paw.msgbyte.com/main/group/669a6292acb181833ab4302f/669a8ae9acb181833ab72627 https://teacher-edu.codemao.cn/learningStatistics
在 ⚡姜太公钓鱼,愿者上钩⚡ 中回复
帮个忙https://shequ.codemao.cn/community/705320(作品不在这个号,链接也没有,我才敢发awa)
2024-08-15T23:11:31 点赞:0
在 最近在做植物大战僵尸,大家对植物/僵尸有什么好的想法? 中回复
最好从前往后投稿,前2关植物/僵尸,已完成,第三关差一个二形态樱桃,从后面开始投稿
还可以投稿一些彩蛋植物awa
2024-08-15T23:13:29 点赞:1
在 AcReply 1.3.0 —— 优化速度,改进逻辑。 中回复
求帮助:https://shequ.codemao.cn/community/705320
2024-08-15T23:14:27 点赞:0
在 [C++]能力测试“丑数” 中回复
#include<bits/stdc++.h>
using namespace std;
int a[1000005],b[1000005];
queue<int> x;
int main(){
int n;
cin>>n;
for(int i=2;i<=1000000;i++){
if(a[i]==0){
x.push(i);
for(int j=i*2;j<=1000000;j+=i)
a[j]=1;
}
}
while(!x.empty()){
int max1=x.front();
if(max1>5){
for(int i=max1;i<=1000000;i+=max1)
b[i]=1;
}
x.pop();
}
int max2=0;
for(int i=1;i<=1000000;i++){
if(b[i]==0){
max2++;
if(max2==n){
cout<<i;
return 0;
}
}
}
return 0;
}2024-08-17T00:07:31 点赞:0