Friday, November 24, 2017

Aaah! Kattis Problem Solution In Java

// Nayeem Shahriar Joy , Applied Physics & Electronic Engineering , University of Rajshahi.
import java.util.Scanner;
public class Joy {
public static void main(String[] args) {
String s1,s2;
Scanner sc1=new Scanner(System.in);
s1=sc1.nextLine();
s2=sc1.nextLine();
int able=s1.length();
int say=s2.length();
if(able>=say)
{
System.out.print("go");
}
else
{
System.out.print("no");
}
}
}

No comments:

Post a Comment