-
February 28th, 2012, 10:47 PM
#1
How does this simple algorithm work?
I am studying this algorithm on Code Forces:
http://codeforces.com/problemset/problem/1/A
Why do most solutions simply multiply the standard input by 3 and divide by 2?
http://codeforces.com/problemset/status/1/problem/A
It seems to simple, but why does it work?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|