First homework of new year!!
1
Name:
Anonymous
2010-01-01 23:19
Let X be an integer.
1) Read in integer X from standard input
3) Let Y be X multiplied by 2
4) output "SUSSMAN!!!!!!" Y times
2
Name:
Anonymous
2010-01-01 23:30
#include <stdio.h>
int main ()
{
int x;
for (scanf("%d", &x); x > 0; x--)
printf("SUSSMAN\n");
return 0;
}
3
Name:
Anonymous
2010-01-01 23:31
>>2
me being a faggort
Excuse me.
#include <stdio.h>
int main ()
{
int x;
for (scanf("%d", &x), x *= 2; x > 0; x--)
printf("I CANNOT READ MY ASSIGNMENT\n");
return 0;
}
4
Name:
Anonymous
2010-01-01 23:33
(( Y = `head -1` * 2 )); while (( Y-- )); do echo -n 'SUSSMAN!!!!!!'; done
5
Name:
Anonymous
2010-01-01 23:41
<script type="text/javascript">
var times = prompt("How many Sussmen?", "1");
for (i=0; i < times; i++) {
document.write("Sussmen!<br>\n");
}
</script>
6
Name:
Anonymous
2010-01-01 23:43
>>5
ah shit, /s/Sussmen/SUSSMAN!!!!!!/ ... also code tags.
<script type="text/javascript">
var times = prompt("How many Sussmen?", "1");
for (i=0; i < times; i++) {
document.write("SUSSMAN!!!!!!<br>\n");
}
</script>
7
Name:
Anonymous
2010-01-01 23:44
putStr.unlines.flip replicate "SUSSMAN!!!!!!".(*2).read =<< getLine
8
Name:
Anonymous
2010-01-01 23:48
>>7
(≖_≖)
What pig disgusting language is that?
9
Name:
Anonymous
2010-01-01 23:51
why is everyone stupid
main =
x <- readLine
y <- return $ x * 2
replicateM_ y $ putStrLn "SUSSMAN!!!!!!"
10
Name:
9
2010-01-01 23:55
>>9
s/readLine/readLn/
>>7
readLn >>= (flip replicateM_ (putStrLn "SUSSMAN!!!!!!")).(*2)
11
Name:
Anonymous
2010-01-02 0:18
Malkovich Sussman! Malkovich "Sussman!!!!!!"
Malkovich ::Sussman Malkovich(Malkovich x) --
Malkovich y Malkovich x<< Malkovich 2
Malkovich ... y --
Malkovich::println Malkovich Sussman!
Malkovich Malkovich
Malkovich Malkovich
Malkovich ::Malkovich Malkovich() --
Malkovich x Malkovich Malkovich::readln
Malkovich::Sussman Malkovich x
Malkovich Malkovich
Malkovich::Malkovich
12
Name:
Anonymous
2010-01-02 0:30
>>11
Oh dang, I left out a Malkovich. I'm not even joking.
13
Name:
Anonymous
2010-01-02 2:45
print ["Sussman\n"*int(raw_input())*2][:-1]
14
Name:
Anonymous
2010-01-02 2:46
DISREGARD
>>13 I SUCK
CAWKS
print ("Sussman\n"*int(raw_input())*2)[:-1]
15
Name:
Anonymous
2010-01-02 3:41
(dotimes _ (* (read) 2) (print "SUSSMAN!!!!!!"))
16
Name:
Anonymous
2010-01-02 6:21
(STDIN.read.to_i*2).times{puts("SUSSMAN!!!!!!")}
17
Name:
Anonymous
2010-01-02 6:38
print"SUSSMAN!!!!!!\n"x+int<>*2
PERL FUCK YES
18
Name:
Anonymous
2010-01-02 7:04
p"X=" r *$0,2 :0 =0 [ g99 ] p"SUSSMAN!!!!!!" - g0 :99
Expert programming language.
19
Name:
Anonymous
2010-01-02 7:20
IDENTIFICATION DIVISION.
PROGRAM-ID. PRINT-SUSSMAN.
AUTHOR. ANONYMOUS.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 TEXT-OUT PIC X(13) VALUE 'SUSSMAN!!!!!!'.
01 LOOP PIC 9(8) VALUE ZERO.
01 NUM-TIMES PIC 9(8) VALUE ZERO.
PROCEDURE DIVISION.
MAIN-PARAGRAPH.
ACCEPT NUM-TIMES.
MULTIPLY NUM-TIMES BY 2 GIVING NUM-TIMES.
PERFORM VARYING LOOP FROM NUM-TIMES BY -1 UNTIL LOOP = 0
DISPLAY TEXT-OUT
END-PERFORM
STOP RUN.
20
Name:
Anonymous
2010-01-02 8:53
print'SUSSMAN'*(int(raw_input('')*2)
21
Name:
Anonymous
2010-01-02 12:35
("SUSSMAN!!!!!!"xx$*IN.get*2)».say
PERL6 FUCK YES
22
Name:
Anonymous
2010-01-02 12:50
(use-modules (ice-9 readline))
(let loop ((n (* 2 (string->number (readline)))))
(if (> n 0)
(begin
(display "SUSSMAN!!!!!!\n")
(loop (- n 1)))))
first scheme program evar, true fact
23
Name:
Anonymous
2010-01-02 13:02
>>22
1-armed ifs are ugly, use
when since it makes it clear that there is no alternative case.
[code] (let ((y (* 2 (read))))
(do ((x 0 (+ x 1)))
((> x y))
(display "SUSSMAN!!!!!!")
(newline)))[code]
24
Name:
Anonymous
2010-01-02 13:10
>>21
I'm so scared of Perl6. I understand your post and all, it's just that I'm going to be shitting hypermeta operators by the time I've written my first program in it.
25
Name:
Anonymous
2010-01-02 14:47
Obligatory Java crap.
import java.io.*;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.lang.Float;
import java.lang.Integer;
import java.lang.Math;
import java.lang.NumberFormatException;
// Filename is "Sussman.java"
public class Sussman
{
public static void main(String[] args)
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int X = 0, Y = 0;
String str = br.readLine();
System.out.println("");
try
{
if(X.indexOf(".") != -1)
{
X = Math.round(Float.parseFloat(str));
}
else
{
X = Integer.parseInt(str);
}
}
catch(NumberFormatException nf_e)
{
X = 1;
}
Y = X * 2;
for(X = 0; X < Y; X++)
{
System.out.println("SUSSMAN!!!!!!");
}
}
}
26
Name:
Anonymous
2010-01-02 14:49
27
Name:
Anonymous
2010-01-02 14:49
28
Name:
Anonymous
2010-01-02 15:20
SCHQIILLLLLLLLLLL
29
Name:
Anonymous
2010-01-02 15:27
Hello /prog/ I'm a first year computer science student how do you like my code?
I hope this helps with your homework!
<?php
/////////////////////////////////////////////////////
// Prints exactly as many Sußmen as the user wants
// Copyright © 2010 me
//////////////////////////////////
// ALL RIGHTS RESERVERD
//////////////////////////////////////////////////
echo "How many Sußmen do you want? "
;$amount = ''; # for some reason I need the ; at the beginning here. PHP is buggy lol
$myStandardInFileHandle = fopen('php://stdin', 'r'); # Thanks Joe!
#$amount = fread($myStandardInFileHandel, 999999))
# $amount = fread($myStandardInFileHandle = fopen('php://stdin', 'r');
$amount = fgets($myStandardInFileHandle, 999999); # Thanks #php!
##for($amount = 0; $amount < $amount; $amount + 1) { # why isn' this working?
#while($i > $amount) {
$myLoopCounterVariable = 1;
while($i < $amount) {$myLoopCounterVariable=$myLoopCounterVariable+1;
if($myLoopCounterVariable % 2 == 0){$i=$i+1;} # WOW PHP is cool!
echo "SUßMAN!!!!!!\n";}
echo "SUßMAN!!!!!!\n"; # for some reason the loop dies too early :(
?>
30
Name:
Anonymous
2010-01-02 15:32
>>26
Why? Do you actually like
COMMON ENTERPRISE BUSINESS-ORIENTED LANGUAGE ?
31
Name:
Anonymous
2010-01-02 15:42
# for some reason I need the ; at the beginning here. PHP is buggy lol
$myLoopCounterVariable = 1;
# for some reason the loop dies too early :(
10/10 I raged.
32
Name:
Anonymous
2010-01-02 15:45
| »
is valid Perl6 code?
33
Name:
Anonymous
2010-01-02 15:49
>>31
learn
to
quote
before
you
rage
34
Name:
Anonymous
2010-01-02 16:05
35
Name:
Anonymous
2010-01-02 16:09
>>32
Yes.
« and
» are called the hyperoperators.
The example in
>>21 applies calls the method
say for each member of the list filled with Sussmen. It can be used for many other purposes too, though.
For example
(1,2,3) «+« 1 increments each value of the left-hand list by 1.
( (1,2,3) «/« 2 )».say
=> 0.5
1
1.5
36
Name:
Anonymous
2010-01-02 16:12
>>34
Awesome, too bad I'll probably be dead by the time it come out.
37
Name:
Anonymous
2010-01-02 16:13
>>36
The first major release of Rakudo, Rakudo Star, is planned for release in April 2010.
The current Perl 6 is quite usable. There are more than a few rough edges, but overall it's very nice.
38
Name:
Anonymous
2010-01-02 16:44
>>29
What the fuck.
It took me a while till I could get my head around what that 'loop' actually does. 10/10, if only for the amount of effort and polish that went into that post.
39
Name:
Anonymous
2010-01-02 22:38
echo str_repeat("SUSSMAN!!!!!!\n", fgets(STDIN)*2);
40
Name:
Anonymous
2010-01-02 22:47
//C# wankery
using System;
class Program
{
static void Main(string[] args)
{
for (; ; )
{
try
{
for (int c = 0, n = Convert.ToInt32(Console.ReadLine()); c < n; ++c)
{
Console.WriteLine("SUSSMAN!");
}
}
catch
{
continue;
}
break;
}
}
}
41
Name:
Anonymous
2010-01-02 22:48
write an IRC bot that pretends to be a real person
42
Name:
Anonymous
2010-01-03 0:14
int foo; scanf("%d", &foo);
while (foo --> 0) {
printf("SUSSMAN!\n");
}
43
Name:
Anonymous
2010-01-03 0:20
>>42
-->
The C Arrow Operator
44
Name:
Anonymous
2010-01-03 0:24
>>43
It's the "goes to" operator according to the ANSI standard.
45
Name:
Anonymous
2010-01-03 2:06
(loop repeat (* 2 (read)) do (print "SUSSMAN!!!!!!"))
46
Name:
Anonymous
2010-01-03 7:20
+++++++[>++++++++++++<-]>-[>+>+>+>+>+>+>+<<<<<<<-]>>++>
>>------ >------------------>----->>++++[<++++++++>-]<+>++++++++++>,>++++++[<-------->-]<[>++<-]>[<<<<<<<<<<.>.>.>.>.>.>.>.....>.
>>- ]
47
Name:
Anonymous
2010-01-03 8:01
48
Name:
Anonymous
2010-01-03 19:03
for i = 1, io.read() * 2 do print"Sussman" end
49
Name:
Anonymous
2010-01-03 19:06
>>47
I thought it was sort of funny.
50
Name:
Anonymous
2010-01-03 22:51
x = gets.chomp.to_i
y = x * 2
y.times { puts "SUSSMAN!!!!!!" }
I get bonus points for following directions.
51
Name:
Anonymous
2010-01-04 1:09
52
Name:
Anonymous
2010-01-04 1:31
53
Name:
Anonymous
2010-01-04 1:50
Why do all your homeworks involve printing sussmen?
54
Name:
Anonymous
2010-01-04 9:00
>>53
I think this guy's onto us.
55
Name:
Anonymous
2010-01-04 9:07
>>53
That's not true, sometimes we print Ablesons and Cudders
56
Name:
Anonymous
2010-01-04 10:09
>>53
if you got a better idea why dont you share it with us?
57
Name:
Anonymous
2010-01-04 10:52
58
Name:
HAXUS THE CAMELFUCKER
2010-01-04 11:16
59
Name:
Anonymous
2010-01-04 11:26
>>58
that's no beg. you've got to put some beg into it
60
Name:
Anonymous
2010-01-04 11:47
I DEMAND TO DISAGREE!!
61
Name:
Anonymous
2010-01-04 12:33
>>1
1. Where's
2) ?
2.
Now you have two problems.
62
Name:
Anonymous
2010-01-05 8:58
>>60
We do not negotiate with
Sepples terrorists.
63
Name:
Anonymous
2010-01-05 18:25
64
Name:
Anonymous
2010-01-05 18:29
>>63
ONLY IF YOU NEGOTIATE MINE
65
Name:
HAXUS THE PANHANDLER
2010-01-05 18:35
>>59
Hey, kid, you got a minute? You wanna know how I got this scar? I got this in Vietnam, kid, in the shit. We used to throw captives' families out of helicopters to make them talk. Horrible, kid, but they made us do it. You wouldn't believe. Anyway, once they wanted me to throw out a little kid. A little kid! It was horrible, I couldn't do it. But then the little fucker slashed at me with a knife. Say, kid, you got any differing opinions for this starving veteran? I need to disagree, kid. I gotta disagree!
66
Name:
Anonymous
2010-01-05 22:34
//Standard C++
#include <iostream>
int main()
{
int x, y;
cin >> x;
y = x * 2;
for( int i = 0; i <= y; ++i )
cout << "SUSSMAN!" << endl;
return 0;
}
67
Name:
Anonymous
2010-01-05 22:41
>>65
They made you use Sepples in Vietnam? I'd have scars too. I weep for your losses.
68
Name:
Anonymous
2010-01-06 5:47
#!C:\xampp\php\php.exe -q
<?php
isset($_SERVER['argv'][1]) ?
$max = $_SERVER['argv'][1] * 2 :
$max = 0;
for($i = 0; $i < $max; ++$i)
echo "Sussman!!!!!!\r\n";
?>
69
Name:
Anonymous
2010-01-06 6:09
oh, hurr durr
1) Read in integer X from standard input
standard input
#!C:\xampp\php\php.exe -q
<?php
fwrite(STDOUT, "Enter >0 to Suss, 0 to quit\r\n");
do {
fscanf(STDIN, "%d\n", $max);
$max *= 2;
for($i = 0; $i < $max; ++$i)
fwrite(STDOUT, "Sussman!!!!!!\r\n");
} while ($max != 0)
?>
70
Name:
dasuraga
!8GgBtN/zr.
2010-01-06 13:02
>>66
how are you not even able to make a for loop run the right number of times?
FENCEPOST ERRORS, PEOPLE! DON'T DO THEM!
71
Name:
Anonymous
2010-01-06 13:21
>>70
Not to mention not doing
std::cin
72
Name:
Anonymous
2010-01-06 13:22
#define as while
printf("Requested number of Sussmen: ");
int x;
x = scanf("%d", &x);
printf("\n");
int y = x << 1;
as (y --> 0)
printf("%s\n", "SUSSMAN!!!!!!");
73
Name:
Anonymous
2010-01-06 13:41
>>71
Not to mention Sepples.
74
Name:
Anonymous
2010-01-06 14:00
(y --> 0) is the goes to operator
75
Name:
Anonymous
2010-01-06 14:27
>>74
You're wrong, the operator is just
--> .
76
Name:
Anonymous
2010-01-06 15:13
>>74
Excuse me kudasai, but
goto is the goes to operator.
77
Name:
Anonymous
2010-01-06 15:18
Excuse me kudasai
(ಠ‿ʘ) < lol wut
78
Name:
Anonymous
2010-01-06 15:23
79
Name:
Anonymous
2010-01-06 15:25
80
Name:
Anonymous
2010-01-06 15:31
81
Name:
Anonymous
2010-01-06 16:39
82
Name:
EMK MEME FAN
2010-01-06 17:48
epic lulz rofl xd
83
Name:
Anonymous
2010-01-06 18:40
This is currently
the highest rated thread on Reddit, and the top 2 posts also have over 1000 upvotes each
http://www.reddit.com/r/funny/comments/alwm7/my_9_year_old_cousin_and_i_are_playing_a_game_of/
* Hilarity ensues!
84
Name:
Anonymous
2010-01-06 20:28
85
Name:
Anonymous
2010-01-07 10:36
86
Name:
Anonymous
2012-03-26 11:47
Inte l GET