Skip to content

Instantly share code, notes, and snippets.

View Bruno02468's full-sized avatar
☢️

Bruno Borges Paschoalinoto Bruno02468

☢️
View GitHub Profile
@Bruno02468
Bruno02468 / keybase.md
Created February 23, 2020 21:06
keybase.md

Keybase proof

I hereby claim:

  • I am bruno02468 on github.
  • I am bruno02468 (https://keybase.io/bruno02468) on keybase.
  • I have a public key ASCzOV-gwMogoe0Vk80-1TJ4EH8etCtpnZ-StC5QjUnjLwo

To claim this, I am signing this object:

@Bruno02468
Bruno02468 / ep2_sem_tempo_irmao.py
Last active June 2, 2022 02:41
EP2 da turma Python 2019 de MAC2166 -- só que em duas linhas (foi um desafio kkkkj)
z,k,m=(int(input("0 ou 1?\n")),int(input("chave?\n")),list(map(lambda c:"_ABCDEFGHIJKLMNOPQRSTUVWXYZ.".index(c),list(input("mensagem?\n").upper()))))
print("".join(map(lambda u:"_ABCDEFGHIJKLMNOPQRSTUVWXYZ."[u[1]], sorted([([i,k*i%len(m)][z]%28,[m[k*i%len(m)]-i,m[i]+i][z]%28) for i in range(len(m))], key=lambda u:u[0]))))
@Bruno02468
Bruno02468 / testa_todos.c
Last active November 4, 2018 22:39
[EP3] Testar todas as permutações de n panquecas!
/* pra ajudar meus bacanos da comp ~ borges */
#include <stdio.h>
#include <stdlib.h>
/* VOCÊ NÃO PODE IMPORTAR ESSE TRECO NO OFICIAL! */
#include <string.h>
/* INSIRA SUAS FUNÇÕES AQUI! PREENCHA A FUNÇÃO ordena()! */
int ordena(int *panquecas, int num_panquecas) {