
二分+尺取
yuebaba
鶸鶸鶸
展开
-
Stages (水题压压惊)
Natasha is going to fly to Mars. She needs to build a rocket, which consists of several stages in some order. Each of the stages is defined by a lowercase Latin letter. This way, the rocket can be des...原创 2018-07-31 20:42:57 · 277 阅读 · 0 评论 -
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! = 1*2*...*N. For example, 5! = 120, 120 contains one zero on the tra...原创 2018-07-31 20:44:36 · 118 阅读 · 0 评论 -
A Sweet Journey
Master Di plans to take his girlfriend for a travel by bike. Their journey, which can be seen as a line segment of length L, is a road of swamps and flats. In the swamp, it takes A point strengths per...原创 2018-07-31 20:45:27 · 155 阅读 · 0 评论 -
pairs
ohn has nn points on the X axis, and their coordinates are (x[i],0),(i=0,1,2,…,n−1)(x[i],0),(i=0,1,2,…,n−1). He wants to know how many pairs<a,b><a,b> that |x[b]−x[a]|≤k.(a<b)|x[b]−x[a]...原创 2018-07-31 20:46:22 · 624 阅读 · 0 评论