码迷,mamicode.com
首页 >  
搜索关键字:codevs 1503 愚蠢的宠物 解题报告    ( 3864个结果
LeetCode 985 Sum of Even Numbers After Queries 解题报告
题目要求 We have an array A of integers, and an array queries of queries. For the i-th query val = queries[i][0], index = queries[i][1], we add val to A[i ...
分类:其他好文   时间:2019-02-08 16:01:06    阅读次数:546
POJ3349 snowflake snow snowflakes
正解:hash 解题报告: 传送门! 这题是个,比较经典的hash了 首先想暴力,那就是每插入一个雪花就对每个雪花进行比较,比较是直接枚举顶点顺逆时针地枚举,这样儿,,,布吉岛过不过得去看起来O(n)过得去的样子欸,,, 但是反正这不重要,当做过不去的样子好辣 那过不去就想优化嘛 看一下我们上面的暴 ...
分类:其他好文   时间:2019-02-08 10:22:54    阅读次数:186
LeetCode 811 Subdomain Visit Count 解题报告
题目要求 A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcod ...
分类:其他好文   时间:2019-02-07 23:54:35    阅读次数:318
LeetCode 867 Transpose Matrix 解题报告
题目要求 Given a matrix A, return the transpose of A. The transpose of a matrix is the matrix flipped over it's main diagonal, switching the row and colum ...
分类:其他好文   时间:2019-02-05 10:37:29    阅读次数:192
AtCoder Beginner Contest 117 解题报告
果然abc都是手速场。 倒序开的qwq。 D题因为忘记1e12二进制几位上界爆了一发。 A Entrance Examination 就是除一下就行了。。。 看样例猜题意系列。 B Polygon 他都把定理给你了。。。 你直接按他的意思模拟就好,数组都不用开 cpp include int mai ...
分类:其他好文   时间:2019-02-03 22:10:44    阅读次数:246
LeetCode 908 Smallest Range I 解题报告
题目要求 Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i]. After this process, we have some ar ...
分类:其他好文   时间:2019-02-03 10:42:23    阅读次数:195
LeetCode 883 Projection Area of 3D Shapes 解题报告
题目要求 On a N * N grid, we place some 1 * 1 * 1 cubes that are axis-aligned with the x, y, and z axes. Each value v = grid[i][j] represents a tower of v ...
分类:其他好文   时间:2019-02-02 10:33:48    阅读次数:205
LeetCode 解题报告
题目要求 Given an n-ary tree, return the postorder traversal of its nodes' values. 题目分析及思路 题目给出一棵N叉树,要求返回结点值的后序遍历。可以使用递归的方法做。因为是后序遍历,所以最后加入根结点的值。 python代码 ...
分类:其他好文   时间:2019-02-01 16:24:16    阅读次数:168
LeetCode 700 Search in a Binary Search Tree 解题报告
题目要求 Given the root node of a binary search tree (BST) and a value. You need to find the node in the BST that the node's value equals the given value. ...
分类:其他好文   时间:2019-01-31 13:17:33    阅读次数:163
bugkuctf web部分(前8题)解题报告
写点东西记录一下,方便以后查看。 http://ctf.bugku.com/challenges web2: 签到题,花里胡哨的果断去看源码。。。。。 计算器: 发现只能输入一个数字,肯定是对提交的内容做了长度限制,打开开发者工具把长度改一下(如果好运的话如图就直接出结果) web基础$_GET: ...
分类:Web程序   时间:2019-01-30 01:28:11    阅读次数:216
3864条   上一页 1 ... 22 23 24 25 26 ... 387 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!