Skip to content

Instantly share code, notes, and snippets.

View tzekid's full-sized avatar
🎯
leveling up...

Mircea Ilie Ploscaru tzekid

🎯
leveling up...
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tzekid
tzekid / mail.jl
Last active February 1, 2020 14:50
2015 Hash Code Problem
# !/usr/bin/env julia
using DelimitedFiles: readdlm
# inputfile = readdlm("./dc.in")
inputfile = readdlm("./test.in")
rows, cols, alts = inputfile[1:1, 1:3]
itarget_cells, cov_r, iballoons, turns = inputfile[2:2, 1:4]
start = inputfile[3:3, 1:2] # [row col]
@tzekid
tzekid / 2015_quali.jl
Last active March 23, 2020 17:33
hascode 2015 qualification
# !/usr/bin/env julia
using DelimitedFiles: readdlm
# inputfile = readdlm("./dc.in")
inputfile = readdlm("./test.in")
irows, islots, iunavail, ipools, iserver = inputfile[1:1, :]
runavail = 2:(iunavail+1)
rserver = (iunavail+2):size(inputfile)[1]
__author__ = "6984890: Mircea Ilie Ploscaru"
# Aufgabe 3.4: Kontrollstrukturen 2, fröhliche Zahlen
TEMP = 19
def square(num):
return num**2
# Break the number in its decimal places,
# and return the square of all decimals
### Keybase proof
I hereby claim:
* I am tzekid on github.
* I am tzekid (https://keybase.io/tzekid) on keybase.
* I have a public key whose fingerprint is 78AE DE93 1F17 0852 49B2 545C A1BE 0F7C 8704 E54C
To claim this, I am signing this object: