摘要: 7-1 Standard Form of Polynomial (20 分) 时间限制:400 ms 内存限制:64 MB The standard form of a polynomial of degree n is P(x)=anxn+an−1xn−1+⋯+a1x+a0. Given that 阅读全文
posted @ 2021-05-02 10:21 雪上空留马行处 阅读(1036) 评论(0) 推荐(2) 编辑
摘要: 最后更新时间:2021.4.19 说明: 1、所分类型的章节来自于《算法笔记》,带有极强个人主观性。 2、通过率:即通过次数/提交次数,一定程度上可以反应题目难度。将1108-1155分为一类,其他题分为一类,分别取通过率最低的5道题,标注为红字。数据量太小是指到更新时间为止提交数≤100。 3、背 阅读全文
posted @ 2021-04-21 13:24 雪上空留马行处 阅读(3959) 评论(2) 推荐(2) 编辑
摘要: 7-1 Square Friends (20 分) 时间限制:400 ms 内存限制:64 MB For any given positive integer n, two positive integers A and B are called Square Friends if by attac 阅读全文
posted @ 2021-04-14 17:07 雪上空留马行处 阅读(2786) 评论(3) 推荐(3) 编辑
摘要: 7-1 Happy Numbers (20 分) 时间限制:400 ms 内存限制:64 MB A happy number is defined by the following process: Starting with any positive integer, replace the nu 阅读全文
posted @ 2021-04-12 13:22 雪上空留马行处 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 7-1 Arithmetic Progression of Primes (20 分) 时间限制:1000 ms 内存限制:64 MB In mathematics, an arithmetic progression (AP,等差数列) is a sequence of numbers such 阅读全文
posted @ 2021-04-11 11:42 雪上空留马行处 阅读(2156) 评论(0) 推荐(1) 编辑
摘要: 7-1 The Closest Fibonacci Number (20 分) 时间限制:150 ms 内存限制:64 MB The Fibonacci sequence Fn is defined by Fn+2=Fn+1+Fn for n≥0, with F0=0 and F1=1. The c 阅读全文
posted @ 2021-04-10 14:45 雪上空留马行处 阅读(752) 评论(0) 推荐(0) 编辑
摘要: 7-1 Panda and PP Milk (20 分) 时间限制:150 ms 内存限制:64 MB PP milk (盆盆奶)is Pandas' favorite. They would line up to enjoy it as show in the picture. On the ot 阅读全文
posted @ 2021-04-09 14:36 雪上空留马行处 阅读(1082) 评论(0) 推荐(1) 编辑
摘要: 7-1 Prime Day (20 分) 时间限制:400 ms 内存限制:64 MB The above picture is from Sina Weibo, showing May 23rd, 2019 as a very cool "Prime Day". That is, not only 阅读全文
posted @ 2021-04-08 15:36 雪上空留马行处 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 7-1 Good in C (20 分) 时间限制:400 ms 内存限制:64 MB When your interviewer asks you to write "Hello World" using C, can you do as the following figure shows? I 阅读全文
posted @ 2021-04-07 17:18 雪上空留马行处 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 7-1 Forever (20 分) 时间限制:3000 ms 内存限制:64 MB "Forever number" is a positive integer A with K digits, satisfying the following constrains: the sum of all 阅读全文
posted @ 2021-04-06 22:23 雪上空留马行处 阅读(371) 评论(4) 推荐(0) 编辑
摘要: 7-1 Sexy Primes (20 分) 时间限制:400 ms 内存限制:64 MB Sexy primes are pairs of primes of the form (p, p+6), so-named since "sex" is the Latin word for "six". 阅读全文
posted @ 2021-04-05 00:15 雪上空留马行处 阅读(332) 评论(0) 推荐(2) 编辑
摘要: 一、字符串 字符串键是Redis最基本的键值对类型,将一个单独的键和一个单独的值关联起来。通过字符串键,不仅可以存储和读取字符串,如果输入能被解释为整数和浮点数,还能执行自增或自减操作。 1、SET:设置字符串键的值 命令 SET key value [EX seconds|PX milliseco 阅读全文
posted @ 2020-01-21 10:28 雪上空留马行处 阅读(2340) 评论(0) 推荐(0) 编辑
摘要: 一、构造函数和原型 1、构造函数、静态成员和实例成员 在ES6之前,通常用一种称为构造函数的特殊函数来定义对象及其特征,然后用构造函数来创建对象。像其他面向对象的语言一样,将抽象后的属性和方法封装到对象内部。 在创建对象时,构造函数总与new一起使用(而不是直接调用)。new创建了一个新的对象,然后 阅读全文
posted @ 2019-11-05 00:35 雪上空留马行处 阅读(1378) 评论(0) 推荐(0) 编辑