上一页 1 ··· 28 29 30 31 32
摘要: 思路等引自博客 https://blog.csdn.net/johnwayne0317/article/details/84928568 对数组a[7]: a[0]=1; = d[0] a[1]=1; = d[1]+d[0] a[2]=1; = d[2]+d[1]+d[0] a[3]=1; .... 阅读全文
posted @ 2019-06-13 09:23 liyexin 阅读(277) 评论(0) 推荐(0)
摘要: The king is left alone on the chessboard. In spite of this loneliness, he doesn't lose heart, because he has business of national importance. For exam 阅读全文
posted @ 2019-05-30 20:14 liyexin 阅读(294) 评论(0) 推荐(0)
摘要: You have a positive integer m and a non-negative integer s. Your task is to find the smallest and the largest of the numbers that have length m and su 阅读全文
posted @ 2019-05-24 10:56 liyexin 阅读(200) 评论(0) 推荐(0)
摘要: 本题地址 https://cn.vjudge.net/contest/302014#problem/L Median Time Limit: 1 Second Memory Limit: 65536 KB Recall the definition of the median of elements 阅读全文
posted @ 2019-05-18 20:59 liyexin 阅读(493) 评论(0) 推荐(0)
摘要: 相信大家都听说一个“百岛湖”的地方吧,百岛湖的居民生活在不同的小岛中,当他们想去其他的小岛时都要通过划小船来实现。现在政府决定大力发展百岛湖,发展首先要解决的问题当然是交通问题,政府决定实现百岛湖的全畅通!经过考察小组RPRush对百岛湖的情况充分了解后,决定在符合条件的小岛间建上桥,所谓符合条件, 阅读全文
posted @ 2019-04-02 20:48 liyexin 阅读(241) 评论(0) 推荐(0)
摘要: Wooden Sticks Problem Description There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be p 阅读全文
posted @ 2019-03-26 20:46 liyexin 阅读(95) 评论(0) 推荐(0)
摘要: D-div2是真水题,自己真菜哟。根据样例写了一下对应关系,就找到了一个规律,即不断更新最大值,若其与下标相等,ans++,就这样ac了;当然我必须要换个法子写,根据样例的规律写毕竟不怎么靠谱。 D-div2 Ivan recently bought a detective book. The bo 阅读全文
posted @ 2019-03-26 07:25 liyexin 阅读(119) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32