greatbn

Adam's Chocolate

Mar 16th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Adam's Chocolate
  2. 75
  3.  
  4. Adam is selling chocolate bars to raise money for this CTF. He sells n number of bars each day, where n is the sum of the digits of the
  5. day. (Ex. On October 13th, 1337, he would sell 1 + 0 + 1 + 3 + 1 + 3 + 3 + 7 or 19 bars)
  6.  
  7. How many bars will Adam sell in the year 2016 if he plans to take a break from selling chocolate on Christmas and days where the number of bars he will sell equals a perfect cube or a perfect square.
  8.  
  9. Enter the number as the answer.
Add Comment
Please, Sign In to add comment