未来是你们的

#include <iostream>
using namespace std;int main()
{printf(R"(14    ChenMingjian
Bronze
Peking University
Microsoft|Meituan15    YuKai
Silver
None
Huanle Entertainment|Bytedance16    YingShangwei
Silver
Zhejiang University
Huanle Entertainment|One Smile17    HuangLei
Gold
None
Alibaba18    ZhangYehao
Silver
None
Bytedance19    WangZichao
Gold
None
Alibaba20    YangChengyi
Waiting
None
None)");
}

学习使我快乐

#include <iostream>
#include <map>
using namespace std;map<string, string> ma;int main()
{ma["gcd"] = "Greatest common factor";ma["Fast exponentiation algorithm"] = "Fast exponentiation";ma["Disjoint Set Union"] = "Element grouping";ma["Dijkstra"] = "Shortest path";ma["kmp"] = "Pattern string matching";ma["manacher"] = "Palindrome";ma["prim"] = "Minimum spanning tree";ma["Hungarian algorithm"] = "Bipartite graph matching";ma["segment tree"] = "Interval maintenance";ma["Nim"] = "game";ma["Polynomial"] = "Dogs don't learn";int _; cin >> _; cin.get();while (_ -- ){string s; getline(cin, s);cout << ma[s] << endl;}
}

埃辛诺斯战刃

#include <iostream>
using namespace std;int main()
{int n, m; scanf("%d%d", &n, &m);for (int i = 1; i <= n; i ++ ){for (int j = 1; j <= i; j ++ )cout << '*';cout << endl;}for (int i = 1; i <= m; i ++ ){for (int j = 1; j <= n - 1; j ++ )cout << ' ';cout << '*' << endl;}for (int i = 1; i <= n; i ++ ){for (int j = 1; i + j <= n + 1; j ++ )cout << '*';cout << endl;}
}

神之罚

#include <iostream>
using namespace std;const int N = 3010;typedef long long ll;ll row[N], col[N];
ll w[N][N];int main()
{int n, m; scanf("%d%d", &n, &m);for (int i = 0; i < n; i ++ )for (int j = 0; j < m; j ++ ){scanf("%lld", &w[i][j]);row[i] += w[i][j];col[j] += w[i][j];}ll mx = 0;for (int i = 0; i < n; i ++ )for (int j = 0; j < m; j ++ )mx = max(mx, row[i] + col[j] - w[i][j]);cout << mx;
}

隐藏的南通

#include <iostream>
#include <algorithm>
using namespace std;const int N = 1e5 + 10;typedef pair<int, int> PII;PII a[N];int main()
{int n; scanf("%d", &n);for (int i = 0; i < n && scanf("%d", &a[i].first); i ++ );for (int i = 0; i < n && scanf("%d", &a[i].second); i ++ ){if (a[i].first < a[i].second)swap(a[i].first, a[i].second);}sort(a, a + n, greater<PII>());int ans = 1e9;int mx = a[0].second, mi = a[n - 1].first;for (int i = 0; i < n; i ++ ){ans = min(ans, max(mx, a[i].first) - mi);mx = max(mx, a[i].second);mi = min(mi, a[i].second);}cout << ans;
}

一决01(again)

#include <iostream>
using namespace std;const int N = 1010;bool st[N];int main()
{for (int i = 1; i <= 1000; i ++ ){for (int j : {1, 2, 9, 20, 24}){if (i >= j && st[i - j] == false)st[i] = true;}}int _; scanf("%d", &_);while (_ -- ){int x; scanf("%d", &x);if (x > 1000) x = x % 500 + 500;if (st[x]) puts("GuaGua shi 1!CeCe shi 0!");else puts("CeCe shi 1!GuaGua shi 0!");}
}

策策学长的排位日志

#include <iostream>
using namespace std;int main()
{int n, p, q; cin >> n >> p >> q;int cnt = 0;for (int _ = 0; _ < n; _ ++ ){int kk, dd, aa; cin >> kk >> dd >> aa;int k, d, a;int cntk = 0, cntd = 0;bool ok = true;double kda = 0;if (dd != 0) kda = (kk + aa) * 1.0 / dd;cntk += kk, cntd += dd;for (int i = 0; i < 4; i ++ ){cin >> k >> d >> a;cntk += k, cntd += d;if ((k + a) * 1.0 / d > kda) ok = false;}if (dd == 0) ok = true;if (cntk >= cntd){if (ok) cnt += 2 * p;else cnt += p;}else{if (!ok){if (cnt < 100) cnt -= q;cnt = max(cnt, 0);}}//        cout << cntk << ' ' << cntd << endl;}if (cnt >= 100) cout << "YES";else cout << "NO";
}

zby 大小姐想让 zyx 学姐告白

#include <iostream>
using namespace std;int main()
{int n; scanf("%d", &n);int cnt5 = 0, cnt2 = 0, cnt0 = 0;for (int i = 0, x; i < n && scanf("%d", &x); i ++ ){if (x == 5) cnt5 ++ ;else if (x == 2) cnt2 ++ ;else if (x == 0) cnt0 ++ ;}cout << min(cnt5, min(cnt2, cnt0));
}

zby 大小姐想让 zyx 学姐告白之大反派 ycy

#include <iostream>
using namespace std;int main()
{int n; scanf("%d", &n);int cnt5 = 0, cnt2 = 0, res = 0;for (int i = 0, x; i < n && scanf("%d", &x); i ++ ){if (x == 5) cnt5 ++ ;else if (x == 2 && cnt5) cnt5 -- , cnt2 ++ ;else if (x == 0 && cnt2) cnt2 -- , res ++ ;}cout << res;
}

至高无上的教皇

#include <iostream>
using namespace std;const int N = 3e3 + 10;int h[N], cnt[N];int main()
{int n; scanf("%d", &n);for (int i = 0; i < n && scanf("%d", &h[i]); i ++ );for (int i = 0; i < n; i ++ ){double mx;for (int j = i + 1; j < n; j ++ ){double t = (h[j] - h[i]) * 1.0 / (j - i);if (j == i + 1) cnt[i] ++ , cnt[j] ++ , mx = t;else if (t > mx){mx = t;cnt[i] ++ , cnt[j] ++ ;}}}for (int i = 0; i < n; i ++ ) printf("%d ", cnt[i]);
}

教皇的达拉崩巴

#include <iostream>
#include <cmath>
using namespace std;typedef long long ll;int main()
{int _; scanf("%d", &_);while (_ -- ){ll x, y; scanf("%lld%lld", &x, &y);ll res = sqrt(x * y);if (res * res == x * y) puts("zhl he zwc tie tie");else puts("zyx he zby tie tie");}
}

浙江农林大学2021年新生杯程序设计竞赛(同步赛)相关推荐

  1. 牛客练习-哈尔滨理工大学21级新生程序设计竞赛(同步赛)

    比赛链接:哈尔滨理工大学21级新生程序设计竞赛(同步赛) 文章目录 前言 正文 A.考试周破防 B.咖啡店 C.kiki和bob玩取石子 D.猴王kiki分桃 E.很二的拆分 F.构造字符串 G.信号 ...

  2. “科林明伦杯”哈尔滨理工大学第十届程序设计竞赛(同步赛) 题解

    "科林明伦杯"哈尔滨理工大学第十届程序设计竞赛(同步赛) 题解 萌新又来写题解啦 原题链接 B 减成一 题意:存在n个数,每次操作可以任选一个区间使得区间内的所有数字减一.问最少多 ...

  3. 2016广东工业大学新生杯决赛网络同步赛暨全国新生邀请赛

    2016广东工业大学新生杯决赛网络同步赛暨全国新生邀请赛 Ploblem A :   pigofzhou的巧克力棒 原题链接:http://gdutcode.sinaapp.com/problem.p ...

  4. 浙江财经大学第十四届程序设计竞赛命题感想

    题目和题解点这里:http://www.cnblogs.com/zufezzt/p/8648892.html 24号,学校一年一度的程序设计竞赛结束了,这一次是我和两个学弟命题的,还有一些人进行了题面 ...

  5. 2016广东工业大学新生杯决赛网络同步赛暨全国新生邀请赛 题解源码

    Problem A: pigofzhou的巧克力棒 Description 众所周知,pigofzhou有许多妹子.有一天,pigofzhou得到了一根巧克力棒,他想把这根巧克力棒分给他的妹子们.具体 ...

  6. 2021年广东工业大学第11届腾讯杯新生程序设计竞赛(同步赛)错题笔记

    目录: 题目链接 A 比比谁更大 B 过生日 D 机器人 G 拼牛牛 I 史莱姆 J 水题 K 烧烤丝瓜 L 歪脖子树下的灯 题目链接 A 比比谁更大 题目描述 在一个夜黑风高的晚上,牛哥哥吃完心爱的 ...

  7. 哈尔滨理工大学21级新生程序设计竞赛(同步赛)错题笔记

    目录: 新生赛题目链接 C kiki和bob玩取石子 E 很二的拆分 F 构造字符串 G 信号之旅 H 小球滚动 I kiki看球赛 J 跳一跳 K Jay的小迷弟 L 翻转卡片 新生赛题目链接 C ...

  8. “科林明伦杯”哈尔滨理工大学第十届程序设计竞赛(同步赛)---全题目+题解

    文章目录 A.点对最大值 B.减成一 C.面积 D.扔硬币 E.赛马 F.三角形 G.养花 H.直线 I.字典序 J.最大值 A.点对最大值 链接:https://ac.nowcoder.com/ac ...

  9. “科林明伦杯”哈尔滨理工大学第十届程序设计竞赛(同步赛) F

    F 三角形 链接:https://ac.nowcoder.com/acm/contest/5758/F 来源:牛客网 小明有一根长度为a的木棒,现在小明想将木棒分为多段(每段木棒长度必须为整数), 使 ...

最新文章

  1. 微服务测试之性能测试
  2. 检测数(二进制形式)中1的个数
  3. 【Cocosd2d实例教程七】Cocos2d实现超炫的粒子效果!!
  4. 外卖平台降费,能否成为“全村人的希望”?
  5. 二叉树的中序遍历_Go 刷 leetcode从前序与中序遍历序列构造二叉树
  6. Verilog中wire与reg类型的区别(转载自http://www.cnblogs.com/farbeyond/p/5204586.html)
  7. OC之protocol监听器的实现
  8. SyntaxError: Non-ASCII character '\xe7
  9. windows下安装cygwin以及SeismicUnix在cygwin下的安装(windows下安装linux环境,非虚拟机、非双系统)
  10. 利用python对excel文件进行操作_数据处理-对Excel文件读取和操作和存储(python版)...
  11. python基础教程是什么-python基础教程之python是什么?
  12. 编译Qtopia2.2.0
  13. 挑战性题目DSCT102:木板切割问题
  14. 通过Mach-O文件结构看iOS堆栈信息(函数地址与符号关联)
  15. java拦截通过url访问页面,必须通过登录页面访问目标页面
  16. 一次ORA-3136的处理
  17. 统计给定的n个数中,负数、零和正数的个数
  18. C语言假设银行一年存利
  19. flex中换行符的使用
  20. Pandas秘籍【第七章】

热门文章

  1. ABAP几种内表的操作
  2. 2、Power View—风骚的数据自动筛选
  3. 这个时代的年轻人,还能怎么逆袭
  4. SAP评估控制 Valuation control
  5. 2015年中国钢铁企业排名50强名单
  6. SAP采购订单抬头、行项目屏幕增强的两种方法
  7. 动态内表及动态ALV显示
  8. POPUP_TO_CONFIRM_STEP
  9. 在计算机中常用的数据表示方法有哪些,数据在计算机中的表示方法
  10. 计算机猜数游戏matlab,MATLAB课程设计报告猜数游戏设计