
C++
---SUN---
再小的帆也能远航
展开
-
ccf-csp认证期末预测之最佳阈值(2020年12月13日)
期末预测之最佳阈值 题目描述 具体来说,顿顿评估了 ???? 位同学上学期的安全指数,其中第 ????(1≤????≤????)位同学的安全指数为 ????????,是一个 [0,108] 范围内的整数;同时,该同学上学期的挂科情况记作 ????????????????????????????∈0,1,其中 0 表示挂科、1 表示未挂科。 相应地,顿顿用 ????????????????????????????????(????) 表示根据阈值 ???? 将安全指数 ???? 转化为的具体预测结果。 如果原创 2020-12-15 16:21:51 · 8756 阅读 · 14 评论 -
ccf-csp期末预测之安全指数(2020年12月13日)
第一题 送分题,理解题目后,乘积之和就好了 #include<stdio.h> #include<algorithm> #include<queue> #include<stack> using namespace std; const int maxn=1e5+5; typedef long long LL; int s1[maxn]; int n; int main() { scanf("%d",&n); int a,b;原创 2020-12-15 16:00:53 · 710 阅读 · 1 评论