上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: 1、array A第i行第j列元素:A[i][j] 2、np.zeros((n, m));np.randm.randn(n, m); 3、array A的维度:A.shape(无括号) 4、a.T 点乘 b : np.dot(a, b) 或 np.sum(a * b) 5、np.random.ran 阅读全文
posted @ 2018-12-29 15:58 bloglxc 阅读(153) 评论(0) 推荐(0)
摘要: Given a sequence of positive integers and another positive integer p. The sequence is said to be a perfect sequence if M≤m×p where M and m are the max 阅读全文
posted @ 2018-11-14 00:49 bloglxc 阅读(188) 评论(0) 推荐(0)
摘要: When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. A socia 阅读全文
posted @ 2018-09-22 17:05 bloglxc 阅读(127) 评论(0) 推荐(0)
摘要: 第一次参加pat考试,结果很惨,只做了中间两道题,还有一个测试点错误,所以最终只得了不到50分。题目是甲级练习题的1148-1151。 考试时有些紧张,第一题第二题开始测试样例都运行不正确,但是调试程序考场的vs2013不能粘贴,还得一点点输上去。浪费了很多时间。 1、Werewolf - Simp 阅读全文
posted @ 2018-09-15 14:50 bloglxc 阅读(780) 评论(0) 推荐(0)
摘要: Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making 阅读全文
posted @ 2018-09-06 17:04 bloglxc 阅读(208) 评论(0) 推荐(0)
摘要: Unlike in nowadays, the way that boys and girls expressing their feelings of love was quite subtle in the early years. When a boy A had a crush on a g 阅读全文
posted @ 2018-08-31 17:20 bloglxc 阅读(179) 评论(0) 推荐(0)
摘要: 1、 char c = getchar(); 输入单个字符,可输入空格、换行符。 2、 cin >> s; 不读取空格或换行符。 3、 getline(cin, s); 输入一行到字符串s,输入包含空格,会读取换行符但是不输入到字符串中。 例: 先输入一个整数,再读取一行到字符串s,再读取一行中空格 阅读全文
posted @ 2018-08-27 18:02 bloglxc 阅读(217) 评论(0) 推荐(0)
摘要: An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any 阅读全文
posted @ 2018-08-25 16:02 bloglxc 阅读(146) 评论(0) 推荐(0)
摘要: This time, you are supposed to help us collect the data for family-owned property. Given each person's family members, and the estate(房产)info under hi 阅读全文
posted @ 2018-08-23 17:24 bloglxc 阅读(173) 评论(0) 推荐(0)
摘要: 1、 段错误: 数组太小,下标越界 浮点错误: 除以零或求余零 格式错误: 少或多了空格或空行。 2、 注意id可能是等于0,比如5位id可能是00000。 3、 当函数参数参占用内存空间较大时(比如map等),用引用传递参数更节省时间,用形参可能会超时。 4、 当编号从1到N时,循环时条件为 i 阅读全文
posted @ 2018-08-22 17:44 bloglxc 阅读(153) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页