This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 | 26.6588387834389 | |
---|---|---|
10.4013377926421 | 27.3064353457772 | |
10.8428093645485 | 22.1324101716143 | |
11.2441471571906 | 21.1698405046065 | |
11.6454849498328 | 15.1926335164307 | |
12.0869565217391 | 26.3989510407284 | |
12.4882943143813 | 17.435306578572 | |
12.8896321070234 | 25.5078852305278 | |
13.2909698996656 | 36.884594694235 | |
13.7324414715719 | 39.666108747637 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1 min] | |
[1080p30] | |
cpu 384% mem 606,628k time 72.34s | |
cpu 384% mem 606,724k time 72.74s | |
[1080p60] | |
cpu 388% mem 608,724k time 122.89s | |
cpu 388% mem 609,192k time 124.12s | |
[4k30] | |
cpu 387% mem 2,145,880k time 267.67s | |
cpu 386% mem 2,145,648k time 267.61s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
def num_gerador(mod): | |
""" | |
Gera números aleatórios baseado | |
no metódo aditivo com módulo mod | |
""" | |
from time import time | |
num = int(time()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assembly para "hello world" em linux x86_64 | |
# assemblar e linkar | |
# as hello.asm -o hello.o && ld hello.o -o hello | |
# executar | |
# ./hello | |
.data # secao de dados do programa | |
msg: .ascii "Hello, World!\n" # mensagem a ser escrita na tela |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.Color; | |
import robocode.AdvancedRobot; | |
import robocode.BulletHitEvent; | |
import robocode.HitRobotEvent; | |
import robocode.ScannedRobotEvent; | |
public class RLGDT_Walls extends AdvancedRobot { | |
final int NE = 0, SE = 1, SO = 2, NO = 3; | |
double eixoDeDescida; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
double calc(unsigned long n) { | |
unsigned long i = 0; | |
double sum = 0; | |
while (i < n) { | |
sum += (i%2 == 0 ? 1.0 : -1.0) / (2*i+1); | |
i++; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.titlebar-placeholder[type="pre-tabs"] { | |
display:none !important; | |
} | |
#TabsToolbar { | |
background-color: #2f2f2f; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
/* retorna 0 caso não exista erro | |
retorna 1 caso exista erro */ | |
int checa_erro(void *dados, unsigned long num_bits) { | |
unsigned char *array = dados; | |
unsigned i = 1, j = 0; | |
while (j < num_bits) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
// Implementado paridade par | |
/* retorna 0 caso não tenha erro de paridade | |
retorna 1 caso exista erro de paridade */ | |
int checa_erro(void *dados, unsigned tamanho) { | |
unsigned long total = 0; | |
while (tamanho > 0) { | |
unsigned char byte = ((char *) dados)[tamanho-1]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sys import argv | |
from itertools import combinations | |
class Board: | |
def __init__(self, n): | |
self.board = [[0]*n for _ in range(n)] | |
def __repr__(self): |