Easy
Count Every Attempt
Read n, then n lines. Try to convert each to int and add it to a total; skip bad lines. Use
finally to count every attempt. Print total=T attempts=N.Input
n, then n lines.
Output
One line.
Sample 1
Input
3 1 x 3
Output
total=4 attempts=3
Sample 2
Input
1 5
Output
total=5 attempts=1
Output appears here