Connected

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Detect if you can connect every * with each other
by not using a * twice.

*** 187
* * -> 2 6 -> yes
*** 345

*** 1
* -> 2 -> no (can't go back to start node)
*** 345

* ** 1 87
* * -> 2 6 -> no (can't go back to start node without using a node twice)
*** 345

Print 'yes' if it is possible, 'no' if it is impossible.
Print 'empty' if no * is found.
Print 'maybe' if there is no space enclosed.

--mroman

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

****
*  *
****
----
****
*  *
* **
----
****
*
****
----
****
*  *
*  *
****
----
****
*  *
 * *
  **
   *
----
 *
* *
 *
----
 *
*
 *
----

Sample output:

yes
no
no
yes
yes
yes
no

Sample input:_

    ****
   *    *
   *     *
   *      *
    *******
----
******
*    *
*    *
*    *
******
----
***
*  *
****
----
***
*   *
*****
----
----
*******
*******
----
**
* *
**
----
*
 *
  *
   *
----
**
**
----
----
***
* *
***
----
**********************************
*                                *
**********************************
----
***
*
*
---

Sample output:

yes
yes
yes
no
empty
maybe
yes
no
maybe
empty
yes
yes
no

Sample input:_

     *
    * *
   *   *
  *     *
 *********
----
@@@@
@  @
@@@@
----
@@@@@
@***@
@* *@
@***@
@@@@@
----
ABCDEFGH
ABCDEFGH
ABCDEFGH
|*****|*
|*   *|*
|*****|*
++++++++
----
**
**
----
****
*   *
 *   *
  *   *
  *****
----
*****
*   *
*****
----
----
This challenge is not easy
----
********************************************
*
 *****************
                 ***************************
----
*********
*       *
 ****** *
      ***
----
* ***
 *  *
 ****
----
*****
 *  *
 ****
----
**
* **
*   **
******
----
***
** ***
**     ***
----
*********
*       *
 *******
----
----
***
* *
* *
* *
* *
* *
***
----
**
**
----
****
****
----
Embedding is weak!
----
Embedding is really weak!
**
**
----
********
*
*
*
*
********
----
***
*
***
----
***
* *
***
----
***
* *

***
----
****
*  *
****
----

***
* *
***
----
****
   *
   *
****
----

Sample output:

yes
empty
yes
no
maybe
yes
yes
empty
empty
no
yes
no
yes
yes
no
yes
empty
yes
maybe
maybe
empty
maybe
no
no
yes
no
yes
yes
no

Ranking

Perl _

RankUserSizeTimeDateStatistics
1tybalt892151.45812012/08/02 12:02:141B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1hallvabo (embed)960.04842012/08/02 11:38:580B / 64B / 30B

J _

RankUserSizeTimeDateStatistics
1I., S.1640.11762012/07/10 20:19:590B / 50B / 107B

C _

RankUserSizeTimeDateStatistics
1david_werecat (rnd)1460.00072012/07/27 21:39:359B / 65B / 72B
2david_werecat1580.04162012/07/27 21:35:389B / 74B / 75B

Language Ranking_

RankLangUserSizeScore
1Pythonhallvabo (embed)9610000
2Cdavid_werecat (rnd)1466575
3JI., S.1645853
4Perltybalt892154465

return top