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?
Search found 22 matches
- Wed Jul 29, 2015 1:40 pm
- Forum: Volume 3 (300-399)
- Topic: 322 - Ships
- Replies: 1
- Views: 2725
- Mon Oct 20, 2014 11:23 am
- Forum: Volume 1 (100-199)
- Topic: 185 - Roman Numerals
- Replies: 4
- Views: 3286
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 ...
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 ...
- Sat Oct 04, 2014 6:03 pm
- Forum: Volume 6 (600-699)
- Topic: 689 - Napoleon's Grumble
- Replies: 2
- Views: 3732
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 ...
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 ...
- Thu Dec 18, 2008 4:19 am
- Forum: Volume 6 (600-699)
- Topic: 673 - Parentheses Balance
- Replies: 243
- Views: 79385
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 ...
dont open a new thread as there is already many threads...think about that.
however ur ...
- Thu Sep 25, 2008 10:45 am
- Forum: Volume 3 (300-399)
- Topic: 320 - Border
- Replies: 24
- Views: 4854
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 ...
//
// 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 ...
- Mon Jun 09, 2008 3:41 am
- Forum: Volume 3 (300-399)
- Topic: 307 - Sticks
- Replies: 56
- Views: 27115
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>.
compiling your code now gives warning between unsigned and signed integers, it runs OK!

compiling your code now gives warning between unsigned and signed integers, it runs OK!
- Mon Dec 17, 2007 5:37 pm
- Forum: Volume 2 (200-299)
- Topic: 286 - Dead Or Not -- That Is The Question
- Replies: 19
- Views: 8568
- Mon Dec 17, 2007 5:34 pm
- Forum: Volume 2 (200-299)
- Topic: 286 - Dead Or Not -- That Is The Question
- Replies: 19
- Views: 8568
- Sat Aug 25, 2007 12:33 pm
- Forum: Volume 1 (100-199)
- Topic: 141 - The Spot Game
- Replies: 12
- Views: 5422
- Sat Aug 25, 2007 12:21 pm
- Forum: Volume 1 (100-199)
- Topic: 141 - The Spot Game
- Replies: 12
- Views: 5422
- Sat Aug 25, 2007 12:16 pm
- Forum: General
- Topic: a basic question
- Replies: 2
- Views: 2241
- Sat Aug 25, 2007 12:11 pm
- Forum: Volume 1 (100-199)
- Topic: 141 - The Spot Game
- Replies: 12
- Views: 5422
- Fri Apr 27, 2007 11:27 am
- Forum: Volume 1 (100-199)
- Topic: 178 - Shuffling Patience
- Replies: 15
- Views: 5162
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?
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?

- Tue Mar 14, 2006 9:09 am
- Forum: Volume 7 (700-799)
- Topic: 721 - Invitation Cards
- Replies: 25
- Views: 11008
- Sat Mar 11, 2006 5:23 am
- Forum: Volume 7 (700-799)
- Topic: 721 - Invitation Cards
- Replies: 25
- Views: 11008