UVa 10062 - Tell me the frequency Description: Given a line of text you will have to find out the frequencies of the ASCII characters present in it. The given lines will contain none of the first 32 or last 128 ASCII characters. Of course lines may end with \n and \r but always keep those out of consideration. Input Several lines of text are given as input. Each line of text is considered as a single input. Maximum length of each line is 1000. Output Print the ASCII value of the ASCII characters which are present and their frequency according to the given format below. A blank line should separate each set of output. Print the ASCII characters in the ascending order of their frequencies. If two characters are present the same time print the information of the ASCII character with higher ASCII value first. Input is terminated by end of file. Sample Input AAABBC 122333 Sample Output 67 1 66 2 65 3 49 1 50 2 51 3 Solution #include<stdio.h...
UVa 10071 - Back to High School Physics Description: A particle has initial velocity and acceleration. If its velocity after certain time is v then what will its displacement be in twice of that time? Input The input will contain two integers in each line. Each line makes one set of input. These two integers denote the value of v (−100 ≤ v ≤ 100) and t (0 ≤ t ≤ 200) (t means at the time the particle gains that velocity) Output For each line of input print a single integer in one line denoting the displacement in double of that time. Sample Input 0 0 5 12 Sample Output 0 120 Solution #include<stdio.h> int main () { int s,v,t; while( scanf ("%d%d",&v,&t)==2) { s=v*(t*2); printf("%d\n",s); } return 0; } See More Solution: UVa 10062 - Tell me frequency solution UVa 10079 - pizza cutting solutio UVa 10082 - wertyu solution UVa 10050 - Hartals solutions UVa 10038 - Jolly jumpers solution l UVa 100 - 3n + 1 problem solu...