上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 57 下一页
摘要: G.LCS Revised The longest common subsequence is a well known DP problem: given two strings A and B, one has to compute the maximum length of a subsequ 阅读全文
posted @ 2018-01-22 16:04 ZERO- 阅读(289) 评论(0) 推荐(0)
摘要: E - Restore Given a matrix A of size N * N. The rows are numbered from 0 to N-1, the columns are numbered from 0 to N-1. In this matrix, the sums of e 阅读全文
posted @ 2018-01-22 16:00 ZERO- 阅读(251) 评论(0) 推荐(0)
摘要: 日常训练题解 D.Triangle Formation You are given N wooden sticks. Your task is to determine how many triangles can be made from the given sticks without brea 阅读全文
posted @ 2018-01-22 15:59 ZERO- 阅读(436) 评论(0) 推荐(0)
摘要: 最近做到好多概率,组合数,全排列的题目,本咸鱼不会啊,我概率论都挂科了。。。 这个题学到了一个康托展开,有点用,瞎写一下。。。 康托展开: 适用对象:没有重复元素的全排列。 把一个整数X展开成如下形式: X=a[n]*(n-1)!+a[n-1]*(n-2)!+...+a[i]*(i-1)!+...+ 阅读全文
posted @ 2018-01-22 15:31 ZERO- 阅读(677) 评论(0) 推荐(0)
摘要: I-找数字个数 链接:https://www.nowcoder.com/acm/contest/67/I来源:牛客网、时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32768K,其他语言65536K 64bit IO Format: %lld I-找数字个数 题目描述 lulu喜欢 阅读全文
posted @ 2018-01-22 11:35 ZERO- 阅读(270) 评论(0) 推荐(0)
摘要: H-方块与收纳盒 链接:https://www.nowcoder.com/acm/contest/67/H来源:牛客网时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 32768K,其他语言65536K64bit IO Format: %lld 题目描述 现在有一个大小n*1的收纳盒,我 阅读全文
posted @ 2018-01-22 11:33 ZERO- 阅读(260) 评论(0) 推荐(0)
摘要: F-大吉大利,今晚吃鸡——跑毒篇 链接:https://www.nowcoder.com/acm/contest/67/F来源:牛客网时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 32768K,其他语言65536K64bit IO Format: %lld 题目描述 现在有一款很火的 阅读全文
posted @ 2018-01-22 11:31 ZERO- 阅读(264) 评论(0) 推荐(0)
摘要: 这场打的超级烂,代码写的错误很智障,A题忘记写负号,F想的少了一个1,I写的也很智障,输入忘记加&,程序直接跑崩了。。。 A-大吉大利,今晚吃鸡——枪械篇 链接:https://www.nowcoder.com/acm/contest/67/A来源:牛客网时间限制:C/C++ 1秒,其他语言2秒 空 阅读全文
posted @ 2018-01-22 11:29 ZERO- 阅读(776) 评论(0) 推荐(0)
摘要: 这个题就是二进制,找两个数相应的二进制相对应的位置上数不同的最多的个数。异或写就可以。 一开始还想麻烦了,找出来最大的偶数和最大的奇数,最小的偶数和最小的奇数,但是这样想考虑的不全。因为范围比较小,直接遍历都比较一遍就可以。 代码: 今天其实超级难过,因为我的概率论挂了。。。 明天开始复习英语,后天 阅读全文
posted @ 2018-01-15 21:17 ZERO- 阅读(238) 评论(0) 推荐(0)
摘要: 这个题真的是超级超级水啊,哈哈哈哈哈哈。不要被题面吓到,emnnn,就这样。。。 代码: 阅读全文
posted @ 2018-01-15 21:15 ZERO- 阅读(468) 评论(0) 推荐(0)
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 57 下一页