I get AC also with your hint.
Thanks.
Search found 6 matches
- Wed Nov 11, 2009 6:52 pm
- Forum: Volume 116 (11600-11699)
- Topic: 11651 - Krypton Number System
- Replies: 5
- Views: 3781
- Wed Nov 11, 2009 5:02 am
- Forum: Volume 116 (11600-11699)
- Topic: 11665 - Chinese Ink
- Replies: 2
- Views: 2727
Re: 11665 Chinese Ink
I have considered "Edges of polygons intersect" and "vertexes of a polygon are in an other polygon", but still I got WA...
Could you give me some hint?
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define INF 20000
struct Point {
int x,y;
Point(int x, int y) : x(x), y(y ...
Could you give me some hint?
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define INF 20000
struct Point {
int x,y;
Point(int x, int y) : x(x), y(y ...
- Sat Oct 31, 2009 12:51 pm
- Forum: Volume 117 (11700-11799)
- Topic: 11714 - Blind Sorting
- Replies: 14
- Views: 5045
Re: 11714 Blind Sorting
This is a faily easy problem if u consider a binary tree for finding the largest number
and the second largest number can also compute with the complesity of binary time
formula is
largest=n-1
second largest = lg2(n-1)
then sum the above two numbers
How to prove that it's minimum?
and the second largest number can also compute with the complesity of binary time
formula is
largest=n-1
second largest = lg2(n-1)
then sum the above two numbers
How to prove that it's minimum?
- Wed Oct 28, 2009 7:22 am
- Forum: Volume 116 (11600-11699)
- Topic: 11637 - Garbage Remembering Exam
- Replies: 1
- Views: 2538
11637 - Garbage Remembering Exam
I got WA but don't know what wrong is.
input:
my output:
But in UVa toolkit, the output is:
which ont is correct?
input:
Code: Select all
321 1
Code: Select all
3.9938
Code: Select all
3.9937
- Thu Oct 01, 2009 7:46 pm
- Forum: Volume 116 (11600-11699)
- Topic: 11603 - Its all about the Bandwidth
- Replies: 1
- Views: 1341
Re: 11603 - Its all about the Bandwidth
I used MST and I got AC.
But I haven't known why it works yet...
Can someone explain about it?
But I haven't known why it works yet...
Can someone explain about it?
- Tue Sep 29, 2009 5:19 pm
- Forum: Volume 116 (11600-11699)
- Topic: 11603 - Its all about the Bandwidth
- Replies: 1
- Views: 1341
11603 - Its all about the Bandwidth
Can someone give me some hint on how to solve it?
Thanx in advance.
Thanx in advance.