Live2d Test Env
摘要: 题意:给出N,以及三个矩阵A,B,C,大小都为N*N。问是否满足A*B=C; N<1000; 思路:由于矩阵乘法的复杂度为O(N^3);而部分验证又不能保证结果正确。我们巧妙地利用矩阵乘法的结合律:使其变为1*N和N*N的矩阵乘法,使复杂度降低为O(N^2); 即随机构造矩阵X(1*N),Y(N*1 阅读全文
posted @ 2018-06-25 21:18 nimphy 阅读(324) 评论(0) 推荐(0) 编辑
摘要: Allen and Bessie are playing a simple number game. They both know a function f:{0,1}n→Rf:{0,1}n→R, i. e. the function takes nn binary arguments and re 阅读全文
posted @ 2018-06-25 16:45 nimphy 阅读(271) 评论(0) 推荐(0) 编辑
摘要: For a vector →v=(x,y)v→=(x,y), define |v|=√x2+y2|v|=x2+y2. Allen had a bit too much to drink at the bar, which is at the origin. There are nn vectors  阅读全文
posted @ 2018-06-25 16:36 nimphy 阅读(600) 评论(0) 推荐(1) 编辑