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
//quantidade de numeros que cada player pode escolher | |
const player1 = 2 | |
const player2 = 2 | |
//variaveis auxiliares para armazenar quantidades | |
var qtd_par = 0; | |
var qtd_impar = 0; | |
var soma_par_impar = 0; | |
//header do console.log |
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 sys | |
import argparse | |
import json | |
import networkx as nx | |
import community | |
from networkx.readwrite import json_graph | |
def graphmltojson(graphfile, outfile): | |
""" |
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 itertools import permutations | |
def Avaliador(lista): | |
#linha 1 | |
result=0 | |
for i in subset[:3]: | |
result=result+i | |
if result!=15: | |
return False | |
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
//arvore binaria | |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct Arvore arv; | |
struct Arvore{ | |
int info; | |
arv *dir; |
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
def calcPosFix(): | |
expression=list(input('insira a expressao: ')) | |
while(len(expression)>1): | |
if (len(expression)>3 and expression[2] == '*' and expression[3] == '*' ): | |
value = str(eval(expression[0])**(eval(expression[1]))) | |
for i in range(4): | |
del expression[0] | |
else: |