import java.util.Scanner;
/**
* 1655 - Xtreme Encription [http://coj.uci.cu/]
*
* @author BreakDark
* @version 1.0 beta
*/
// ACEPTADO!!! xD
public class Main {
public static void main(String[] args) {
Scanner Lee;
String texto, texto2;
int i, j;
// AQUI INICIA EL PROGRAMA
Lee = new Scanner(System.in);
while (Lee.hasNext()) {
texto = Lee.next();
texto2 = Lee.next();
i = j = 0;
while (i < texto.length() && j < texto2.length()) {
if (texto.charAt(i) == texto2.charAt(j))
i++;
j++;
}
if (i == texto.length())
System.out.println("Yes");
else
System.out.println("No");
}
}
}
Blog dedicado a la publicación de artículos, programas propios, traducciones de Roms de Nes, super Nes y mas, y alguno que otro artículo sobre tecnologia.
Sunday, June 12, 2016
Solución al problema: 1655 - Xtreme Encription [http://coj.uci.cu/] con Java
Para ver el link del problema Click aqui
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment