Search found 22 matches

by mars kaseijin
Wed Jul 29, 2015 1:40 pm
Forum: Volume 3 (300-399)
Topic: 322 - Ships
Replies: 1
Views: 1827

Re: 322 - Ships

I looked at sample input, 10 x 10, but did not understand how is it "Yes" when the square box
xx
xx
is no where in the 10 x 10 grid! The problem description does say all ships are supposed in. NO?
by mars kaseijin
Mon Oct 20, 2014 11:23 am
Forum: Volume 1 (100-199)
Topic: 185 - Roman Numerals
Replies: 4
Views: 2411

Re: 185 - Roman Numerals

It got me thinking quite a while. Here is what I think: Arabic Numerals XX + XX = MXC ( where M = 1, X = 9, C = 8 ) substitute all values, it reads: 99 + 99 = 198 which is BODMAS math. Now how you substitute what values for X, M or C is going to be computational expensive... Definitely longer than t...
by mars kaseijin
Sat Oct 04, 2014 6:03 pm
Forum: Volume 6 (600-699)
Topic: 689 - Napoleon's Grumble
Replies: 2
Views: 2599

Re: 689 - Napoleon's Grumble

Just as I thought, the sample input cherry picks letters to form palindromes. Here are my inputs: tool loot old gold pool loop scoop tea eat poop yacht natch stripe pride fool aloof feed beef evil live deal lead merit item pit tip error terror rage gear keep eye peek leg gel owl flow utter rut doom ...
by mars kaseijin
Thu Dec 18, 2008 4:19 am
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 48974

Re: 673 (dont open a new thread.......just search the prob. num.

I went through problem description looking for sort and ordered in addition to balanced output. I found none, hence "([)]" should be Yes. Meaning the input can be jumbled as long as it balances in the end. dont open a new thread as there is already many threads...think about that. however ur progra...
by mars kaseijin
Thu Sep 25, 2008 10:45 am
Forum: Volume 3 (300-399)
Topic: 320 - Border
Replies: 24
Views: 2562

Re: Why 320 WA

I did 320 for the fun of it. The output is unexpected . Compile and take a look for yourself. // // File: newmain.cc // Author: Vaio // // Created on September 17, 2008, 7:32 PM // There is a difference between points and squares but the diagram is plain // wrong. #include <iostream> #include <strin...
by mars kaseijin
Mon Jun 09, 2008 3:41 am
Forum: Volume 3 (300-399)
Topic: 307 - Sticks
Replies: 56
Views: 18322

Re: 307 CE

Greetings zaza, it is now g++ 4.3.0, and processors have dual core churning 64 bits; random_shuffle is part of <algorithm>. 8)
compiling your code now gives warning between unsigned and signed integers, it runs OK!
by mars kaseijin
Mon Dec 17, 2007 5:37 pm
Forum: Volume 2 (200-299)
Topic: 286 - Dead Or Not -- That Is The Question
Replies: 19
Views: 5245

woops, electronic board posting ate whitespaces that is meant to be empty squares. :(
any way, here is what i meant:
"K r b"
by mars kaseijin
Mon Dec 17, 2007 5:34 pm
Forum: Volume 2 (200-299)
Topic: 286 - Dead Or Not -- That Is The Question
Replies: 19
Views: 5245

Here is a favourite test case that i use in the early stage.

K r b
by mars kaseijin
Sat Aug 25, 2007 12:33 pm
Forum: Volume 1 (100-199)
Topic: 141 - The Spot Game
Replies: 12
Views: 4168

Greetings Darko,
my code outputs "Draw" after 50x2 moves.
Do you have more sample data?
by mars kaseijin
Sat Aug 25, 2007 12:21 pm
Forum: Volume 1 (100-199)
Topic: 141 - The Spot Game
Replies: 12
Views: 4168

:o Same here, will need lots of sample data. Including the ones that reduce to an
empty board.
by mars kaseijin
Sat Aug 25, 2007 12:16 pm
Forum: General
Topic: a basic question
Replies: 2
Views: 1907

Prepare for the biggest data input, pick a data type that will accomodate it.
:-? Wish i have 64-bit machine to play with...
by mars kaseijin
Sat Aug 25, 2007 12:11 pm
Forum: Volume 1 (100-199)
Topic: 141 - The Spot Game
Replies: 12
Views: 4168

I have recently completed this problem.
it compiled with error on Judge, but no problems with RH gcc-4.1.1...
:(
Wanna provide me with sample data? Will let you peek at my solution :wink:
by mars kaseijin
Fri Apr 27, 2007 11:27 am
Forum: Volume 1 (100-199)
Topic: 178 - Shuffling Patience
Replies: 15
Views: 3455

178 Shuffling Patience need further explanation

I am confused by the problem description of 7 cards dealt,
should not the 7th card cover the 4th card 8D <- 3H ?
before 3H gets played on a different pile all by itself?
8S + 3H is 11, so a covering should take place right above 8D. NO? :-?
by mars kaseijin
Tue Mar 14, 2006 9:09 am
Forum: Volume 7 (700-799)
Topic: 721 - Invitation Cards
Replies: 25
Views: 8770

Look, i can only show one way of doing it. (There are a few i know)
It is up to you to figure out the details.

Please make yourself useful and gimme sample inputs. Lots and lots of sample inputs! :(
by mars kaseijin
Sat Mar 11, 2006 5:23 am
Forum: Volume 7 (700-799)
Topic: 721 - Invitation Cards
Replies: 25
Views: 8770

The algo needs tweaking so that it could fit p721. Will need some re-definition of structs to represent sample input... otherwise, the algo takes care of the rest. Besides this algo, i am currently implementing Dikestra's algo + weighted graph for this problem. It will go far... BTW, do you play fre...

Go to advanced search