Created
April 16, 2011 18:06
-
-
Save stphung/923356 to your computer and use it in GitHub Desktop.
TopCoder SRM 503 Division 2 - 250 point problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ToastXRaspberry { | |
| public int apply(int upper_limit, int layer_count) { | |
| if (layer_count % upper_limit != 0) { | |
| return layer_count / upper_limit + 1; | |
| } else { | |
| return layer_count / upper_limit; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment