Our solutions are similar with little joey's,
but I used an additional trick(my English is too poor to
describe it precisely), and we binary-search the min. time:
a = infinity
i = best possible time
j = worst possible time
while(i<=j)
{
k = (i+j) / 2
if(All loads can be assigned)
a=min(res,k ...
Search found 5 matches
- Wed Mar 07, 2007 2:54 am
- Forum: Volume 111 (11100-11199)
- Topic: 11187 - Water Crisis
- Replies: 12
- Views: 7292
- Tue Mar 06, 2007 4:49 am
- Forum: Volume 111 (11100-11199)
- Topic: 11183 - Teen Girl Squad
- Replies: 28
- Views: 15711
Thank you
I got ac.
Here is some more test cases:

I got ac.
Here is some more test cases:
Code: Select all
4
0
0
1
0
3
0
3
2
1 2 999
2 1 999
Code: Select all
Case #1: 0
Case #2: 0
Case #3: Possums!
Case #4: Possums!
- Sat Mar 03, 2007 5:42 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11183 - Teen Girl Squad
- Replies: 28
- Views: 15711
- Tue Aug 01, 2006 7:49 am
- Forum: Volume 102 (10200-10299)
- Topic: 10208 - Liar or Not Liar that is the...
- Replies: 13
- Views: 4244
10208 I don't understand...
Output:
Sample I/O:
but 4!/3 = 8, 8 isn't a square of a valid largest side...
Code: Select all
Apart from that you also need to print the prime numbers with which you need to divide N! to make it the square of a valid largest side of one of his lands.
Code: Select all
4!
He is a liar.
3
- Sat Oct 08, 2005 2:11 pm
- Forum: Volume 1 (100-199)
- Topic: 142 - Mouse Clicks
- Replies: 58
- Views: 11640
142 mouse clicks WA - tricky input?
Hi,
I just check if some icons are overlaped by regions, if is, mark it.
For every click, I check if a region is selected, if is, print it, otherwise
print closest visible icons.
Anyone gets AC after rejudge?
#include<stdio.h>
class rg{
public:
int sx,sy,ex,ey;
bool inrg(int x,int y){
if(sx ...
I just check if some icons are overlaped by regions, if is, mark it.
For every click, I check if a region is selected, if is, print it, otherwise
print closest visible icons.
Anyone gets AC after rejudge?
#include<stdio.h>
class rg{
public:
int sx,sy,ex,ey;
bool inrg(int x,int y){
if(sx ...