摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=4350取余。举例子 3 31 2 3 4 5 1 2 3 4 5 1 2 3 4 5.1 2 3 4 5 1 2 3 4 5 1 2 3 4 5.由图可以看出,取的恰好是N个(L-R+1)的长度,然后就可以取余可以求得现在相对于R位置的位置。View Code 1 #include <stdio.h> 2 #define maxn 52 3 int ans[maxn]; 4 int main() 5 { 6 long t,n,l,r,d=0,i,j,mark; 7 scanf("%ld& 阅读全文
posted @ 2012-09-11 21:12
YORU
阅读(202)
评论(0)
推荐(0)

浙公网安备 33010602011771号