Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Programming Pushups part III

Name: Anonymous 2015-01-08 10:13

sample input: 9

sample output:

* *
* *
* *
* *
*
* *
* *
* *
* *

Name: Anonymous 2015-01-08 12:08

X←{' *'[1+a∨⌽a←⍵ ⍵⍴1,⍵⍴0]}
X 9
* *
* *
* *
* *
*
* *
* *
* *
* *

Name: Anonymous 2015-01-08 12:18

>>2
for real??

Name: Anonymous 2015-01-08 12:21

Name: Over 1000 Thread 2015-01-08 12:27

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2015-01-08 14:34

ж ж ж
ж ж ж
ж ж ж
ж ж ж
жжж
ж ж ж
ж ж ж
ж ж ж
ж ж ж

Name: Cudder !MhMRSATORI 2015-01-08 14:49

sample input: 15

sample output:
* * * * *********
* * * * *
* * * * *
* * * * *
* * * *
* * * * *
* * * * *
* * * * *
* * * *********

Name: Anonymous 2015-01-08 15:05

sample input: хуй

sample output:
х х у у й й
х х у у й й й
х х у у й й й
х х уу й й й
х у й й й
х х у й й й
х х у й й й
х х у й й й
х х у й й

Name: Anonymous 2015-01-08 21:00

>>6-8
That's utter shit. Go away.

Name: golfer !XHdzZVpqZo 2015-01-08 23:52

>>2
wow APL is pretty cool, but not cooler than PERL:
my $n = <>;
print+($_%($n-1)==1||$_%($n+1)==1?'*':' ')."\n"x!($_%$n) for 1..$n**2;

5
* *
* *
*
* *
* *

Name: Anonymous 2015-01-09 4:04

function p(n)
for x=1,n do
for y=1,n do
if y == x or y == -x+n+1
then io.write('*')
else io.write(' ')
end
end
print''
end
end


>>2
o.o

Name: Anonymous 2015-01-09 10:45

>>7
Thats 16 though...

Name: Cudder !MhMRSATORI 2015-01-09 12:39

>>12
And >>1 is 10. Your point is?

Name: Anonymous 2015-01-09 14:49

Name: Anonymous 2015-01-09 15:36

sample input: ⑨

sample output:
              「o`':.‐ .._              _.. ‐::''´  ̄:`i
              |: : : :.::::::::`::‐.._       _.. ‐ ''´ : : : : : : : .::::::|
             |: : : : :__:: --―`――‐‐'::_ : : : : : : : : : : :...:::::::|
              _.':‐ '´            ` . : : : : : : :.::::::::::,!
 |、         /                   \ : : : : : :::::::/
 ヾ、._   ___,,.イ。                    \ : : : ::::〈
       ̄  /                    、     ヽ : ::::::::|
        ./           .!    i      .l .l     ',.::::::::::!
        /|   l   .l  | ,|    |       l l!     ',.::::::::|
      .//!  .| !  |  |/|    |ト、  | .!  |.|l |  l   ',:::::::|
        .'/ |   | |  |  ! |     .|! l|ヽ.|゙! |.  !!| l  |   .l、::::|゙:、
      l/ |  .l|| .! .__ハ、|. li    || | ゙| ゙!| |_ | | | .l   トヾj:::::゙:.、
       |!  .l  || lハ l「_ニト!、 l|、  ,!|_..l-‐ニ丁| | | | .!    |::::`\_ :\
       l   '.  || | ゙、〈´|。i゙! .l ゙.、| イi。il!:|.》|l   | l. |l    |! : : : : : : : ゙::...._
       |     '. || l   ヘ!弋ソ     ゙l 弋シ'/'|   .! l ,!|l    ゙、、::、- ..__: : : `::‐- .._ --
       l     ゙.|/   |///    __ ...... ////。 ,イ.' '   ||    ゙.、、\    ̄ ̄    /
          _.. ''//   ゝ、   「     .|/, ' / .l /   .!l、_   ヘ\ `         ./
   _. - '' _./イ    ,i/|`! ‐ ._`ー  '_//   //_....._ ヘ.  \.  | '.         /
   '.    ̄  /。  _,.イl ゙ | ゙! _..`T ´〈 〈   ̄/'    ` 、゙.、  ゛. |  l  ___,,. -‐'
    '.      | /´  ゙|\゙y '´/イ_.. '´\、.i'/ _ ___   .|._\-‐'.|''´ ̄
     '.    ゙、|    / /^ゝ「ヽ.   ,.×!´ -`i _l_>'i'┤_ _ _ _ ___
     ゙.      l   ,. ' ,.l「_プi「`》. ヽ/ :::::|     j´ `⌒´゙ヽ           `'' .._
       ゙、 _ ___./  / .:´.:l∠゙V'-''´:::::::::::::l`ー‐"|  |  :l  ゙!             `'' .._
          __| ./ : :..:.: : : : : : :::::__...-‐ノ...:‐┬ト  .j   |   l                `'' .._
    ,. ' ̄  ̄ ./ .7 : : : : : : : : :( ̄   __.:.:.__:.l ゙ ./__... '-‐'"               _ -‐ "´
  , '        ヽ,_,i : : : : : : : : : : :`'ー ''´:::: ̄::/ `¨´ `'' .._           _. -‐ ''"´
.            .| .|: :::::::::::::::::::::::::::::::::::::::::::::::..:/`'' - ._    `'' .._ _. -‐ ''"´
.._           / |: :::::::::::::::::::::::::::::::::::::::::::.: :/     `'' - ._   `

Name: Anonymous 2015-01-09 17:20

Our blades are sharp, Lord Bolton.

Name: Anonymous 2015-01-09 21:19

>>16
I proudly follow Lord Reek, the Eunuch King.

Is this what they call shitposting?

Name: Anonymous 2015-01-09 23:22

#include <stdio.h>
#define SYMBOL '*'

int main(int argc, char* argv[]) {
int i, j, input = atoi(argv[1]);

for(i = 0; i < input; ++i, puts(""))
for(j = 0; j < input; ++j)
putchar(i == j || j == input - i - 1 ? SYMBOL : ' ');
return 0;
}

Name: Anonymous 2015-01-09 23:29

>>2
Do it in AMPL now.

Don't change these.
Name: Email:
Entire Thread Thread List