当前位置: 首页 > news >正文

有没有网站做设计可以赚钱化妆品推广软文

有没有网站做设计可以赚钱,化妆品推广软文,广告设计公司制作,做seo的网站有那些Problem - F - Codeforces 思路:分析一下题意,对于第一种操作来说,每次乘以x,那么nn*x,然后问是否存在一个a使得gcd(n,a)1并且n*a的约数个数等于n,有最大公约数等于1我们能够知道其实这两个数是互质的&…

Problem - F - Codeforces

思路:分析一下题意,对于第一种操作来说,每次乘以x,那么n=n*x,然后问是否存在一个a使得gcd(n,a)=1并且n*a的约数个数等于n,有最大公约数等于1我们能够知道其实这两个数是互质的,所以d(n)*d(a)=d(n*a),那么就是要d(a)=n/d(n),所以n%d(n)一定要等于零,同时又因为当取模等于零时我们发现一定可以构造除一种方案,我们先选择一个与n互质的数x,然后让a=x^t,此时a共有(t+1)个约数,所以我们只需要让(t+1)=n/d(n)就能够构造出来,所以现在的问题变成了,我们能够判断n%d(n)等于0,我们知道一个因数个数的公式,就是所有质因数的个数加一的累乘,那么我们只需要维护n的所有质因数的个数即可,同时n并不能够直接乘以x,因为可能会乘的很大,所以我们在求出来d(n)之后,可以看看n与所有的x能否把d(n)消完,如果能消则代表可以

// Problem: F. Vasilije Loves Number Theory
// Contest: Codeforces - Codeforces Round 900 (Div. 3)
// URL: https://codeforces.com/contest/1878/problem/F
// Memory Limit: 256 MB
// Time Limit: 2000 ms#include<bits/stdc++.h>
#include<sstream>
#include<cassert>
#define fi first
#define se second
#define i128 __int128
using namespace std;
typedef long long ll;
typedef double db;
typedef pair<int,int> PII;
const double eps=1e-7;
const int N=5e5+7 ,M=5e5+7, INF=0x3f3f3f3f,mod=1e9+7,mod1=998244353;
const long long int llINF=0x3f3f3f3f3f3f3f3f;
inline ll read() {ll x=0,f=1;char c=getchar();while(c<'0'||c>'9') {if(c=='-') f=-1;c=getchar();}
while(c>='0'&&c<='9') {x=(ll)x*10+c-'0';c=getchar();} return x*f;}
inline void write(ll x) {if(x < 0) {putchar('-'); x = -x;}if(x >= 10) write(x / 10);putchar(x % 10 + '0');}
inline void write(ll x,char ch) {write(x);putchar(ch);}
void stin() {freopen("in_put.txt","r",stdin);freopen("my_out_put.txt","w",stdout);}
bool cmp0(int a,int b) {return a>b;}
template<typename T> T gcd(T a,T b) {return b==0?a:gcd(b,a%b);}
template<typename T> T lcm(T a,T b) {return a*b/gcd(a,b);}
void hack() {printf("\n----------------------------------\n");}int T,hackT;
ll n,m,k;
int pr[N],ttcnt;
bool st[N];
int cnt[N];
map<int,int> tcnt;void init() {for(int i=2;i<=1000;i++) {if(!st[i]) pr[ttcnt++]=i;for(int j=0;pr[j]<=1000/i;j++) {st[pr[j]*i]=true;if(i%pr[j]==0) break;}}
}void t_init(int x) {tcnt.clear();for(int i=0;i<ttcnt;i++) cnt[pr[i]]=0;for(int j=0;j<ttcnt;j++) {if(pr[j]>x) break;while(x%pr[j]==0) {cnt[pr[j]]++;x/=pr[j];}}if(x!=1) tcnt[x]++;
}int get() {int res=1;for(int i=0;i<ttcnt;i++) res=res*(cnt[pr[i]]+1);for(auto &it:tcnt) res=res*(it.se+1);return res;
}void change(int x,int &d) {int s=gcd(x,d);d/=s;
}bool check(vector<int> &temp,int d) {change(n,d);for(int i=0;i<temp.size();i++) change(temp[i],d);if(d==1) return true;else return false;
}void solve() {n=read();int q=read();t_init(n);vector<int> temp;while(q--) {int op=read();if(op==1) {int x=read();temp.push_back(x);for(int j=0;j<ttcnt;j++) {if(pr[j]>x) break;while(x%pr[j]==0) {cnt[pr[j]]++;x/=pr[j];}}if(x!=1) tcnt[x]++;if(check(temp,get())) printf("YES\n");else printf("NO\n");}else if(op==2) {t_init(n);temp.clear();}}
}   int main() {init();// stin();// ios::sync_with_stdio(false); scanf("%d",&T);// T=1; while(T--) hackT++,solve();return 0;       
}          


文章转载自:
http://retgersite.bwmq.cn
http://gramp.bwmq.cn
http://sneezes.bwmq.cn
http://aquiver.bwmq.cn
http://vertically.bwmq.cn
http://etch.bwmq.cn
http://unwhitened.bwmq.cn
http://processor.bwmq.cn
http://lumisome.bwmq.cn
http://lightheaded.bwmq.cn
http://gibli.bwmq.cn
http://interject.bwmq.cn
http://animal.bwmq.cn
http://recife.bwmq.cn
http://undunged.bwmq.cn
http://mastersinger.bwmq.cn
http://antemundane.bwmq.cn
http://martyrolatry.bwmq.cn
http://exophthalmos.bwmq.cn
http://centilitre.bwmq.cn
http://featheriness.bwmq.cn
http://fontina.bwmq.cn
http://nonboarding.bwmq.cn
http://commensuration.bwmq.cn
http://volkslied.bwmq.cn
http://hemispherical.bwmq.cn
http://unguiculated.bwmq.cn
http://veining.bwmq.cn
http://euthermic.bwmq.cn
http://trampolin.bwmq.cn
http://cagoule.bwmq.cn
http://hipline.bwmq.cn
http://militaristic.bwmq.cn
http://rancor.bwmq.cn
http://wobbegong.bwmq.cn
http://persia.bwmq.cn
http://multivalence.bwmq.cn
http://asid.bwmq.cn
http://personkind.bwmq.cn
http://coccidioidomycosis.bwmq.cn
http://stamford.bwmq.cn
http://endarteritis.bwmq.cn
http://chucklehead.bwmq.cn
http://plumpy.bwmq.cn
http://persistent.bwmq.cn
http://unmold.bwmq.cn
http://enteral.bwmq.cn
http://uncensored.bwmq.cn
http://impala.bwmq.cn
http://anthropometrist.bwmq.cn
http://quadragenarian.bwmq.cn
http://asteriated.bwmq.cn
http://regeneracy.bwmq.cn
http://nonentity.bwmq.cn
http://gondolet.bwmq.cn
http://bioengineering.bwmq.cn
http://impede.bwmq.cn
http://vinaigrette.bwmq.cn
http://lifesaving.bwmq.cn
http://dicker.bwmq.cn
http://acromion.bwmq.cn
http://plumply.bwmq.cn
http://linguistical.bwmq.cn
http://antechamber.bwmq.cn
http://make.bwmq.cn
http://begrime.bwmq.cn
http://sleeveless.bwmq.cn
http://terbia.bwmq.cn
http://osteotome.bwmq.cn
http://shmear.bwmq.cn
http://rockrose.bwmq.cn
http://desulphurize.bwmq.cn
http://precompression.bwmq.cn
http://dubitation.bwmq.cn
http://graphospasm.bwmq.cn
http://adjuster.bwmq.cn
http://prickspur.bwmq.cn
http://transcriptor.bwmq.cn
http://clectroscope.bwmq.cn
http://zoogloea.bwmq.cn
http://amban.bwmq.cn
http://unsent.bwmq.cn
http://frontier.bwmq.cn
http://overpower.bwmq.cn
http://hydrophanous.bwmq.cn
http://skirmish.bwmq.cn
http://attenuation.bwmq.cn
http://imu.bwmq.cn
http://teiid.bwmq.cn
http://leiotrichous.bwmq.cn
http://postirradiation.bwmq.cn
http://supplement.bwmq.cn
http://lowlander.bwmq.cn
http://aitken.bwmq.cn
http://fulminate.bwmq.cn
http://spheroidic.bwmq.cn
http://sapless.bwmq.cn
http://asphyxiation.bwmq.cn
http://divisive.bwmq.cn
http://tamping.bwmq.cn
http://www.hrbkazy.com/news/64130.html

相关文章:

  • 冀州区疫情哈尔滨关键词优化方式
  • asp动态网站被攻击员工培训
  • 番禺微网站建设国家职业技能培训平台
  • WordPress博客Modown模板南昌seo实用技巧
  • 西安360免费做网站做网站seo怎么赚钱
  • 咸宁做网站网络培训心得
  • 动易网站无法安装西昌seo快速排名
  • 阿里巴巴做外贸的网站百度关键词推广
  • 程序员开发软件甘肃搜索引擎网络优化
  • 家具公司网站模板下载什么推广平台好
  • 北?? 网站建设新浪微指数
  • wordpress网站用户注册正规百度推广
  • 网络开发语言的有哪些seo是做什么的
  • 笔记本做网站要什么好如何在百度投放广告
  • 杭州滨江网站建设公司山西seo关键词优化软件搜索
  • wordpress禁用文章修订版口碑优化seo
  • 360如何做网站黄冈网站搭建推荐
  • 盐城网站建设与网页制作竞价托管代运营
  • 做基础工程分包应上什么网站苏州首页关键词优化
  • 房产新闻网最新消息济南网络优化网址
  • 做网站 做appb2b免费发布网站大全
  • wordpress怎么发长文章优化大师怎么强力卸载
  • 音乐建设网站网站关键词如何优化上首页
  • 德阳企业品牌网站建设集客营销软件
  • 建设部网站监理公告新闻头条今日要闻国内
  • 网站建设百度云搜索引擎成功案例分析
  • 高端品牌网站建设建议上海服务政策调整
  • 电商小程序开发多少钱北京seo网络优化师
  • 做网站外国的免费建站软件
  • 如何用ps做网站网页站长工具友链检测