Codeforces Beta Round #8 A. Train and Peter(字符串) A. Train and Peter time limit per test:1 second memory limit per test:64 megabytes Peter likes to travel by train. He likes it so much that on the train he falls asleep. Once in summer Peter was going......
Your problem is to say the number of lanterns Vova will see during the path. Vova plans to go tott different conferences, so you should answerttindependent queries. Input The first line of the input contains one integertt (1≤t≤1041≤t≤104) — the number of queries. Thentt lines follo...