摘要:
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 阅读全文
摘要:
最后更新时间:2021.4.19 说明: 1、所分类型的章节来自于《算法笔记》,带有极强个人主观性。 2、通过率:即通过次数/提交次数,一定程度上可以反应题目难度。将1108-1155分为一类,其他题分为一类,分别取通过率最低的5道题,标注为红字。数据量太小是指到更新时间为止提交数≤100。 3、背 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
7-1 Arithmetic Progression of Primes (20 分) 时间限制:1000 ms 内存限制:64 MB In mathematics, an arithmetic progression (AP,等差数列) is a sequence of numbers such 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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". 阅读全文
摘要:
一、字符串 字符串键是Redis最基本的键值对类型,将一个单独的键和一个单独的值关联起来。通过字符串键,不仅可以存储和读取字符串,如果输入能被解释为整数和浮点数,还能执行自增或自减操作。 1、SET:设置字符串键的值 命令 SET key value [EX seconds|PX milliseco 阅读全文
摘要:
一、构造函数和原型 1、构造函数、静态成员和实例成员 在ES6之前,通常用一种称为构造函数的特殊函数来定义对象及其特征,然后用构造函数来创建对象。像其他面向对象的语言一样,将抽象后的属性和方法封装到对象内部。 在创建对象时,构造函数总与new一起使用(而不是直接调用)。new创建了一个新的对象,然后 阅读全文