11879 - Multiple of 17

package uvaTry;

import java.math.BigInteger;
import java.util.Scanner;

public class Main11879 {

public static void main(String[] args) {


Scanner sc=new Scanner(System.in);

BigInteger zir=new BigInteger("0");
BigInteger b17=new BigInteger("17");
BigInteger b1=new BigInteger("1");
BigInteger res;
while(true)
{

BigInteger in=sc.nextBigInteger();
if(in.compareTo(zir)==0)
break;


in=in.remainder(b17);
if(in.compareTo(zir)==0)
System.out.println("1");
else
System.out.println("0");



}

}

}

SHARE

Amit Ghosh

    Blogger Comment
    Facebook Comment

0 comments :

Post a Comment