![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思路题
szszsz1997
假如编程易懂得,那么程序员就不会热情地写出注释,也不会有得到编程的快乐。
展开
-
ZOJ - 3123 Subsequence (思路细节)
Subsequence Time Limit: 1 Second Memory Limit: 32768 KB A sequence of N positive integers (10 , each of them less than or equal 10000, and a positive integer S (S are given. Write a pr原创 2017-07-28 21:23:43 · 205 阅读 · 0 评论 -
UVa - 11300 Spreading the Wealth (代数分析)
https://vjudge.net/problem/UVA-11300 训练指南 1 - 3 题意:圆桌有n个人,每个人都有一定的金币,金币总数能被n整除,每个人可以给相邻的人一些金币,使得他们每个人的金币相等。求转手金币的最小值。 解决:书上给了一大串代数分析,很好,不再赘述。以后做题可以先列公式,可能会有意想不到的事情发生(简单不知道多少倍)。 细节:分析到最后,有一个中位数的应用,原创 2017-07-27 16:20:44 · 153 阅读 · 0 评论 -
POJ 1852 Ants(思路题)
点击打开链接 题意:一根竹竿,上面很多蚂蚁往两边爬,两只蚂蚁撞到就各自调头回去,问所有蚂蚁爬出杆的最长时间和最短时间 思路:两只蚂蚁相撞,可以看成交错,然后继续前进 细节:。。#include #include using namespace std; int t, l, n; int a[1000005]; int maxs, mins; int main(){ cin原创 2017-07-25 16:57:12 · 311 阅读 · 0 评论 -
URAL - 1964 Chinese Dialects (数学集合)
1964. Chinese Dialects Time limit: 1.0 second Memory limit: 64 MB Vova moved from Guangzhou to Shenzhen. He immediately found out that the local people don't understand his Cantonese phrase原创 2017-08-11 11:52:36 · 257 阅读 · 0 评论