A - Diverse Team There are n students in a school class, the rating of the i-th student on Codehorses is ai. You have to form a team consisting of k s Read More
B - Reversing Encryption A string s of length n can be encrypted by the following algorithm: iterate over all divisors of n in decreasing order (i.e. Read More
链接:https://www.nowcoder.com/acm/contest/206/A来源:牛客网 Birthday Birthday 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 1048576K,其他语言2097152K 64bit IO Format: %lld 题目描述 Read More
unique()是C++标准库函数里面的函数,其功能是去除相邻的重复元素(只保留一个),所以使用前需要对数组进行排序。 代码: Read More
SPFA :求一个点到其他所有点的最短路,时间快。队列处理,队头元素所有相邻的点进行松弛,若某个相邻的点松弛成功,则将其入队。直到队列为空时算法结束。 例题 hdu 2680 代码: 参考博客:https://www.cnblogs.com/weiyuan/p/5697899.html Read More
A. Thickest Burger 1000ms 262144K ACM ICPC is launching a thick burger. The thickness (or the height) of a piece of club steak is AAA (1≤A≤100)(1 \le Read More
链接:https://www.nowcoder.com/acm/contest/205/L来源:牛客网参考博客:https://blog.csdn.net/HTallperson/article/details/82943889 数论之神 数论之神 时间限制:C/C++ 1秒,其他语言2秒 空间限制 Read More
NAIPC 2017 Yin and Yang Stones 75.39% 1000ms 262144K A mysterious circular arrangement of black stones and white stones has appeared. Ming has been ta Read More
链接:https://www.nowcoder.com/acm/contest/204/A来源:牛客网 深度学习 深度学习 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 1048576K,其他语言2097152K Special Judge, 64bit IO Format: %l Read More
链接:https://www.nowcoder.com/acm/contest/203/D来源:牛客网 Shopping Shopping 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 524288K,其他语言1048576K 64bit IO Format: %lld 题目描述 Read More