kZjPBD.jpg
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页
摘要: 题意 给出 NN 种零件,现在你可以用连续的一些零件组装成为一个产品,组装完你可以获得 ww 的价值,要求每种零件最多使用 KK 次并且每一个产品只能生产一个。问你最多可以获得的价值是多少。 思路 由于给出的 NN 很大, MM很小,那么显然,很多点都是没有用的,那么我们就可以将他们舍弃掉,只使用出 阅读全文
posted @ 2019-07-21 15:08 Through_The_Night 阅读(162) 评论(0) 推荐(0) 编辑
摘要: A prince of the Science Continent was imprisoned in a castle because of his contempt for mathematics when he was young, and was entangled in some math 阅读全文
posted @ 2019-07-18 15:19 Through_The_Night 阅读(232) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include using namespace std; #define rep(i,a,n) for (int i=a;i=a;i--) #define pb push_back #define mp make_p... 阅读全文
posted @ 2019-07-17 22:55 Through_The_Night 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 给你一个n*n的矩阵A,和一个m*m的矩阵B(m%2==1) B是卷积核,让你用B对A做t次卷积运算,并且对于A中的每一个元素计算出来的值要模2,所以A最后会是一个01矩阵。 问你经过t此后,A中有多少个元素=1 1<=t<=1e9,1<=n<=8,1<=m<=n SOLUTION: 二维矩阵展成1 阅读全文
posted @ 2019-07-17 17:51 Through_The_Night 阅读(243) 评论(0) 推荐(0) 编辑
摘要: Given a positive integers nn , Mobius function \mu(n)μ(n) is defined as follows: \displaystyle \mu(n) = \begin{cases} 1 &n = 1 \\ (-1)^k & n = p_1p_2\ 阅读全文
posted @ 2019-07-17 13:21 Through_The_Night 阅读(241) 评论(0) 推荐(0) 编辑
摘要: In a world where ordinary people cannot reach, a boy named "Koutarou" and a girl named "Sena" are playing a video game. The game system of this video 阅读全文
posted @ 2019-07-15 22:16 Through_The_Night 阅读(250) 评论(0) 推荐(0) 编辑
摘要: After Incident, a feast is usually held in Hakurei Shrine. This time Reimu asked Kokoro to deliver a Nogaku show during the feast. To enjoy the show, 阅读全文
posted @ 2019-07-15 19:30 Through_The_Night 阅读(247) 评论(0) 推荐(0) 编辑
摘要: Description You are given N points in the xy-plane. You have a circle of radius one and move it on the xy-plane, so as to enclose as many of the point 阅读全文
posted @ 2019-07-14 16:09 Through_The_Night 阅读(453) 评论(0) 推荐(0) 编辑
摘要: We define a function gay(i)gay(i): \displaystyle gay(i)=\left\{ \begin{array}{rcl} & 0, \quad& if \quad i = k*x*x, x > 1, k \geq 1 \\ & i * i ,\quad& 阅读全文
posted @ 2019-07-13 22:56 Through_The_Night 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 小 X 自幼就很喜欢数。但奇怪的是,他十分讨厌完全平方数。他觉得这些数看起来很令人难受。由此,他也讨厌所有是完全平方数的正整数倍的数。然而这丝毫不影响他对其他数的热爱。 这天是小X的生日,小 W 想送一个数给他作为生日礼物。当然他不能送一个小X讨厌的数。他列出了所有小X不讨厌的数,然后选取了第 K个 阅读全文
posted @ 2019-07-13 15:46 Through_The_Night 阅读(217) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页