![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SCAU个人排位
璃灵
这个作者很懒,什么都没留下…
展开
-
SCAU2020春季个人排位赛div2 #2 H
https://vjudge.net/contest/357844#problem/H 素数打表,一个个搜 #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int p[20000],cow[20010],c[20010]; void prim...原创 2020-02-28 18:06:26 · 149 阅读 · 0 评论 -
SCAU2020春季个人排位赛div2 #2 G
https://vjudge.net/contest/357844#problem/G 按照扣分多少排序降序,如果扣分相同就按截止日期升序。假设截止日期当天写,例如4天就在第四天写,如果第四天已经有安排,就往前找到空余的日子安排进去 #include <iostream> #include <cstdio> #include <algorithm> #inclu...原创 2020-02-28 17:20:10 · 137 阅读 · 0 评论 -
SCAU2020春季个人排位赛div2 #2
https://vjudge.net/contest/357844#problem/F 还没做原创 2020-02-28 12:51:34 · 138 阅读 · 0 评论 -
SCAU2020春季个人排位赛div2 #2 E
There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to each other. We say two village A and B are connected, if and only if t...原创 2020-02-28 12:48:07 · 96 阅读 · 0 评论 -
SCAU2020春季个人排位赛div2 #2 D
https://vjudge.net/contest/357844#problem/D 还没做…原创 2020-02-28 12:12:40 · 120 阅读 · 0 评论 -
SCAU2020春季个人排位赛div2 #2 C
https://vjudge.net/contest/357844#problem/C 懒得复制了 模拟题,用stl应该很快但是我不会qwq硬写出来了,我真棒。 #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int ao[1000000],b...原创 2020-02-28 12:08:13 · 145 阅读 · 0 评论 -
SCAU2020春季个人排位赛div2 #2 B
There are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out how many different religions students in your university beli...原创 2020-02-28 11:56:43 · 123 阅读 · 0 评论 -
SCAU2020春季个人排位赛div2 #2 A
Pashmak decided to give Parmida a pair of flowers from the garden. There are n flowers in the garden and the i-th of them has a beauty number bi. Parmida is a very strange girl so she doesn’t want to ...原创 2020-02-28 11:27:08 · 164 阅读 · 0 评论 -
SCAU2020春季个人排位赛div2 #1 F
Little girl Susie went shopping with her mom and she wondered how to improve service quality. There are n people in the queue. For each person we know time ti needed to serve him. A person will be dis...原创 2020-02-27 14:18:08 · 172 阅读 · 0 评论 -
SCAU2020春季个人排位赛div2 #1 E
https://vjudge.net/contest/357812#problem/E 复制排版有问题,算了。 对字符串的处理,感觉用C++会好写一点,C好麻烦 #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> char re[110][110]...原创 2020-02-27 14:14:03 · 106 阅读 · 0 评论 -
SCAU2020春季个人排位赛div2 #1 A
在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗? Input 输入包括多组数据。每组数据第一行是两个整数N、M(N<=100,M<=10000),N表示成都的大街上有几个路口,标号为1的路口是商店所在地,标号为N的路口是赛场所在...原创 2020-02-26 16:53:30 · 110 阅读 · 1 评论 -
SCAU2020春季个人排位赛div2 #1 D
扫雷游戏是晨晨和小璐特别喜欢的智力游戏,她俩最近沉迷其中无法自拔。 该游戏的界面是一个矩阵,矩阵中有些格子中有一个地雷,其余格子中没有地雷。 游戏中,格子可能处于己知和未知的状态。如果一个己知的格子中没有地雷,那么该 格子上会写有一个一位数,表示与这个格子八连通相邻的格子中地雷总的数量。 现在,晨晨和小璐在一个3行N列(均从1开始用连续正整数编号)的矩阵中进 行游戏,在这个矩阵中,第2行的格子全部...原创 2020-02-27 10:10:00 · 166 阅读 · 0 评论 -
SCAU2020春季个人排位赛div2 #1 B
给出正整数 n 和 m,统计满足以下条件的正整数对 (a,b) 的数量: 1≤a≤n,1≤b≤m; a×b 是 2016 的倍数。 Input 输入包含不超过 30 组数据。 每组数据包含两个整数 n,m (1≤n,m≤10e9). Output 对于每组数据,输出一个整数表示满足条件的数量。 Sample Input 32 63 2016 2016 1000000000 1000000000...原创 2020-02-27 09:48:09 · 200 阅读 · 0 评论 -
SCAU2020春季个人排位赛div2 #1 C
https://vjudge.net/contest/357812#problem/C 题面复制不过来 就是在可以删除一个数的前提下,求一个数列里最大值和最小值的差值最小 会影响差值的只有当前最大值和最小值,所以删除只用考虑最大值和最小值。 排序,然后比较删最大值和删最小值得出来的差值哪个比较小。 #include <iostream> #include <cstdio> ...原创 2020-02-27 09:58:16 · 140 阅读 · 0 评论