1 2 3 4 5 ··· 22 下一页
摘要: 链接:https://www.nowcoder.com/acm/contest/211/F来源:牛客网 时间限制:C/C++ 2秒,其他语言4秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 时间限制:C/C++ 2秒,其他语言4秒 空间限 阅读全文
posted @ 2018-10-20 11:11 hinata_hajime 阅读(238) 评论(0) 推荐(0) 编辑
摘要: "Let it Bead" company is located upstairs at 700 Cannery Row in Monterey, CA. As you can deduce from the company name, their business is beads. Their 阅读全文
posted @ 2018-10-15 20:32 hinata_hajime 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 题目背景 这是一道模板题 可以使用bitset,CDQ分治,K-DTree等方式解决。 题目描述 有 nn 个元素,第 ii 个元素有 a_iai​、b_ibi​、c_ici​ 三个属性,设 f(i)f(i) 表示满足 a_j \leq a_iaj​≤ai​ 且 b_j \leq b_ibj​≤bi 阅读全文
posted @ 2018-10-13 11:16 hinata_hajime 阅读(475) 评论(0) 推荐(0) 编辑
摘要: On a grid map there are n little men and n houses. In each unit time, every little man can move one unit step, either horizontally, or vertically, to 阅读全文
posted @ 2018-10-13 00:23 hinata_hajime 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Cows are such finicky eaters. Each cow has a preference for certain foods and drinks, and she will consume no others. Farmer John has cooked fabulous 阅读全文
posted @ 2018-10-13 00:18 hinata_hajime 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/acm/contest/202/A来源:牛客网 题目描 深度学习算法很大程度上基于矩阵运算。例如神经网络中的全连接,本质上是一个矩阵乘法;而卷积运算也通常是用矩阵乘法来完成的。有一些科研工作者为了让神经网络的计算更快捷,提出了二值化网络的方法, 阅读全文
posted @ 2018-10-06 23:42 hinata_hajime 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 题意:给你一个字符串,并让他不断的进行循环左移,问字典序最小的字符串是第几个,出现的次数是多少,最大的字符串是第几个,出现的次数是多少? 分析:最小字符串和最大字符串用最小表示法即可找到,出现的次数,就是循环节循环的次数,用KMP的Nextd的数组得到 代码如下: 阅读全文
posted @ 2018-09-30 10:37 hinata_hajime 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Volodya is an odd boy and his taste is strange as well. It seems to him that a positive integer number is beautiful if and only if it is divisible by 阅读全文
posted @ 2018-09-21 22:53 hinata_hajime 阅读(158) 评论(0) 推荐(0) 编辑
摘要: For a decimal number x with n digits (A nA n-1A n-2 ... A 2A 1), we define its weight as F(x) = A n * 2 n-1 + A n-1 * 2 n-2 + ... + A 2 * 2 + A 1 * 1. 阅读全文
posted @ 2018-09-21 22:29 hinata_hajime 阅读(147) 评论(0) 推荐(0) 编辑
摘要: There are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Some of these texts even include maps of parts of the i 阅读全文
posted @ 2018-09-18 12:39 hinata_hajime 阅读(103) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 22 下一页