Skip to content

Instantly share code, notes, and snippets.

@sweed33
sweed33 / 412OvejasNegras
Created November 28, 2017 16:25
Acepta el reto
import java.util.Scanner;
public class OvejasNegras {
static boolean ovejablanca=false;
static int fil,col;
public static void main(String[] args) {
Scanner t=new Scanner(System.in);
while(t.hasNext()){
ovejablanca=false;
String[] campos=t.nextLine().split(" ");
col=Integer.parseInt(campos[0]);