ACM (UVa) : 11547


Data type:
Long Integer

Algorithm:
Input: N
N *= 567
N /= 9
N +=7492
N *= 235
N /=47
N -=498
Output: tens column of N

Tens Column means,
if The final result is : 856253, then output: 5
if : 15324, output: 2
if : 163, output: 6
if : 74, output: 7
if : 9, output: 0

Critical input:
3
1000
-1000
953

Critical output:
6
3
5

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s