三国通史(其七)

三国通史(其七)

题目背景:

jacky_hu总觉得三国争霸(civilization)少了些什么。在深思熟虑后,家鸡决定来送RP。家鸡说:输出样例是ljm,输出样例是lijiama,请问这是真的吗?

题目描述:

Ji Taizong was very happy,so he decided to take an adventure.
Suddenly,an unusual thing happened.
That is————————the kingdom of Ziyu and Jiama had been built up!
Ji Taizong was worried about these two kindoms.He want to burn down the two kingdoms.
But the two civilization was too strong to beat.Ji Taizong tried to fight them but he lost again and again.
He was very angry,but he couldn't find a way to beat them.
He knew that you are very good at programming,so he ask you to help.
If you can help him,he will be happy and give you 1000000000billion mod 1 kilograms of gold.
You know that you are so poor.To be rich,you must try your best to solve the problem.
Ji Taizong want to beat Jiama's kingdom first.
Ji Taizong has a strong army,it has \(m\) power.
There are \(n\) cities in Jiama's kingdom.Each city has an army.If you hit more than \(a_i\) power,the city will be burned down.
If you beat a city,you can get \(b_i\) power.
Ji Taizong want to know how many city can be burned down.

输入格式:

第一行:两个整数,n,m。
第2至n+1行:一行一个整数,表示\(a_i\)和\(b_i\)。

输出格式:

The number of the city which can be burned down.

样例:

Just try your best to think an example.

提示:

Just try your best to accept it.

信息

ID
1146
难度
9
分类
(无)
标签
(无)
递交数
3
已通过
2
通过率
67%
被复制
1
上传者

相关

在下列训练计划中:

三国通史