尺取
cugzyc
Coding && Reading.
展开
-
hdu 5178 pairs【尺取】
John 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-08-03 16:24:13 · 191 阅读 · 0 评论 -
codeforces 701C They Are Everywhere【尺取法】
Sergei B., the young coach of Pokemons, has found the big house which consists of n flats ordered in a row from left to right. It is possible to enter each flat from the street. It is possible to go o...原创 2018-08-03 11:35:19 · 127 阅读 · 0 评论