Loading

上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 75 下一页
摘要: Description 在科学计算中经常要计算矩阵的乘积。矩阵A和B可乘的条件是矩阵A的列数等于矩阵B的行数。若A是一个p×q的矩阵,B是一个q×r的矩阵,则其乘积C=AB是一个p×r的矩阵。 由公式知计算C=AB总共需要pqr次的数乘。 为了说明在计算矩阵连乘积时加括号方式对整个计算量的影响,我们 阅读全文
posted @ 2020-03-16 21:26 脂环 阅读(481) 评论(0) 推荐(0)
摘要: You are given a tree consisting of nn nodes. You want to write some labels on the tree's edges such that the following conditions hold: Every label is 阅读全文
posted @ 2020-03-15 23:08 脂环 阅读(198) 评论(0) 推荐(0)
摘要: Ehab has an array aa of length nn . He has just enough free time to make a new array consisting of nn copies of the old array, written back-to-back. W 阅读全文
posted @ 2020-03-15 18:04 脂环 阅读(218) 评论(0) 推荐(0)
摘要: You are given a positive integer xx . Find any such 22 positive integers aa and bb such that GCD(a,b)+LCM(a,b)=xGCD(a,b)+LCM(a,b)=x . As a reminder, G 阅读全文
posted @ 2020-03-15 17:54 脂环 阅读(289) 评论(0) 推荐(0)
摘要: 题目描述 太郎有N只兔子,现在为了方便识别它们,太郎要给他们编号。兔子们向太郎表达了它们对号码的喜好,每个兔子i想要一个整数,介于1和Maxnumber[i]之间(包括1和Maxnumber[i])。当然,每个兔子的编号是不同的。现在太郎想知道一共有多少种编号的方法。 你只用输出答案mod 1000 阅读全文
posted @ 2020-03-15 16:30 脂环 阅读(286) 评论(0) 推荐(0)
摘要: 题目描述 给出一个小于2322^{32}232的正整数。这个数可以用一个323232位的二进制数表示(不足323232位用000补足)。我们称这个二进制数的前161616位为“高位”,后161616位为“低位”。将它的高低位交换,我们可以得到一个新的数。试问这个新的数是多少(用十进制表示)。 例如, 阅读全文
posted @ 2020-03-15 16:08 脂环 阅读(626) 评论(0) 推荐(1)
摘要: 题目描述 经过一段时间的紧张筹备,电脑小组的“RP餐厅”终于开业了,这天,经理LXC接到了一个定餐大单,可把大家乐坏了!员工们齐心协力按要求准备好了套餐正准备派送时,突然碰到一个棘手的问题,筷子!CX小朋友找出了餐厅中所有的筷子,但遗憾的是这些筷子长短不一,而我们都知道筷子需要长度一样的才能组成一双 阅读全文
posted @ 2020-03-15 15:47 脂环 阅读(137) 评论(0) 推荐(0)
摘要: 题目描述 对于一个递归函数w(a,b,c)w(a,b,c)w(a,b,c) 如果a≤0a \le 0a≤0 or b≤0b \le 0b≤0 or c≤0c \le 0c≤0就返回值111. 如果a>20a>20a>20 or b>20b>20b>20 or c>20c>20c>20就返回w(20, 阅读全文
posted @ 2020-03-14 20:53 脂环 阅读(362) 评论(0) 推荐(0)
摘要: 题目描述 Bessie hears that an extraordinary meteor shower is coming; reports say that these meteors will crash into earth and destroy anything they hit. A 阅读全文
posted @ 2020-03-14 01:03 脂环 阅读(473) 评论(0) 推荐(0)
摘要: 题目背景 kkksc03 的大学生活非常的颓废,平时根本不学习。但是,临近期末考试,他必须要开始抱佛脚,以求不挂科。 题目描述 这次期末考试,kkksc03 需要考 444 科。因此要开始刷习题集,每科都有一个习题集,分别有 s1,s2,s3,s4s_1,s_2,s_3,s_4s1​,s2​,s3​ 阅读全文
posted @ 2020-03-13 20:31 脂环 阅读(1160) 评论(0) 推荐(1)
上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 75 下一页