ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2048. History

Some test cases
Posted by Smilodon_am [Obninsk INPE] 13 Jan 2019 01:51
My accepted program gives below answers for tests:

Test:
1919 1000000000

Answer:
0: 0
1: 427499181
2: 424999184
3: 147499717
4: 0
5: 0
6: 0
7: 0
8: 0
9: 0
10: 0
11: 0
12: 0


Test:
100000 2000000

Answer:
0: 0
1: 812251
2: 807500
3: 280250
4: 0
5: 0
6: 0
7: 0
8: 0
9: 0
10: 0
11: 0
12: 0
Re: Some test cases
Posted by dOLDed 3 Mar 2020 13:10
Have you used info that Gregorian calendar repeated for each 400 years?
Re: Some test cases
Posted by ura 27 May 2020 11:32
test:
9876 9876

answer:
0: 0
1: 1
2: 0
3: 0
4: 0
5: 0
6: 0
7: 0
8: 0
9: 0
10: 0
11: 0
12: 0

test:
1234567890 987654321012345678909876543210123456789

answer:
0: 0
1: 422222222232777777733972222221800000004
2: 419753086430246913536697530863777777784
3: 145679012349320987639206790123311111112
4: 0
5: 0
6: 0
7: 0
8: 0
9: 0
10: 0
11: 0
12: 0

Right or wrong?

Edited by author 27.05.2020 11:35