[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.3762948 [View]
File: 31 KB, 251x232, 1265690265300.jpg [View same] [iqdb] [saucenao] [google]
[ERROR]

>>3762921

Not a problem, just strikes me as odd. But I like it. A more proper reaction face would've been

>> No.2298453 [View]
File: 31 KB, 251x232, 1265690265300.jpg [View same] [iqdb] [saucenao] [google]
2298453

Don't worry, guys, maybe the Sun is just cumguzzling on us... But the pressure looks rather normal.

OH GOD.

>> No.2207579 [View]
File: 31 KB, 251x232, 1284994522534.jpg [View same] [iqdb] [saucenao] [google]
2207579

>>2207570

>> No.2162402 [View]
File: 31 KB, 251x232, 1284994522534.jpg [View same] [iqdb] [saucenao] [google]
2162402

This is not homework, but a fucking hard problem I can't solve that I found in a book.

Let A be a m×n matrix representing the pixels of a monochrome picture (1 for black, 0 for white). It is only possible to draw with a "+" shaped brush (the intersection pixel has to be on the picture when drawing) that inverts the color of each pixel it touches (white becomes black and vice versa).
The algorithm needs to return 1 if it is possible to draw a given picture with the brush and 0 if it is not.

Examples:

0 1 1
1 0 0
0 1 1
Result: 1

0 0 0 0 0
0 0 0 0 0
1 0 0 0 0
0 1 0 0 0
0 0 0 0 0
Result: 0

0 1 0
1 1 1
0 0 0
1 1 1
0 0 0
1 0 1
1 0 1
0 1 0
0 0 0
0 0 0
Result: 1

Just pointing me to the right direction would enlighten my day.

>> No.1779061 [View]
File: 31 KB, 251x232, 1265690265300.jpg [View same] [iqdb] [saucenao] [google]
1779061

>> No.1521325 [View]
File: 31 KB, 251x232, wow2.jpg [View same] [iqdb] [saucenao] [google]
1521325

FUCK. I said carrot.

>> No.1471237 [View]
File: 31 KB, 251x232, 1279937384868.jpg [View same] [iqdb] [saucenao] [google]
1471237

Its a lawn mower

>> No.1187622 [View]
File: 31 KB, 251x232, 1230844044989.jpg [View same] [iqdb] [saucenao] [google]
1187622

>>1187587
WHAT THE FUCK AM I LOOKING AT

Navigation
View posts[+24][+48][+96]