Search found 90 matches

by bery olivier
Sun Oct 19, 2003 10:05 am
Forum: Volume 101 (10100-10199)
Topic: 10107 - What is the Median?
Replies: 74
Views: 18619

You do not have to sort your entire array for each input.
by bery olivier
Tue Oct 14, 2003 11:51 am
Forum: Volume 1 (100-199)
Topic: 138 - Street Numbers
Replies: 93
Views: 6996

Hi, Sorry, I'm a bit late. But I got some problem to log in the board under linux. That's right, I have a weird solution. This is how it works : The result is : 6 | 8 35 | 49 204| 288 1189| 1681 6930| 9800 40391| 57121 235416| 332928 1372105| 1940449 7997214| 11309768 46611179| 65918161 for the left...
by bery olivier
Tue Oct 14, 2003 11:35 am
Forum: Volume 2 (200-299)
Topic: 255 - Correct Move
Replies: 17
Views: 4337

Hi calvin, my little padawan ! Here is my input/output 19 32 49 0 35 41 20 38 36 20 59 3 61 56 40 33 21 9 24 7 3 34 23 13 3 55 52 43 17 5 13 4 26 48 45 46 24 19 46 20 22 4 13 62 25 35 9 24 43 13 57 3 26 19 58 16 53 13 22 57 18 48 38 1 32 51 20 15 36 42 20 61 42 46 18 51 7 32 2 2 5 29 21 48 45 12 51 ...
by bery olivier
Mon Sep 15, 2003 1:28 pm
Forum: Volume 104 (10400-10499)
Topic: 10443 - Rock
Replies: 26
Views: 3843

after one day :

_R_
RRS
_S_
by bery olivier
Mon Sep 15, 2003 1:27 pm
Forum: Other words
Topic: receiving all messaged from one forum
Replies: 1
Views: 828

I think this will overloaded the server. Not a good idea.
by bery olivier
Mon Sep 15, 2003 1:22 pm
Forum: Off topic (General chit-chat)
Topic: A Request to Everyone
Replies: 2
Views: 1695

agree with shamim. When I read the "posts since the last visit", I generally search two things : 1/ titles about the future of the site/algorithms/c etc... By reading the title, I know wether I am or not concerned. 2/ The names of the problems I solved. If the title is a number I geneally dont read ...
by bery olivier
Thu Aug 21, 2003 8:06 pm
Forum: Algorithms
Topic: how long the array is!!!
Replies: 7
Views: 2874

lol 10^14 char !!! 100 000 Giga Bytes. I want such a hard disk. Actually, this is often use for big database for companies like phone, gaz, etc.. (50million curtomers + adresses + phone number + location + ... to store, it grows up quickly). But don't even try to put it on a RAM memory. :D
by bery olivier
Thu Aug 21, 2003 7:37 pm
Forum: Other words
Topic: Anyone need sample input??
Replies: 9
Views: 1762

xbeanx -> Of course you got WA. It would be scary to lean that the OJ use such small inputs. I think that keep this file available could be interreting. As you said, we still can solve problems without downloading it. Maybe it won't be used by a lot of people (I hope) and not often by these ones, bu...
by bery olivier
Wed Jul 30, 2003 12:23 pm
Forum: C++
Topic: [Resolved] binary numbers
Replies: 3
Views: 1791

You can use the '&' operator as well

[c]#include<stdio.h>

void print(long bin)
{
if(bin>1)
print(bin>>1);
putchar((bin&1)+'0');
}


int main(void)
{
long bin;
scanf("%ld",&bin);
while(bin)
{
print(bin);
putchar('\n');
scanf("%ld",&bin);
}
return 0;
}[/c][/quote]
by bery olivier
Thu Jul 24, 2003 10:50 am
Forum: C++
Topic: This System uses GCC Compiler version 2.95
Replies: 7
Views: 2464

Moreover I find it suprising to try to use upper case letters for headers...
Image
by bery olivier
Tue Jul 15, 2003 6:06 pm
Forum: General
Topic: SECURITY FLAW IN ONLINE JUDGE
Replies: 34
Views: 8485

There is a lot of people register here. How can we be sure that none of the 33000 users will try this well known way. If she/he tests many problems in the same time, we cannot see it. We cannot be suspicious against the ones whitch submit ten differents problem, and again the same ten and so on. Mor...
by bery olivier
Tue Jul 15, 2003 12:40 pm
Forum: Other words
Topic: Just want to say thanks~~
Replies: 4
Views: 880

Good topic.
People always complain when things goes bad. But the staff need to know that those witch do not say anything may be very happy.
by bery olivier
Fri Jul 11, 2003 3:36 pm
Forum: C
Topic: Rounding methods
Replies: 6
Views: 2402

I don't know why. It kept running after 9999.9 9999.9. So I changed it until my program works fine. For those problems, I allways try some outputs and change my sorce until It outputs correct answers. If I may : that's risky, Olivier, my dear teammate ;) In RT Contest, you won't be able to do such ...
by bery olivier
Wed Jul 09, 2003 11:15 pm
Forum: C
Topic: Rounding methods
Replies: 6
Views: 2402

I don't know why. It kept running after 9999.9 9999.9. So I changed it until my program works fine.
For those problems, I allways try some outputs and change my sorce until It outputs correct answers.
by bery olivier
Sun Jul 06, 2003 6:31 am
Forum: C
Topic: Rounding methods
Replies: 6
Views: 2402

I got that problem 30 minutes ago. The input ends with a line containing 9999.9 9999.9 So I used an approximation 0.01 and got accepted. It didn't work with 0.001. http://www.smilies.org/basesmilies3/1050698056.gif [c] while( ABS(x-9999.9)>0.01 || ABS(y-9999.9)>0.01) { /* carry on */ } /* end */ [/c]

Go to advanced search