随笔分类 -  数学

摘要:易游戏雷火盘古校园招聘开始! 易游戏雷火盘古校园招聘开始! kiki's game Problem Description Recently kiki has nothing to do. While she is bored, an idea appears in his mind, she ju 阅读全文
posted @ 2017-09-09 10:57 joeylee97 阅读(154) 评论(0) 推荐(0)
摘要:Problem Description Recently kiki has nothing to do. While she is bored, an idea appears in his mind, she just playes the checkerboard game.The size o 阅读全文
posted @ 2017-09-09 10:51 joeylee97 阅读(249) 评论(0) 推荐(0)
摘要:我们称一个长度为2n的数列是有趣的,当且仅当该数列满足以下三个条件: (1)它是从1到2n共2n个整数的一个排列{ai}; (2)所有的奇数项满足a1<a3<…<a2n-1,所有的偶数项满足a2<a4<…<a2n; (3)任意相邻的两项a2i-1与a2i(1≤i≤n)满足奇数项小于偶数项,即:a2i 阅读全文
posted @ 2017-08-25 10:10 joeylee97 阅读(971) 评论(0) 推荐(0)
摘要:Devu wants to decorate his garden with flowers. He has purchased n boxes, where the i-th box contains fi flowers. All flowers in a single box are of t 阅读全文
posted @ 2017-08-25 10:07 joeylee97 阅读(202) 评论(0) 推荐(0)
摘要:任何正整数都能分解成2的幂,给定整数N,求N的此类划分方法的数量!由于方案数量较大,输出Mod 1000000007的结果。 比如N = 7时,共有6种划分方法。 7=1+1+1+1+1+1+1 =1+1+1+1+1+2 =1+1+1+2+2 =1+2+2+2 =1+1+1+4 =1+2+4 Inp 阅读全文
posted @ 2017-08-25 10:05 joeylee97 阅读(601) 评论(0) 推荐(0)
摘要:You will be given a string which only contains ‘1’; You can merge two adjacent ‘1’ to be ‘2’, or leave the ‘1’ there. Surly, you may get many differen 阅读全文
posted @ 2017-08-19 09:29 joeylee97 阅读(244) 评论(0) 推荐(0)
摘要:nn pagodas were standing erect in Hong Jue Si between the Niushou Mountain and the Yuntai Mountain, labelled from 11 to nn. However, only two of them 阅读全文
posted @ 2017-08-19 09:17 joeylee97 阅读(237) 评论(0) 推荐(0)
摘要:直接打表找规律 HazelFan is given two positive integers a,ba,b, and he wants to calculate amodbamodb. But now he forgets the value of bb and only remember the 阅读全文
posted @ 2017-08-19 09:12 joeylee97 阅读(127) 评论(0) 推荐(0)
摘要:The binomial coefficient C(m, n) is defined as C(m, n) = m! (m − n)! n! Given four natural numbers p, q, r, and s, compute the the result of dividing 阅读全文
posted @ 2017-08-13 21:12 joeylee97 阅读(230) 评论(0) 推荐(0)
摘要:An Arc of Dream is a curve defined by following function: where a 0 = A0 a i = a i-1*AX+AY b 0 = B0 b i = b i-1*BX+BY What is the value of AoD(N) modu 阅读全文
posted @ 2017-08-01 08:56 joeylee97 阅读(202) 评论(0) 推荐(0)
摘要:Given the value of a+b and ab you will have to find the value of a n + b n Input The input file contains several lines of inputs. Each line except the 阅读全文
posted @ 2017-07-30 09:29 joeylee97 阅读(213) 评论(0) 推荐(0)
摘要:#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; typedef unsigned long long ULL; #define MAXN 4... 阅读全文
posted @ 2017-07-29 19:42 joeylee97 阅读(670) 评论(0) 推荐(0)
摘要:Let’s define another number sequence, given by the following function: f(0) = a f(1) = b f(n) = f(n − 1) + f(n − 2), n > 1 When a = 0 and b = 1, this 阅读全文
posted @ 2017-07-29 17:17 joeylee97 阅读(297) 评论(0) 推荐(0)
摘要:Alice is given a list of integers by Bob and is asked to generate a new list where each element in the new list is the sum of some other integers in t 阅读全文
posted @ 2017-07-28 16:03 joeylee97 阅读(222) 评论(0) 推荐(0)
摘要:One day, Alice and Bob felt bored again, Bob knows Alice is a girl who loves math and is just learning something about matrix, so he decided to make a 阅读全文
posted @ 2017-07-28 15:13 joeylee97 阅读(454) 评论(0) 推荐(0)
摘要:Read the program below carefully then answer the question. #pragma comment(linker, "/STACK:1024000000,1024000000") #include <cstdio> #include<iostream 阅读全文
posted @ 2017-07-26 09:30 joeylee97 阅读(183) 评论(0) 推荐(0)
摘要:In our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333, or 233333 ... in the same meaning. And here is the quest 阅读全文
posted @ 2017-07-25 20:51 joeylee97 阅读(539) 评论(0) 推荐(0)
摘要:A - Jzzhu and Sequences Jzzhu has invented a kind of sequences, they meet the following property: You are given x and y, please calculate fn modulo 10 阅读全文
posted @ 2017-07-25 19:29 joeylee97 阅读(608) 评论(0) 推荐(0)
摘要:A. Treasure Hunt time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Captain Bill the Humming 阅读全文
posted @ 2017-06-17 11:39 joeylee97 阅读(379) 评论(0) 推荐(0)
摘要:Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 13381 Accepted: 5208 Description The cows, as you know, have no fingers or thumbs and thus 阅读全文
posted @ 2017-06-10 14:46 joeylee97 阅读(233) 评论(0) 推荐(0)