摘要:
A. Generous Kefa time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output One day Kefa found n ba 阅读全文
摘要:
3835: Crop Circles Time Limit(Common/Java):1000MS/3000MS Memory Limit:65536KByteTotal Submit: 101 Accepted:70 Description Bessie and her fellow herd-m 阅读全文
摘要:
我曾经在数论里谈过扩展欧几里得算法只有实现,我知道它可以求模线性方程的解,但是具体也没有想过,因为同余是数论中问题 现在来填下坑 什么是同余 给定一个正整数m,如果两个整数a和b满足(a-b)能够被m整除,即(a-b)/m得到一个整数,那么就称整数a与b对模m同余,记作a≡b(mod m)。 算法导 阅读全文
摘要:
S - Layout POJ - 3169 Like everyone else, cows like to stand close to their friends when queuing for feed. FJ has N (2 <= N <= 1,000) cows numbered 1. 阅读全文
摘要:
Largest Rectangle in a Histogram HDU - 1506 Largest Rectangle in a Histogram A histogram is a polygon composed of a sequence of rectangles aligned at 阅读全文
摘要:
我好想有点思维江化,所以我想给这个丝毫没有问题的abc也写下 A - Palindromic Number Time Limit: 2 sec / Memory Limit: 256 MB Score : 100100 points Problem Statement You are given a 阅读全文
摘要:
最近一直懒,怎么没有补上题解(放上代码.并不需要写臭长的题解) A. Arya and Bran time limit per test 1 second memory limit per test 256 megabytes input standard input output standard 阅读全文
摘要:
n阶的法里数列是0和1之间最简分数的数列,由小至大排列,每个分数的分母不大于n。 Stern-Brocot树(SB Tree)可以生成这个序列 {0/1,1/1} {0/1,1/2,1/1} {0/1,1/3,1/2,2/3,1/1} {0/1,1/4,1/3,1/2,2/3,3/4,1/1} {0 阅读全文
摘要:
Happy Number UVA - 10591 Let the sum of the square of the digits of a positive integer S0 be represented by S1. In a similar way, let the sum of the s 阅读全文
摘要:
D. World of Darkraft - 2 time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Roma found a ne 阅读全文
摘要:
D. Jeff and Furik time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Jeff has become friends 阅读全文
摘要:
在一个排列中,如果一对数的前后位置与大小顺序相反,即前面的数大于后面的数,那么它们就称为一个逆序。一个排列中逆序的总数就称为这个排列的逆序数。 如2 4 3 1中,2 1,4 3,4 1,3 1是逆序,逆序数是4。给出一个整数序列,求该序列的逆序数。 Input第1行:N,N为序列的长度(n <= 阅读全文
摘要:
Batting Practice After being all out for 58 and 78 in two matches in the most prestigious tournament in the world, the coach of a certain national cri 阅读全文
摘要:
152 - Expected value of the expression Time Limit:2s Memory Limit:128MByte Submissions:135Solved:65 152 - Expected value of the expression Time Limit: 阅读全文
摘要:
D. Airplane Arrangements time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Airplane Arr 阅读全文
摘要:
手贱去开了abc,这么无聊。直接arc啊 C - 4-adjacent Time limit : 2sec / Memory limit : 256MB Score : 400 points Problem Statement We have a sequence of length N, a=(a 阅读全文
摘要:
说好暑假刷刷CF的题提高一下的,结果自己总是忘记,其实还是懈怠,这样下去一个暑假可能什么也学不会的,随手开套CF多好啊,所以我的博客慢慢成了流水账,激励自己持续打题 A. Andryusha and Socks time limit per test 2 seconds memory limit p 阅读全文
摘要:
D. Marmots (easy) time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Marmots (easy) time 阅读全文
摘要:
5021: Exchange Puzzle Time Limit(Common/Java):1000MS/3000MS Memory Limit:65536KByteTotal Submit: 24 Accepted:4 Description Given the expression (B+E+S 阅读全文
摘要:
Educational Codeforces Round 26 困到不行的场,等着中午显示器到了就可以美滋滋了 A. Text Volume time limit per test 1 second memory limit per test 256 megabytes input standard 阅读全文