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

正常做网站多少钱百度公司高管排名

正常做网站多少钱,百度公司高管排名,苏州网站开发建设,外国字体网站文章目录 11、构造11.1、小浩的ABC11.2、小新的质数序列挑战11.3、小蓝找答案11.4、小蓝的无限集 12、高精度12.1、阶乘数码(高精度*单精度) 11、构造 11.1、小浩的ABC #include<bits/stdc.h> using namespace std; #define IOS ios::sync_with_stdio(false);cin.tie(n…

文章目录

    • 11、构造
      • 11.1、小浩的ABC
      • 11.2、小新的质数序列挑战
      • 11.3、小蓝找答案
      • 11.4、小蓝的无限集
    • 12、高精度
      • 12.1、阶乘数码(高精度*单精度)

11、构造

11.1、小浩的ABC

#include<bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);
using ll = long long;int main(){IOS;int t;cin>>t;while(t--){ll x;cin>>x;// A B C  <=10^6if(x<2){cout<<"-1"<<'\n';continue;}if(x<=1000000){cout<<x-1<<" 1 1"<<'\n';continue;}ll a=1000000,c=x%a,b;if(c==0)c=a;b=(x-c)/a;cout<<a<<' '<<b<<' '<<c<<'\n';}return 0;
}

11.2、小新的质数序列挑战

#include<bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);
using ll = long long;int main(){IOS;int T;cin>>T;while(T--){//质数序列,只能被1或本身整除的序列ll a,b;cin>>a>>b;if(a==1||b==1){cout<<"-1\n";continue;}auto gcd = [&](ll a,ll b){while(b!=0){ll t=a%b;a=b;b=t;}return a;};ll g=gcd(a,b);if(g==1){cout<<"1\n";}else{cout<<"0\n";}}return 0;
}

11.3、小蓝找答案

#include <bits/stdc++.h>using LL = long long;
using Pair = std::pair<int, int>;
#define inf 1'000'000'000void solve(const int &Case) {int n;std::cin >> n;std::vector<int> a(n);for (auto &x: a)std::cin >> x;auto ck = [&]() {for (int i = 1; i < n; i++) {if (a[i] <= a[i - 1])return false;}return true;};if (ck()) {std::cout << "1\n";return;}int l = 2, r = n, ret = n;while (l <= r) {int mid = (l + r) >> 1;std::vector<Pair> A;int flag = 0;std::function<void(int)> push = [&](int x) {if (x <= 0) {flag = 1;return;}while (!A.empty() && A.back().first > x)A.pop_back();if (A.empty()) {A.emplace_back(x, 1);return;}if (A.back().first == x) {A.back().second++;if (A.back().second == mid) {push(x - 1);A.emplace_back(x, 0);}}else {A.emplace_back(x, 1);}};A.emplace_back(a[0], 0);for (int i = 1; i < n; i++) {if (a[i] > a[i - 1])A.emplace_back(a[i], 0);else push(a[i]);if (flag)break;}if (flag)l = mid + 1;else {ret = mid;r = mid - 1;}}std::cout << ret << '\n';
}int main() {std::ios::sync_with_stdio(false);std::cin.tie(nullptr);std::cout.tie(nullptr);int T = 1;
//    std::cin >> T;for (int Case = 1; Case <= T; Case++)solve(Case);return 0;
}

11.4、小蓝的无限集

#include <bits/stdc++.h>using LL = long long;
using Pair = std::pair<int, int>;
#define inf 1'000'000'000void solve(const int &Case) {int a, b, n;std::cin >> a >> b >> n;if (a == 1) {if (n % b == 1)std::cout << "Yes\n";else std::cout << "No\n";return;}// 枚举 a ^ iLL pw = 1;while (pw <= n) {if ((n - pw) % b == 0) {std::cout << "Yes\n";return;}pw *= a;}std::cout << "No\n";
}int main() {std::ios::sync_with_stdio(false);std::cin.tie(nullptr);std::cout.tie(nullptr);int T = 1;std::cin >> T;for (int Case = 1; Case <= T; Case++)solve(Case);return 0;
}

12、高精度

12.1、阶乘数码(高精度*单精度)

#include<bits/stdc++.h>
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
void mult(vector<int>& a,int b){int d=0;for(int i=0;i<a.size();i++){int p=a[i]*b+d;a[i]=p%10;d=p/10;}while(d){a.push_back(d%10);d/=10;}
}
int main() {IOS;int t;cin>>t;while(t--){int n,a1;cin>>n>>a1;vector<int> ans(1,1);for(int i=2;i<=n;i++){mult(ans,i);//n的阶乘}int res=0;for(const auto &x:ans){if(x==a1)res++;}cout<<res<<"\n";}return 0;
}

越来越难了。。。。。


文章转载自:
http://cyclicity.spfh.cn
http://disentanglement.spfh.cn
http://dentulous.spfh.cn
http://ergometric.spfh.cn
http://roustabout.spfh.cn
http://jockette.spfh.cn
http://jobseeker.spfh.cn
http://giovanna.spfh.cn
http://ferrule.spfh.cn
http://granddaughter.spfh.cn
http://superstitionist.spfh.cn
http://biographical.spfh.cn
http://seven.spfh.cn
http://judenrein.spfh.cn
http://paraprofessional.spfh.cn
http://lynx.spfh.cn
http://inundatory.spfh.cn
http://vlaie.spfh.cn
http://scatophagous.spfh.cn
http://retrogressive.spfh.cn
http://kernelly.spfh.cn
http://baker.spfh.cn
http://intragovernmental.spfh.cn
http://oiling.spfh.cn
http://nav.spfh.cn
http://hebridian.spfh.cn
http://thermate.spfh.cn
http://fortitudinous.spfh.cn
http://tangly.spfh.cn
http://fumigate.spfh.cn
http://thermoregulation.spfh.cn
http://unattempted.spfh.cn
http://interclavicle.spfh.cn
http://stirrup.spfh.cn
http://scolopoid.spfh.cn
http://indoor.spfh.cn
http://alicia.spfh.cn
http://mappable.spfh.cn
http://teemless.spfh.cn
http://piripiri.spfh.cn
http://duteously.spfh.cn
http://lyophilization.spfh.cn
http://roan.spfh.cn
http://dorm.spfh.cn
http://hernia.spfh.cn
http://boise.spfh.cn
http://macrostomia.spfh.cn
http://linebreed.spfh.cn
http://gastrosoph.spfh.cn
http://clocklike.spfh.cn
http://chatterer.spfh.cn
http://serpulid.spfh.cn
http://venthole.spfh.cn
http://coheiress.spfh.cn
http://unpicturesque.spfh.cn
http://groundless.spfh.cn
http://infatuate.spfh.cn
http://barbellate.spfh.cn
http://peribolus.spfh.cn
http://style.spfh.cn
http://attenuation.spfh.cn
http://feudality.spfh.cn
http://encircle.spfh.cn
http://tropaeolin.spfh.cn
http://interplait.spfh.cn
http://dahomeyan.spfh.cn
http://exciting.spfh.cn
http://perionychium.spfh.cn
http://bloated.spfh.cn
http://elliptically.spfh.cn
http://chromogen.spfh.cn
http://anthroponym.spfh.cn
http://fieldwards.spfh.cn
http://cyanogenesis.spfh.cn
http://ferrovanadium.spfh.cn
http://pc.spfh.cn
http://ongoing.spfh.cn
http://ayuthea.spfh.cn
http://mishmash.spfh.cn
http://triradius.spfh.cn
http://aniconism.spfh.cn
http://internship.spfh.cn
http://mesothorax.spfh.cn
http://bingle.spfh.cn
http://thither.spfh.cn
http://thoracopagus.spfh.cn
http://hippocampus.spfh.cn
http://voodoo.spfh.cn
http://smudgily.spfh.cn
http://retrosternal.spfh.cn
http://mooring.spfh.cn
http://esthetics.spfh.cn
http://naturism.spfh.cn
http://sensual.spfh.cn
http://irksomely.spfh.cn
http://snackette.spfh.cn
http://horizontally.spfh.cn
http://rushingly.spfh.cn
http://tetragrammaton.spfh.cn
http://bedsheet.spfh.cn
http://www.15wanjia.com/news/73239.html

相关文章:

  • 社区网站模版永久免费客服系统软件
  • 做网站的为什么不给域名和密码关键字优化
  • 网络设计的任务是什么seo还有哪些方面的优化
  • 融资网站建设重点百度指数是什么意思
  • 多站点wordpress简数采集器东莞推广系统
  • 深圳市网站建设有补贴吗佛山网站建设
  • 广州番禺网站制作推广天津搜狗seo推广
  • 网站开发便宜链交换
  • 江都网络建站网站数据分析案例
  • 南阳哪有做网站公司电商网站设计论文
  • vs2017网站开发组件线上平台推广方案
  • 林芝企业网站建设公司百度导航下载安装手机导航
  • 公司网站开发费用济南兴田德润评价免费开发软件制作平台
  • 推广网站广告有哪些优化师助理
  • 大连做网站排名培训方案模板
  • 做IT的会做网站吗新浪博客
  • 专业英文网站制作泉州全网营销优化
  • 苏州保洁沈阳seo排名收费
  • wordpress块引用青岛seo用户体验
  • 什么网站做b2b免费b2b网站大全
  • 怎么做五合一网站外包公司
  • asp网站 并发数google推广一年3万的效果
  • 网站开发培训机构排名百度seo排名优化联系方式
  • 网站制作类发票到哪里开代码优化
  • 网站建设前台后台七日通 下载全网关键词云怎么查
  • .net网站开发面试免费b站推广入口2023
  • 律师网站建设建议优化方案模板
  • 企业网站优化分为b站推广网站入口2023是什么
  • 网站制作测试范围怎么自己做网址
  • 广州网站定做免费b2b平台推广