Search found 24 matches

by ahanys
Wed Mar 06, 2002 2:52 pm
Forum: Volume 100 (10000-10099)
Topic: 10066 - The Twin Towers
Replies: 35
Views: 13862

10066 - The Twin Towers

I think that i solve this probl em correctly. I find the longest common subsequence. May be there any numbers that are longer than "long long int". for example: in: 2 3 1 2 2 3 4 out: Twin Towers #1 Number of Tiles : 1 in2 1 2 1 2 3 out2: Twin Towers #2 Number of Tiles : 0 Is there any error in my i...
by ahanys
Mon Mar 04, 2002 2:51 pm
Forum: Volume 101 (10100-10199)
Topic: 10120 - Gift?!
Replies: 16
Views: 4096

Why if m,n>50 then print "try it"?


<font size=-1>[ This Message was edited by: ahanys on 2002-04-02 12:04 ]</font>
by ahanys
Mon Mar 04, 2002 11:19 am
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 41669

No case will be there. You use this imput reading:

char line[1001];
while (gets(line) != NULL) {
// do solution for each line
}

Your problem may be : If two
characters are present the same time print the information of the ASCII character with higher ASCII value first.

Hello
by ahanys
Wed Feb 27, 2002 2:56 pm
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 19711

In linux when you want to use the long long int, you only use it in function scanf and printf. For example: long long a; scanf("%lli",&a); printf("%lli",a); If you want to use unsigned long long, then use scanf("%llu",&a); unsigned long long is 64bits long. then you can store in it the value from 0 ...
by ahanys
Tue Feb 12, 2002 5:11 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 30751

May somebody explain me how create a recursive function which solve this problem.
Thanks in advance.
by ahanys
Tue Feb 12, 2002 5:02 pm
Forum: Volume 101 (10100-10199)
Topic: 10120 - Gift?!
Replies: 16
Views: 4096

10120

I can solve it by using a recursion. But my program has TIME LIMIT EXCEEDED. Know anybody a better(faster) solution?
by ahanys
Sun Dec 16, 2001 6:06 pm
Forum: Volume 100 (10000-10099)
Topic: 10061 - How many zero's and how many digits ?
Replies: 43
Views: 22293

I get accepted.
Thank you
by ahanys
Mon Nov 26, 2001 12:56 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 51234

See the problem set now it is updated. Num of buildings is now 5000 i think.
by ahanys
Mon Nov 26, 2001 12:50 pm
Forum: Volume 100 (10000-10099)
Topic: 10061 - How many zero's and how many digits ?
Replies: 43
Views: 22293

10061 - How many zero's and how many digits ?

May somebody please explain me how to solve this problem. I solved a problem 453 and I help you.


<font size=-1>[ This Message was edited by: ahanys on 2001-12-06 14:13 ]</font>

Go to advanced search