Uploaded by kt7148

dsjsdv

advertisement
Gueston Description:
An era A contains nage wih he Following conn:
A” conan same in sored order.
Inger occurs i*Rooclquilcil/2 ims nthe aay.
AN ements or grate han or squelo 1.
Fain hos given Q queries of ype:
LR: Fin the number of isnt vives preset in sbaray ALR].
Note: based indesing is lowed.
Consors:
1=Q<10%
TeleRe 1003
Input Format:
The ft ine contain on insger Q denoting the umber of queries.
Next Q lines coneins hwo space separated ingrs LR, denoting he query.
utp Format:
Pint the cusput in separa ines contains require mbar of dint vols.
Euangle
Sample out
2
1
Te
First fo smarts of the aay A are 1,122.2,333.33,
+ For Guary |
Number of disc laments in subarray AL. 3] 52.
+ For Guary 2
Number of discs laments in subarray ALL] 3
Download