![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思维
文章平均质量分 53
Hanylch
菜鸟的起飞之路
Think and Practice
展开
-
Caterpillars URAL - 2064
Young gardener didn’t visit his garden for a long time, and now it’s not very pleasant there: n caterpillars have appeared on the ground. Kirill decided to use this opportunity to have some fun and or原创 2017-03-24 21:38:10 · 351 阅读 · 0 评论 -
Optimal Number Permutation CodeForces - 622D (找规律)
You have array a that contains all integers from 1 to n twice. You can arbitrary permute any numbers in a.Let number i be in positions xi, yi (xi < yi) in the permuted array a. Let’s define the value d原创 2017-05-18 21:39:31 · 305 阅读 · 0 评论 -
Pearls in a Row CodeForces - 620C
There are n pearls in a row. Let’s enumerate them with integers from 1 to n from the left to the right. The pearl number i has the type ai.Let’s call a sequence of consecutive pearls a segment. Let’s c原创 2017-05-18 21:37:16 · 333 阅读 · 0 评论 -
Not Equal on a Segment CodeForces - 622C (思维)
You are given array a with n integers and m queries. The i-th query is given with three integers li, ri, xi.For the i-th query find any position pi (li ≤ pi ≤ ri) so that api ≠ xi.Input The first line原创 2017-05-18 21:34:15 · 252 阅读 · 0 评论 -
Andy的作业 FZU - 1404 (结果为大数的乘法)
Andy每天都有很多作业要做,他的老师总是在说“这些作业你明天必须交上来……”。现在他找你帮忙做其中的一项作业,给出N个整数A1, A2, …, AN,有 M 个询问 q (L, R),对于每个询问,你要输出一个整数,第L个数到第R个数的乘积,这个乘积不会超过1000位。Input 输入包含多组测试数据。每组数据第一行为两个整数N,M (N <= 800, M <= 1000) 接下来N行,给出这原创 2017-05-17 20:07:04 · 223 阅读 · 0 评论 -
中位数计数 (思维 + 技巧)
中位数计数Time Limit: 12000/6000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1610 Accepted Submission(s): 583Problem Description 中位数定义为所有值从小到大排序后排在正中间的那个数,如果值有偶数个原创 2017-05-17 20:05:15 · 382 阅读 · 0 评论 -
nyoj 448 删数字(思维水题)
寻找最大数 时间限制:1000 ms | 内存限制:65535 KB 难度:2 描述 请在整数 n 中删除m个数字, 使得余下的数字按原次序组成的新数最大,比如当n=92081346718538,m=10时,则新的最大数是9888输入 第一行输入一个正整数T,表示有T组测试数据 每组测试数据占一行,每行有两个数n,m(n可能是一个很大的整数,但其位数不超过100位,并且保证数据首位非原创 2017-05-15 21:28:40 · 451 阅读 · 0 评论 -
The Smallest String Concatenation CodeForces - 632C (string sort)
You’re given a list of n strings a1, a2, …, an. You’d like to concatenate them together in some order such that the resulting string would be lexicographically smallest.Given the list of strings, outpu原创 2017-05-23 21:21:37 · 297 阅读 · 0 评论 -
Molly's Chemicals CodeForces - 776C ( 思维 + 前缀和)
Molly Hooper has n different kinds of chemicals arranged in a line. Each of the chemicals has an affection value, The i-th of them has affection value ai.Molly wants Sherlock to fall in love with her.原创 2017-04-17 20:47:11 · 1176 阅读 · 0 评论 -
Error Curves HDU - 3714 (三分求最值)
Josephina is a clever girl and addicted to Machine Learning recently. She pays much attention to a method called Linear Discriminant Analysis, which has many interesting properties. In order to t原创 2017-04-12 15:21:14 · 302 阅读 · 0 评论 -
B. Sagheer, the Hausmeister(codeforce 417 div2 B, dfs)
B. Sagheer, the Hausmeister time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Some people leave the lights at their workplaces on when they l原创 2017-06-02 17:38:00 · 330 阅读 · 0 评论