Search found 5 matches

by Tirdad
Mon Sep 03, 2007 5:45 am
Forum: Volume 103 (10300-10399)
Topic: 10382 - Watering Grass
Replies: 29
Views: 17100


Jan said:
I havent checked why you are getting RTE but I can say that your code isnt correct. Check the case

Input:
Code:
12 28 15
1 10
5 19
19 3
5 6
6 2
8 2
12 16
3 8
17 12
5 3
14 13
3 2

Output:
Code:
-1

I checked this test case too and it produced the correct output with ...
by Tirdad
Wed Aug 29, 2007 4:25 am
Forum: Volume 103 (10300-10399)
Topic: 10382 - Watering Grass
Replies: 29
Views: 17100

Now I am getting confused about understanding the problem description!
my output for your test cases is
1
-1
1
1
1
1
and I still can't find out why these 1s should be 2s.
for the first testcase there is the point 16 18 which covers the square completely. for the 3rd and 4th and 5th and 6th ...
by Tirdad
Tue Aug 28, 2007 9:03 pm
Forum: Volume 103 (10300-10399)
Topic: 10382 - Watering Grass
Replies: 29
Views: 17100

is there anybody who can challenge this code?
by Tirdad
Tue Oct 10, 2006 6:09 pm
Forum: Volume 108 (10800-10899)
Topic: 10817 - Headmaster's Headache
Replies: 25
Views: 20092

Hi,
I've got TLE on this problem!
help me plz.
thanks in advance
#include <iostream>
#include <memory>
#include <assert.h>
using namespace std;
int dp[100000];
bool applicant[100][8];
int appVal[100];
int M,N,S;
int count ;
void dfs(int i,int state,int soFarVal)
{
if ( state > ( (1<<(2*S)) - 1 ...
by Tirdad
Mon Aug 14, 2006 8:25 pm
Forum: Volume 103 (10300-10399)
Topic: 10382 - Watering Grass
Replies: 29
Views: 17100

I,ve got WA for (10382) too!

I code this problem in two ways and both of them get WA
my first algorithm is
1.remove all circles which are inside bigger circles.
2.remove all circles which their effecting area(left bound to right bound)
is common with other unremoved circles.
3.count remained circles
i guess its true. but after ...

Go to advanced search