摘要: 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 阅读全文
posted @ 2017-08-19 09:23 暴力都不会的蒟蒻 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 3835: Crop Circles Time Limit(Common/Java):1000MS/3000MS Memory Limit:65536KByteTotal Submit: 101 Accepted:70 Description Bessie and her fellow herd-m 阅读全文
posted @ 2017-08-18 13:59 暴力都不会的蒟蒻 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 我曾经在数论里谈过扩展欧几里得算法只有实现,我知道它可以求模线性方程的解,但是具体也没有想过,因为同余是数论中问题 现在来填下坑 什么是同余 给定一个正整数m,如果两个整数a和b满足(a-b)能够被m整除,即(a-b)/m得到一个整数,那么就称整数a与b对模m同余,记作a≡b(mod m)。 算法导 阅读全文
posted @ 2017-08-17 17:48 暴力都不会的蒟蒻 阅读(555) 评论(0) 推荐(0) 编辑
摘要: 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. 阅读全文
posted @ 2017-08-16 18:47 暴力都不会的蒟蒻 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-08-15 10:49 暴力都不会的蒟蒻 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 我好想有点思维江化,所以我想给这个丝毫没有问题的abc也写下 A - Palindromic Number Time Limit: 2 sec / Memory Limit: 256 MB Score : 100100 points Problem Statement You are given a 阅读全文
posted @ 2017-08-14 15:28 暴力都不会的蒟蒻 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 最近一直懒,怎么没有补上题解(放上代码.并不需要写臭长的题解) A. Arya and Bran time limit per test 1 second memory limit per test 256 megabytes input standard input output standard 阅读全文
posted @ 2017-08-14 13:52 暴力都不会的蒟蒻 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-08-11 16:18 暴力都不会的蒟蒻 阅读(684) 评论(0) 推荐(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 阅读全文
posted @ 2017-08-10 16:07 暴力都不会的蒟蒻 阅读(895) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-08-10 13:44 暴力都不会的蒟蒻 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-08-10 10:25 暴力都不会的蒟蒻 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 在一个排列中,如果一对数的前后位置与大小顺序相反,即前面的数大于后面的数,那么它们就称为一个逆序。一个排列中逆序的总数就称为这个排列的逆序数。 如2 4 3 1中,2 1,4 3,4 1,3 1是逆序,逆序数是4。给出一个整数序列,求该序列的逆序数。 Input第1行:N,N为序列的长度(n <= 阅读全文
posted @ 2017-08-09 19:49 暴力都不会的蒟蒻 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-08-09 16:02 暴力都不会的蒟蒻 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 152 - Expected value of the expression Time Limit:2s Memory Limit:128MByte Submissions:135Solved:65 152 - Expected value of the expression Time Limit: 阅读全文
posted @ 2017-08-09 14:32 暴力都不会的蒟蒻 阅读(494) 评论(0) 推荐(0) 编辑
摘要: D. Airplane Arrangements time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Airplane Arr 阅读全文
posted @ 2017-08-08 09:18 暴力都不会的蒟蒻 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 手贱去开了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 阅读全文
posted @ 2017-08-07 13:03 暴力都不会的蒟蒻 阅读(796) 评论(0) 推荐(0) 编辑
摘要: 说好暑假刷刷CF的题提高一下的,结果自己总是忘记,其实还是懈怠,这样下去一个暑假可能什么也学不会的,随手开套CF多好啊,所以我的博客慢慢成了流水账,激励自己持续打题 A. Andryusha and Socks time limit per test 2 seconds memory limit p 阅读全文
posted @ 2017-08-05 09:26 暴力都不会的蒟蒻 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-08-04 16:55 暴力都不会的蒟蒻 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 5021: Exchange Puzzle Time Limit(Common/Java):1000MS/3000MS Memory Limit:65536KByteTotal Submit: 24 Accepted:4 Description Given the expression (B+E+S 阅读全文
posted @ 2017-08-04 10:00 暴力都不会的蒟蒻 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Educational Codeforces Round 26 困到不行的场,等着中午显示器到了就可以美滋滋了 A. Text Volume time limit per test 1 second memory limit per test 256 megabytes input standard 阅读全文
posted @ 2017-08-04 09:26 暴力都不会的蒟蒻 阅读(455) 评论(0) 推荐(0) 编辑