Skip to content

Instantly share code, notes, and snippets.

View fazd's full-sized avatar
🏠
Working from home

Fabio Zapata fazd

🏠
Working from home
View GitHub Profile
import numpy as np
import cv2
from itertools import *
from os import listdir
from os.path import isfile, join
import time
from operator import itemgetter
import numpy as np
import cv2
from itertools import *
from os import listdir
from os.path import isfile, join
def guardar_imagen(img,cont):
k='byw/'+str(cont)+'.png'
cv2.imwrite(k,img)
#include<stdio.h>
#include<string>
#include<vector>
#include<math.h>
using namespace std;
int contDig( int copia){
int i=0;
while(copia!=0){
#include <stdio.h>
#include <math.h>
using namespace std;
int main() {
int T,k=0;
scanf("%d",&T);
bool sw=true;
int copia=T,u=0;
#include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
using namespace std;
int main ()
{
int n,x,pos=1,prod,temp,var,j=2;
@fazd
fazd / suc
Created August 17, 2017 21:15
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Model;
/**
*
* @author usuario
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Model;
/**
*
* @author usuario
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Model;
/**
*
* @author usuario
package alpaca;
public class Alpaca {
public static String elec(char str){
if(str=='A')
return "AL";
if(str=='L')
return "PACA";
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a,b;
int [] A = new int [4];