最新 最热

Codeforces Round #547 (Div. 3)E. Superhero Battle

A superhero fights with a monster. The battle consists of rounds, each of which lasts exactly nn minutes. After a round ends, the next round starts immediately....

2020-09-28
0

Codeforces Round #547 (Div. 3)C. Polycarp Restores Permutation

An array of integers p1,p2,…,pnp1,p2,…,pn is called a permutation if it contains each number from 11 to nn exactly once. For example, the following arrays are p...

2020-09-28
0

Array - 164. Maximum Gap

Given an unsorted array, find the maximum difference between the successive elements in its sorted form.

2020-09-23
1

归并排序详解 -HDU4911 Inversion(逆序对)

什么是归并排序? 归并排序是复杂度为O(nlog(n))的排序算法,运用了分治法的思想,虽然一般直接使用sort(),不需要自己写排序,但归并排序的典型应用如 逆序对问题。...

2020-09-15
1

贪心-HDU1789 Doing Homework again(活动安排问题)

首先把作业按截止日期从小到大排序,如果日期相同按罚分降序,我们希望完成尽可能多的作业。然而仅靠日期排序并不是最优的,当一项作业超过截止日期时,我们不能就简单的加上罚分,我们要把它的罚分和前面完成作业的最小罚分相...

2020-09-15
0

杭电 1789(贪心思维练习)

Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If...

2020-09-11
0

二分练习 --D - Trailing Zeroes (III)

You task is to find minimal natural number N, so that N! contains exactly Q zeroes on the trail in decimal notation. As you know N! = 12…*N. For example, 5! = 1...

2020-09-10
0

Collection接口-常用方法

Collection接口-集合Collection接口-常用方法1、add()方法boolean add(E e) //向集合中插入一个元素Collection c = new ArrayList();c.add("hello world");c.add(100);c.add(3.14);c.add......

2020-08-02
0

按需取余

You are given three integers x,y and n. Your task is to find the maximum integer k such that 0≤k≤n that kmodx=y, where mod is modulo operation. Many programming...

2020-07-27
1

fgsea做GSEA

1.导入测试数据,fgesa的examplePathways,exampleRanks测试数据分别是通路的list和经过fold change排序的基因。

2020-07-21
1