Search found 120 matches

by deddy one
Tue Dec 02, 2003 9:56 am
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 36115

in my accepted solution

1. valid isbn may contain white space
2. it should be 10 digit ( X is counted as digit if there is any )
3. if there is any X it must be occurs once and in the tenth position
[/b]
by deddy one
Sun Nov 30, 2003 2:04 pm
Forum: Volume 4 (400-499)
Topic: 400 - Unix ls
Replies: 93
Views: 26408

thx for your help kurnia, got Accepted now.
by deddy one
Fri Nov 28, 2003 7:22 am
Forum: Off topic (General chit-chat)
Topic: What do you like to eat?
Replies: 20
Views: 69800

noodles :D :D
fried rice :D :D
by deddy one
Tue Nov 25, 2003 1:09 pm
Forum: Volume 6 (600-699)
Topic: 621 - Secret Research
Replies: 45
Views: 25404

sample input:

Code: Select all

1
19000035

output should be:

Code: Select all

-

hint : use if else so not every if will executed
by deddy one
Tue Nov 25, 2003 8:40 am
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 163
Views: 37389

don't use conio.h
it will produce compile error
by deddy one
Mon Nov 24, 2003 12:18 pm
Forum: Volume 4 (400-499)
Topic: 400 - Unix ls
Replies: 93
Views: 26408

I'm using C language. I tried to looked back in previous post (waaay back), apparently someone already posted AC source code here, he use some formula to indicated terminating condition. I haven't tried that, but in my source code everytime I print I increment the counter and I check if counter==inp...
by deddy one
Sun Nov 23, 2003 4:42 pm
Forum: Volume 4 (400-499)
Topic: 400 - Unix ls
Replies: 93
Views: 26408

400 unix is WA

looked easy sounded easy but WA... :cry:

any trick here?? :-?

I'll send my source code or post it here if it's
necessary, although I prefer sending my source
code to anyone who wants to help :wink:
by deddy one
Sun Nov 23, 2003 8:45 am
Forum: Off topic (General chit-chat)
Topic: Acmbeginner.tk - a new web site for the acm programmer.
Replies: 8
Views: 6129

Here's a thought by mailing list that I joined: how about uploading exe on to some helping site so that anyone that didn't get Ac can compare the exe themself. beside..., downloading exe is not cheating like downloading source code right????? The exe that you download itself won't be able to sent to...
by deddy one
Sun Nov 23, 2003 8:10 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 289774

by deddy one
Sat Nov 22, 2003 12:50 pm
Forum: Volume 3 (300-399)
Topic: 347 - Run
Replies: 20
Views: 8308

347 - Run

got TLE after rejudge.
do I have to precalculate all of the runaround number??? :o

any hint??? :roll:
by deddy one
Sat Nov 22, 2003 12:39 pm
Forum: Volume 6 (600-699)
Topic: 602 - What Day Is It?
Replies: 56
Views: 26953

leap year after 1752 is considered like this [c]if ((!(year%4) && year%100) || !(year%400))[/c] leap year <= 1752 is considered like [c]if (!(year%4))[/c] yes there is is no date between 2 sep 1752 14 sep 1752, 2 sep and 14 sep 1752 is valid. the invalid one is from 3 sep to 13 sep 1752. hap...
by deddy one
Fri Nov 21, 2003 7:54 am
Forum: Volume 6 (600-699)
Topic: 602 - What Day Is It?
Replies: 56
Views: 26953

start with 1 1 1 being as Saturday.
that's my reference when solving this problem.

beware of the day after september 2 1752.
by deddy one
Sun Nov 16, 2003 7:02 pm
Forum: C
Topic: itoa function
Replies: 5
Views: 3966

in some problem I need to convert int to string, and I always use sprintf to do that. but in several cases I got Time Limit Exceeded. of course the main problem may not lie on the sprintf, but rather the algo that I'm using. but I want to know if there's any other way that faster than sprintf to con...
by deddy one
Sun Nov 16, 2003 6:55 pm
Forum: Volume 102 (10200-10299)
Topic: 10222 - Decode the Mad man
Replies: 30
Views: 14802

you can use gets to get one line and then tokenize it

ex :
[c]char line[100];
gets (line);

for (int i=0;line!='\0';i++)
if (line==' ') {
//if it's space do something....
}
else {
// do something else....
}
[/c]

another way is to use strtok.

just curious, are you trying to solve 494??
by deddy one
Sat Nov 15, 2003 9:04 pm
Forum: Volume 101 (10100-10199)
Topic: 10171 - Meeting Prof. Miguel...
Replies: 68
Views: 32424

CUT.......

Got Ac now.

I failed in this test case :

Code: Select all

4
Y U A B 3
M B B A 0
Y B C A 10
M U B D 1
A B
the answer is obvious so I wouldn't tell.

ciaoo...

Go to advanced search