Tuuba Time: 2025-08-27 00:28:53 | Local Time: 2025-08-26 21:28:53

You are not logged in.

#61 Re: Paskapostaus » ULIULI » 2017-12-21 15:29:11

Sangen yllättävä käänne

#64 Re: General Discussion » 2017 Tuuba secret santa [POST PICTURES] » 2017-12-08 11:56:47

Granger wrote:

After my failure with the last time i dont think i have any right to sign up. Sorry Zertap (who, i belive, was the one i matched with). Tried to get you a anime figure of... just a leg. which im sure i saw before but couldnt find anymore and then i couldnt find a suitable replacement. cripes

Damn. I would've appreciated that one quite a bit tbh :D
But yeah don't worry, I kinda forgot about not recieving it too.

#65 Re: General Discussion » Tuuba TeamSpeak » 2017-12-02 11:25:46

I guess I should move this out of feature requests since this is kind of a dump for memes happening in ts now. (maybe we will see more memes if I move this out too, who knows)

#67 Re: General Discussion » 2016 Tuuba secret santa » 2017-11-08 18:43:53

Kinda forgot about this. I don't think I ever received my gift :D

#68 Re: Off Topic » Post your weeaboo shit » 2017-11-05 01:42:13

One of many loots from tracon, finally managed to take a pic.
Cost me only 20€, high quality fabric.

NSFW - Too Butt

VM0ABS.jpg
ADoe5O.jpg

I know it is lewd af but for that price it was worth it.

#72 Re: Off Topic » Post your weeaboo shit » 2017-10-20 16:55:49

RIP Kuro. You will be missed. MIA. Last seen: Yesterday out drinking.

New guardian for my keys:
EWCj5b.jpg

#75 Re: Off Topic » ITT: Pretend we are still writing in osu! OT » 2017-10-11 23:08:21

>nano
>hacker
:----------D

meanwhile:

def checkSudoku(fName):
	sudokuNumbers = []
	with open(fName, 'r', encoding="utf-8") as f:
		for line in f:
			for char in line:
				if char.isnumeric():
					sudokuNumbers.append(int(char))

	sudokuRows = [sudokuNumbers[i:i + 9] for i in range(0, len(sudokuNumbers), 9)]
	sudokuColumns = [[] for i in range(9)]
	for row in sudokuRows:
		for i,col in enumerate(row):
			sudokuColumns[i].append(col)

	sudokuSubgrids = [[] for i in range(9)]
	offset = 0
	for i,row in enumerate(sudokuRows):
		if i % 3 == 0 and i != 0:
			offset += 3
		subgridparts = [row[x:x + 3] for x in range(0, len(row), 3)]
		for j, subgridpart in enumerate(subgridparts):
			for number in subgridpart:
				sudokuSubgrids[j+offset].append(number)

	sudokuSubgridRows = [sudokuSubgrids[i:i + 3] for i in range(0, len(sudokuSubgrids), 3)]

	illegalRows = []
	illegalCols = []
	illegalSubgrids = []
	
	for i,row in enumerate(sudokuRows):
		if len(row) != len(set(row)):
			illegalRows.append(str(i+1))

	for i,col in enumerate(sudokuColumns):
		if len(col) != len(set(col)):
			illegalCols.append(str(i+1))

	for x,subgridRow in enumerate(sudokuSubgridRows):
		for y,subgrid in enumerate(subgridRow):
			if len(subgrid) != len(set(subgrid)):
				illegalSubgrids.append(str([x+1, y+1]))

	if not illegalRows and not illegalCols and not illegalSubgrids:
		print("The sudoku solution is legal")
	else:
		if illegalRows:
			print("Illegal rows: {0}".format(' '.join(illegalRows)))
		if illegalCols:
			print("Illegal columns: {0}".format(' '.join(illegalCols)))
		if illegalSubgrids:
			print("Illegal subgrids: {0}".format(' '.join(illegalSubgrids)))

(takes files with content like: https://u.nya.fi/Te0QMN.txt )

Board footer

Powered by Maki (r-e 139/git:b8267ee)

mascot