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 1756. One and a Half Diggers

Stankov WA #9 [3] // Problem 1756. One and a Half Diggers 13 Mar 2010 15:21
I have Wa #9 please give some tests
Oleg Strekalovsky [Vologda SPU] Re: WA #9 [1] // Problem 1756. One and a Half Diggers 26 Apr 2010 19:57
Try to find minimum amount of peoples with complexity o(1) like that:
      if ((m * d1) % d2 == 0) {
         b = (m * d1) / d2;
      } else {
         b = (m * d1) / d2 + 1;
      }

Edited by author 26.04.2010 19:58
Petru Trimbitas Re: WA #9 // Problem 1756. One and a Half Diggers 2 Oct 2011 00:44
i've changed
        for(int j=1; j<=i; ++j) cout<<floor(fr)<<' ';
        for(int j=i+1; j<=d2; ++j) cout<<ceil(fr)<<' ';

to
        for(int j=1; j<=i; ++j) cout<<fixed<<setprecision(0)<<floor(fr)<<' ';
        for(int j=i+1; j<=d2; ++j) cout<<fixed<<setprecision(0)<<ceil(fr)<<' ';
Pavel Re: WA #9 // Problem 1756. One and a Half Diggers 5 Jul 2021 02:03
try bigger numbers