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 numpy as np | |
| import cv2 | |
| import imutils | |
| import matplotlib.pyplot as plt | |
| import copy as cp | |
| import time | |
| # from cv2.dnn import | |
| from imutils.object_detection import non_max_suppression | 
  
    
      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 GrafoAdjassencia import Vertice,ListaAdjassencia,Aresta | |
| lista=ListaAdjassencia() | |
| class buscaMenorCaminho : | |
| listaAdjassencia = None | |
| def __init__(self,lista): | |
| self.listaAdjassencia=ListaAdjassencia() | |
| def menorCaminho(self,VA,VB): | 
  
    
      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.util.*; | |
| import java.util.Scanner; | |
| public class Q4{ | |
| public static void main(String[] args) { | |
| int n ; | |
| Scanner iui=new Scanner(System.in); | |
| System.out.println("Digite n"); | |
| n = iui.nextInt(); | |
| int vetor[]=new int[n]; | 
  
    
      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.util.*; | |
| import java.util.Scanner; | |
| public class Q4{ | |
| public static void main(String[] args) { | |
| int n ; | |
| Scanner iui=new Scanner(System.in); | |
| System.out.println("Digite n"); | |
| n = iui.nextInt(); | |
| int vetor[]=new int[n]; | 
  
    
      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.util.ArrayList; | |
| public class Adjacencia { | |
| Vertice node ; | |
| int PesoAresta; | |
| ArrayList<Integer> Usuarios = new ArrayList(); | |
| ArrayList<String> Duracao = new ArrayList(); | |
| } | 
  
    
      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.util.ArrayList; | |
| public class Adjacencia { | |
| Vertice node ; | |
| int PesoAresta; | |
| ArrayList<Integer> Usuarios = new ArrayList(); | |
| ArrayList<String> Duracao = new ArrayList(); | |
| } | 
  
    
      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.util.ArrayList; | |
| import java.util.Iterator; | |
| public class Grafo { | |
| private ArrayList<ArrayList<Integer>> Lista = new ArrayList<ArrayList<Integer>>(); | |
| public ArrayList GetLista() | |
| { | |
| return Lista ; | |
| } | |
| public void AddVertice(int a) | |
| { | 
  
    
      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
    
  
  
    
  | """treinamento""" | |
| Dado1 = [0.1, 0.4, 0.7] | |
| Dado2 = [0.3, 0.7, 0.2] | |
| Dado3 = [0.6, 0.9, 0.8] | |
| Dado4 = [0.5, 0.7, 0.1] | |
| amostra = [Dado1, Dado2, Dado3, Dado4] | |
| d = [1, -1, -1, 1] | |
| """treinamento""" | |
| import random | 
  
    
      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 <iostream> | |
| #include <math.h> | |
| using namespace std; | |
| float root(float a,float b,float k,float n)//NÃO SEI PQ N FUNCIONA RAIZES N INTEIRAS | |
| { | |
| if(pow(b,n)<a&&k==1) | |
| return root(a,b+1,k,n); | 
  
    
      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 math import cos,sin ,radians | |
| import scipy.integrate | |
| import numpy as np | |
| def f(teta): | |
| return np.sin(2*teta)+5 | |
| I=scipy.integrate.quad(f, 5,55) | |
| print(" {}".format(I)) | 
NewerOlder