众所周知如果一个整数的平方根不是一个整数,那么这个平方根就是一个无理数,这种平方根的小数表示是无限不循环的。二的平方根是$1.41421356237309504880...$,它的前一百位数字的和是475。对于前一百个自然数,如果它的平方根是无理数,求这些无理数的小数表示的前一百之和的和。 分析:计 ...
分类:
其他好文 时间:
2019-12-20 19:01:07
阅读次数:
110
一、魔方介绍 魔方(这里是简称,也可以叫幻方、魔术矩阵,Magic Square)是 n×n 正方形网格(n 为每侧的单元数),里面每个单元格填充了不同的正整数 1, 2, 3, ... , n2,并且每一行、每一列和对角线中的正整数之和相等。每行、每列以及对角线上的单元格里的正整数之和又叫做魔术常 ...
分类:
编程语言 时间:
2019-12-19 23:45:47
阅读次数:
244
无序列表 咖啡 茶 牛奶 不同无序列表 不同无序列表 Disc 项目符号列表: 苹果 香蕉 柠檬 桔子 Circle 项目符号列表: 苹果 香蕉 柠檬 桔子 Square 项目符号列表: 苹果 香蕉 柠檬 桔子 有序列表 不同有序列表 数字列表: 字母列表: 小写字母列表: 罗马字母列表: 小写罗马 ...
分类:
Web程序 时间:
2019-12-19 16:01:40
阅读次数:
108
Problem Statement Given a m x n matrix mat and an integer threshold. Return the maximum side-length of a square with a sum less than or equal to thres ...
分类:
其他好文 时间:
2019-12-19 13:08:00
阅读次数:
81
angular.glsl Bounce.glsl BowTieHorizontal.glsl BowTieVertical.glsl burn.glsl ButterflyWaveScrawler.glsl cannabisleaf.glsl circle.glsl CircleCrop.glsl ...
分类:
其他好文 时间:
2019-12-18 14:55:08
阅读次数:
284
原题链接在这里:https://leetcode.com/problems/unique-paths-iii/ 题目: On a 2-dimensional grid, there are 4 types of squares: 1 represents the starting square. T ...
分类:
其他好文 时间:
2019-12-16 09:15:54
阅读次数:
94
题目链接 Given a m x n matrix mat and an integer threshold. Return the maximum side-length of a square with a sum less than or equal to threshold or retur ...
分类:
其他好文 时间:
2019-12-15 23:57:05
阅读次数:
154
这道题暴力法会TLE,先给出这种TLE方案: 使用前序和方式,Java的可以AC,但是python仍然会TLE,给出这种TLE方案: 参考:https://leetcode.com/problems/maximum-side-length-of-a-square-with-sum-less-than ...
分类:
其他好文 时间:
2019-12-15 14:26:59
阅读次数:
104
简单搜索 红与黑: There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a ...
分类:
其他好文 时间:
2019-12-15 12:18:22
阅读次数:
88
题目如下: Given a square grid of integers arr, a falling path with non-zero shifts is a choice of exactly one element from each row of arr, such that no t ...
分类:
其他好文 时间:
2019-12-15 10:26:34
阅读次数:
108