Problem1056--多次求一段和(课程E)

1056: 多次求一段和(课程E)

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

Sample Input Copy

5 2
3 6 2 7 9
1 3 
4 3

Sample Output Copy

11 
9

HINT

scanf("%d%d",&a,&b);
printf("%d %d\n",a,b);

Source/Category