Search found 9 matches

by kamiloj
Sat Jul 31, 2010 6:08 am
Forum: Volume 7 (700-799)
Topic: 755 - 487--3279
Replies: 115
Views: 28395

Re: 755 - 487-3279

if you are solving it in java avoid TLE use TreeMap, the search is O(nlog2n) but when you end of append all the directory it is sorted, in other hand using hashmap hashset, and other tecniques, cause a TLE.

and of course use a buffer to print, don't print directly because the output is very large.
by kamiloj
Fri Jul 30, 2010 1:12 am
Forum: Volume 7 (700-799)
Topic: 753 - A Plug for UNIX
Replies: 20
Views: 10553

Re: 753 - A Plug for UNIX

Ok, here are some test cases for this problem. Input 10 4 A B C D 6 a 0 b 1 c 2 d 3 e 4 f 5 9 0 A 0 D 1 A 1 B 2 B 2 C 3 C 4 A 5 A 4 A B C D 5 laptop B phone C pager B clock B comb X 3 B X X A X D 5 A B C D E 5 a 0 b 1 c 2 d 3 e 4 9 0 A 0 D 1 A 1 B 2 B 2 C 2 E 3 C 4 B 5 A B C D E 6 a C b C c C d C e ...
by kamiloj
Sun Jul 25, 2010 7:41 pm
Forum: Bugs and suggestions
Topic: km long judge queue (IV.)
Replies: 4
Views: 2447

Re: km long judge queue (IV.)

Hi, sorry to be the bearer of bad news, but again in judge queue, thanks for your attention.
by kamiloj
Thu Jul 22, 2010 7:40 pm
Forum: Bugs and suggestions
Topic: km long judge queue (IV.)
Replies: 4
Views: 2447

judge queue

Again in Judge Queue.
by kamiloj
Tue Jul 20, 2010 9:33 pm
Forum: Bugs and suggestions
Topic: 670 - The dog task bad format input
Replies: 0
Views: 1910

670 - The dog task bad format input

the test case have a mistake according the definition. The first line of each dataset contains two integers N and M, separated by a space ( ). The second line contains N pairs of integers , separated by spaces. The third line contains M pairs of integers , separated by spaces. so if you try to read ...
by kamiloj
Tue Jun 15, 2010 11:55 pm
Forum: Volume 2 (200-299)
Topic: 253 - Cube painting
Replies: 28
Views: 12515

253 - easy solution

I dont now every body want to rotate the cube. it is a easy way to solve it, a very easy way. we have a cube, that is a great facilitator, for the problem. only see a ordinary cubic dice, the sum of your oposites sides is always seven, so if you are constructing one, and randomly generate the sides,...
by kamiloj
Wed Jan 16, 2008 4:26 am
Forum: Volume 8 (800-899)
Topic: 848 - Fmt
Replies: 16
Views: 12059

mmm, anyone can say me what's wrong?? I'm getting WA, and I don't know why.... thanks #include <iostream> using namespace std; bool a=true; void print(char * linea){ //corregir int len=72, i, j, k; for(k=len;k>=0&&linea[k]!=' ';k--); for(j=k;j>=0&&linea[j]==' ';j--); for(i=0;i<=j;i++){ cout<<linea[i...
by kamiloj
Mon Jan 14, 2008 5:40 am
Forum: Bugs and suggestions
Topic: the problem ghost
Replies: 1
Views: 1249

the problem ghost

:-? I had a problem with my Browser, and occur a problem during the shipment, after this appeared a sign that mentions that the ID of the problem was incorrect, but the judge runs him, and even but, the judge takes it as a TLE, with time 0.000 and without any name for the problem. so at this moment ...
by kamiloj
Fri Dec 29, 2006 3:51 pm
Forum: Volume 3 (300-399)
Topic: 343 - What Base Is This?
Replies: 72
Views: 21330

343

thank's for all.

Go to advanced search