随笔分类 - 思维数学
1
摘要:Since Sonya has just learned the basics of matrices, she decided to play with them a little bit. Sonya imagined a new type of matrices that she called
阅读全文
摘要:You are given a sequence a1, a2, ..., an of one-dimensional segments numbered 1 through n. Your task is to find two distinct indices i and j such that
阅读全文
摘要:You might have heard about the next game in Lara Croft series coming out this year. You also might have watched its trailer. Though you definitely mis
阅读全文
摘要:街上有n棵树,标号为1...n,第i棵树的高度为ai。 定义这n棵树是漂亮的,当且仅当 1. 对于所有的i,ai=an-i+1; 2. 对于1 <= i < n / 2 (不是整除),ai + 1= ai + 1; 比如说 “2 3 4 5 5 4 3 2”和“1 2 3 2 1”是漂亮的而“1 3
阅读全文
摘要:Fibonacci数是非常有名的一个数列,它的公式为 f(n)=f(n-1)+f(n-2),f(0)=1,f(1)=2。 我们可以把任意一个数x表示成若干不相同的Fibonacci数的和, 比如说14 = 13+1 = 8+5+1 = 8+3+2+1。 如果把Fibonacci数列作为数的位权,即f
阅读全文
摘要:将1,2,...,9共9个数排成下列形态的三角形。 a b c d e f g h i 其中:a~i分别表示1,2,...,9中的一个数字,并要求同时满足下列条件: (1)a<f<i; (2)b<d, g<h, c<e (3)a+b+d+f=f+g+h+i=i+e+c+a=P 程序要求:根据输入的边
阅读全文
摘要:C. Mahmoud and Ehab and the xor Mahmoud and Ehab are on the third stage of their adventures now. As you know, Dr. Evil likes sets. This time he won't
阅读全文
摘要:CS Course Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 338 Accepted Submission(s): 167 Problem
阅读全文
摘要:A. Sorting by Subsequences You are given a sequence a1, a2, ..., an consisting of different integers. It is required to split this sequence into the m
阅读全文
摘要:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2041 小背包放到大背包里,则对数最多一定与某个质量数量最多的保持一致
阅读全文
摘要:B. Frodo and pillows time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output n hobbits are planni
阅读全文
摘要:D - Decrease (Contestant ver.) Time limit : 2sec / Memory limit : 256MB Score : 600 points Problem Statement We have a sequence of length N consisting
阅读全文
摘要:Time Limit:2s Memory Limit:128MByte Submissions:1599Solved:270 Time Limit:2s Memory Limit:128MByte Submissions:1599Solved:270 DESCRIPTION You have a s
阅读全文
摘要:B. Mashmokh and Tokens time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Bimokh is Mashmokh
阅读全文
摘要:B. New Job time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output B. New Job time limit per test
阅读全文
摘要:因为坐标都在1-10之间,因此可暴力求解
阅读全文
摘要:B. Black Square time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Polycarp has a checkered
阅读全文
摘要:http://agc017.contest.atcoder.jp/tasks/agc017_b B - Moderate Differences Time limit : 2sec / Memory limit : 256MB Score : 400 points Problem Statement
阅读全文
摘要:A. Saitama Destroys Hotel time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Saitama acciden
阅读全文
摘要:Genos needs your help. He was asked to solve the following programming problem by Saitama: The length of some string s is denoted |s|. The Hamming dis
阅读全文
1

浙公网安备 33010602011771号