码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
codeforces259B
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
Weekly Contest 130
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发送POST请求提交JSON数据
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
Error: Program type already present: okhttp3.Authenticator$1
在app中的build.gradle中加入如下代码, 如图 ...
分类:Web程序   时间:2019-03-25 21:53:50    阅读次数:288
0323表格学习
上午早来复习了一会昨天的课程。今天主要学习了表格的标签写法,难度不大,但是合并行与合并列容易混淆搞不明白。 <!--有序列表--> <ol type="I"> <li>数学</li> <li>英语</li> <li>体育</li> </ol><!--无序列表--> <ul type="square" ...
分类:其他好文   时间:2019-03-23 15:57:50    阅读次数:129
动态规划_leetcode279(动归版)
#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
CodeForces - 710C Magic Odd Square(奇数和幻方构造)
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
python内置函数
#查看内置函数 dir(__builtins__) # abs() 函数返回数字的绝对值。 print ("abs(-40) : ", abs(-40)) print ("abs(100.10) : ", abs(100.10)) # all() 函数用于判断给定的可迭代参数 iterable 中的... ...
分类:编程语言   时间:2019-03-16 23:43:13    阅读次数:276
[Stanford Algorithms: Design and Analysis, Part 2]
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
python numpy科学计算和数据分析的基础包
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
2122条   上一页 1 ... 30 31 32 33 34 ... 213 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!