Search found 5 matches

by lehuyduc
Wed Jan 07, 2015 3:45 pm
Forum: Volume 112 (11200-11299)
Topic: 11280 - Flying to Fredericton
Replies: 43
Views: 23403

Re: 11280 - Flying to Fredericton

Didn't know that was necessary o_O . Thanks a lot
by lehuyduc
Tue Jan 06, 2015 3:09 pm
Forum: Volume 112 (11200-11299)
Topic: 11280 - Flying to Fredericton
Replies: 43
Views: 23403

Re: 11280 - Flying to Fredericton

Can you tell me on which test case my program fail please ? Thanks.

/*
ID: lehuydu1
PROG:
LANG: C++
*/

#include <bits/stdc++.h>
using namespace std;

#define x first
#define y second
typedef long long ll;
typedef double rl;
typedef pair<int,int> pt;
int dx[5]={0,0,0,1,-1},
dy[5]={0,1,-1,0,0 ...
by lehuyduc
Thu Dec 04, 2014 9:14 am
Forum: Volume 112 (11200-11299)
Topic: 11262 - Weird Fence
Replies: 16
Views: 10588

Re: 11262 - Weird Fence

I've found the mistake, it's not about the precision error. I forgot to add some edges :D. Thanks for helping anyway.
by lehuyduc
Wed Dec 03, 2014 9:22 am
Forum: Volume 112 (11200-11299)
Topic: 11262 - Weird Fence
Replies: 16
Views: 10588

Re: 11262 - Weird Fence

/*
ID: lehuydu1
PROG:
LANG: C++
*/

#include <bits/stdc++.h>
using namespace std;

#define x first
#define y second
#define xx first.first
#define xy first.second
#define yx second.first
#define yy second.second
#define cint const int
typedef long long ll;
typedef double rl;
typedef pair<int,int ...
by lehuyduc
Tue Dec 02, 2014 6:10 pm
Forum: Volume 112 (11200-11299)
Topic: 11262 - Weird Fence
Replies: 16
Views: 10588

Re: 11262 - Weird Fence

Can someone check my code for me ? I can't find the mistake :(
I binary search the answer then perform maximal matching.
Thanks in advance.

/*
ID: lehuydu1
PROG:
LANG: C++
*/

#include <bits/stdc++.h>
using namespace std;

#define x first
#define y second
#define xx first.first
#define xy first ...

Go to advanced search