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

网站上海备案查询系统江西头条新闻今天

网站上海备案查询系统,江西头条新闻今天,seo优化网站多少钱,欧美购物网站排名PTA | 程序设计类实验辅助教学平台 目录 跨年-1 特殊的年份 跨年-2 穿什么衣服 跨年-3 按比例发奖 跨年-4 骗钱的手机游戏 跨年-5 找年兽 跨年-6 新年烟花 跨年-7 奇因子之和 跨年-8 翻箱倒柜#xff08;复刻#xff09; 跨年-1 特殊的年份 直接枚举就行了 signed ma…PTA | 程序设计类实验辅助教学平台 目录 跨年-1 特殊的年份 跨年-2 穿什么衣服 跨年-3 按比例发奖 跨年-4 骗钱的手机游戏 跨年-5 找年兽 跨年-6 新年烟花 跨年-7 奇因子之和 跨年-8 翻箱倒柜复刻 跨年-1 特殊的年份 直接枚举就行了 signed main() {ios_base::sync_with_stdio(0); cin.tie(0), cout.tie(0);for (int i 1; i 1e9; i) {if (i % 23 0 i % 11 0 i % 8 0) {printf(%04d is a special year!, i);return 0;}} } 跨年-2 穿什么衣服 if else 讨论一下 signed main() {ios_base::sync_with_stdio(0); cin.tie(0), cout.tie(0);int n;cin n;if (n 15 n 30) {cout n Mama;}else if (n -10 n 15) {cout n YuRongFu;}else {cout n Zhai;} } 跨年-3 按比例发奖 按比例 n/10  n/40  n划分 signed main() {ios_base::sync_with_stdio(0); cin.tie(0), cout.tie(0);int n, m;cin n m;while (m--){int x;cin x;if (x n / 10) {cout 1 \n;}else if(xn/10*4){cout 2 \n;}else {cout 3 \n;}} } 跨年-4 骗钱的手机游戏 从左到右,如果是不带的就两个合成下一个带的3个合成下一个,同时取模的话就是剩下合成不了的 signed main() {ios_base::sync_with_stdio(0); cin.tie(0), cout.tie(0);int cnt 0;for (int i 1; i 9; i) {int x;cin x;x cnt;if (i 9) {cout x;return 0;}if (i 1) {cnt x / 2;cout x % 2 ;}else {cnt x / 3;cout x % 3 ;}} } 跨年-5 找年兽 本来想写kmp发现这复杂度直接暴力匹配就能过了 signed main() {ios_base::sync_with_stdio(0); cin.tie(0), cout.tie(0);string s;getline(cin, s);int n s.size();s ;int f inf, cnt 0;for (int i 0; i n; i) {if (s[i] N s[i 1] i s[i 2] a s[i 3] n) {cnt;f min(f, i);}}if (!cnt) {cout 0 -1 ;}else {cout cnt f \n;} } 跨年-6 新年烟花 直接枚举矩阵上的每一个点从每一个点的上下左右出发 看看能发现多少烟花同时如果找身高比h大的就直接结束最后更新一下最优解和总个数 const int N 50 5; int a[N][N]; signed main() {ios_base::sync_with_stdio(0); cin.tie(0), cout.tie(0);int n, m, h;cin n m h;for (int i 1; i n; i){for (int j 1; j m; j) {cin a[i][j];}}PII res { 0,0 };int tot 0;int maxx 0;for (int i 1; i n; i) {for (int j 1; j m; j) {int cnt 0;if (a[i][j] 0) {for (int k j 1; k m; k) {if (a[i][k] h) break;else {if (a[i][k] 0) {cnt;}}}for (int k j - 1; k 1; k--) {if (a[i][k] h) break;else {if (a[i][k] 0) {cnt;}}}for (int k i 1; k n; k) {if (a[k][j] h) break;else {if (a[k][j] 0) {cnt;}}}for (int k i - 1; k 1; k--) {if (a[k][j] h) break;else {if (a[k][j] 0) {cnt;}}}if (cnt 3) {tot;}if (cnt maxx) {maxx cnt;res { i-1,j-1 };}}}}cout tot \n;cout res.first res.second; } 跨年-7 奇因子之和 直接分解质因数把奇因子存入vector中最后再对vector进行排序 如果只有一个数就取他的最大值 如果不止一个数就把他的最大值删掉这样vector.back()就是次大值了 signed main() {ios_base::sync_with_stdio(0); cin.tie(0), cout.tie(0);int n;cin n;int res 0;for (int i 1; i n; i) {int x;cin x;vectorintp;for (int i 1; i sqrt(x); i) {if (x % i 0) {if (i 1) {p.push_back(i);}if ((x / i) 1) {if (p.size() p.back() ! (x / i)) {p.push_back(x / i);}}}}sort(p.begin(), p.end());if (p.size() 1) {res p.back();}else {p.pop_back();res p.back();}}cout res \n; } 跨年-8 翻箱倒柜复刻 令P131 用一个hash记录a,b,c--(a * P * P b * P c)帮助我们快速匹配 再用一个map用来存放结果 const int P 131; mapint, pairint, stringmp; signed main() {ios_base::sync_with_stdio(0); cin.tie(0), cout.tie(0);int n;cin n;for (int i 1; i n; i) {int a, b, c;cin a b c;string s;cin s;int res a * P * P b * P c;mp[res] { i,s };}int k;cin k;while (k--){int a, b, c;cin a b c;int res a * P * P b * P c;if (mp.count(res)) {cout mp[res].first mp[res].second \n;}else {cout Not Found\n;}} }
http://www.zqtcl.cn/news/535381/

相关文章:

  • 西安做百度网站的制作网站公司选 择乐云seo
  • 网站优化建设河南手机模拟器
  • 网站建设运维标准深圳企业vi设计公司
  • 做网站怎么挣钱中小型企业网站建设
  • 深圳如何搭建建网站学校网站的建设与应用
  • 免费推广网站入口2023燕wordpress看图插件
  • 网站做不做301四川省住建设厅网站
  • 优化方案官网电子版一个网站做两个优化可以做吗
  • 企业网站排名提升软件智能优化上海网站制作的费用
  • 建分类信息网站西安高端模板建站
  • 南昌做网站哪家好成都三合一网站建设
  • 中国市政建设局网站做外单网站
  • 做本地网站赚钱吗wordpress 预约系统
  • 国外做名片网站优化网站最好的刷排名软件
  • 江西建设部网站网易企业邮箱密码格式
  • 网站哪个服务器好软装设计培训机构
  • 夜间正能量网站入口免费下载2022最新泛站群程序
  • 网站建设个人简历wordpress手写字体
  • 专门做商标的网站有哪些wordpress新文章加new
  • 全国商务网站大全木樨园网站建设公司
  • 网站搜索排名和什么有关系嘉兴建设局网站
  • 创建免费网站注意事项电商网站建设价格低
  • 网站开发接私单企业软文范例
  • 浙江省建设培训中心网站首页wordpress如何修改上传文件大小
  • 网站建设需要什么语言学完html怎么做网站
  • 国内外网站建设wordpress评论嵌套样式修改
  • 广州网站制作系统市场监督管理局投诉电话
  • 局域网建网站的详细步骤海南省建设网站的公司
  • 长沙市网站建设推广绵阳网站推广排名
  • 美容手机网站模板招标