Little Elephant and Magic Square CodeForces - 259B Little Elephant loves magic squares very much. A magic square is a 3?×?3 table, each cell contains ...
分类:
其他好文 时间:
2019-04-02 21:15:04
阅读次数:
180
1029. Binary Prefix Divisible By 5 Given an array A of 0s and 1s, consider N_i: the i-th subarray from A[0] to A[i] interpreted as a binary number (fr ...
分类:
其他好文 时间:
2019-03-31 13:29:27
阅读次数:
147
Retrofit官网:https://square.github.io/retrofit/ 示例如下 HttpService.java Entry.java build.gradle 使用@Headers("Content-Type: application/json")设置Content-Type ...
分类:
Web程序 时间:
2019-03-30 23:58:14
阅读次数:
2569
在app中的build.gradle中加入如下代码, 如图 ...
分类:
Web程序 时间:
2019-03-25 21:53:50
阅读次数:
288
上午早来复习了一会昨天的课程。今天主要学习了表格的标签写法,难度不大,但是合并行与合并列容易混淆搞不明白。 <!--有序列表--> <ol type="I"> <li>数学</li> <li>英语</li> <li>体育</li> </ol><!--无序列表--> <ul type="square" ...
分类:
其他好文 时间:
2019-03-23 15:57:50
阅读次数:
129
#coding=utf-8# 递归版class Solution1(object): def numSquares(self, n): """ :type n: int :rtype: int """ return self.squareNum(n) def squareNum(self,n): i ...
分类:
其他好文 时间:
2019-03-17 13:24:47
阅读次数:
176
Magic Odd Square Find an n?×?n matrix with different numbers from 1 to n2, so the sum in each row, column and both main diagonals are odd. Input The o ...
分类:
其他好文 时间:
2019-03-17 01:28:06
阅读次数:
178
#查看内置函数 dir(__builtins__) # abs() 函数返回数字的绝对值。 print ("abs(-40) : ", abs(-40)) print ("abs(100.10) : ", abs(100.10)) # all() 函数用于判断给定的可迭代参数 iterable 中的... ...
分类:
编程语言 时间:
2019-03-16 23:43:13
阅读次数:
276
Specific topics in Part 2 include: greedy algorithms (scheduling, minimum spanning trees, clustering, Huffman codes), dynamic programming (knapsack, s ...
分类:
其他好文 时间:
2019-03-15 09:15:23
阅读次数:
287
import numpy as np#创建ndarray# data1 = [6, 5, 7, 1, 3]# arrl = np.array(data1)# print(arrl)#多维列表创建ndarraydata2 = [[3, 4, 2], [1, 8, 9]]arr2 = np.array( ...
分类:
编程语言 时间:
2019-03-13 00:19:32
阅读次数:
229