上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
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
posted @ 2019-02-25 14:21 白雪儿 Views(381) Comments(1) Diggs(0) Edit
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
posted @ 2019-02-24 10:58 白雪儿 Views(151) Comments(0) Diggs(0) Edit
链接:https://www.nowcoder.com/acm/contest/206/A来源:牛客网 Birthday Birthday 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 1048576K,其他语言2097152K 64bit IO Format: %lld 题目描述 Read More
posted @ 2018-10-06 23:36 白雪儿 Views(442) Comments(0) Diggs(1) Edit
unique()是C++标准库函数里面的函数,其功能是去除相邻的重复元素(只保留一个),所以使用前需要对数组进行排序。 代码: Read More
posted @ 2018-10-06 23:23 白雪儿 Views(167) Comments(0) Diggs(0) Edit
SPFA :求一个点到其他所有点的最短路,时间快。队列处理,队头元素所有相邻的点进行松弛,若某个相邻的点松弛成功,则将其入队。直到队列为空时算法结束。 例题 hdu 2680 代码: 参考博客:https://www.cnblogs.com/weiyuan/p/5697899.html Read More
posted @ 2018-10-06 16:26 白雪儿 Views(1127) Comments(0) Diggs(0) Edit
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
posted @ 2018-10-05 17:00 白雪儿 Views(348) Comments(0) Diggs(0) Edit
链接:https://www.nowcoder.com/acm/contest/205/L来源:牛客网参考博客:https://blog.csdn.net/HTallperson/article/details/82943889 数论之神 数论之神 时间限制:C/C++ 1秒,其他语言2秒 空间限制 Read More
posted @ 2018-10-05 16:49 白雪儿 Views(278) Comments(0) Diggs(0) Edit
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
posted @ 2018-10-04 18:10 白雪儿 Views(409) Comments(0) Diggs(0) Edit
链接:https://www.nowcoder.com/acm/contest/204/A来源:牛客网 深度学习 深度学习 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 1048576K,其他语言2097152K Special Judge, 64bit IO Format: %l Read More
posted @ 2018-10-04 18:04 白雪儿 Views(330) Comments(0) Diggs(0) Edit
链接:https://www.nowcoder.com/acm/contest/203/D来源:牛客网 Shopping Shopping 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 524288K,其他语言1048576K 64bit IO Format: %lld 题目描述 Read More
posted @ 2018-10-03 15:56 白雪儿 Views(438) Comments(3) Diggs(0) Edit
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页