About Me

About Me : I have been working as a Software Engineer for various international companies for four years.Currently, I am working as a full stack Javascript developer in Petronas(Malaysia).

Skills

Skills • Javascript •Typescript •Python •C •Java •ReactJs • Redux • VueJs • NestJs • React Testing Library • Django• PostgreSQL • MySQL • NodeJs • Git • Docker • Jira • Visual Studio Code • Slack

রবিবার, ২৯ নভেম্বর, ২০১৫

SPOJ : BISHOPS - Bishops


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

public class JavaApplication9{

    public static void main(String[] args) {  
       BigInteger a,b,c,d;
       Scanner input=new Scanner(System.in);
       BigInteger x=BigInteger.ONE;
       while(input.hasNext())
       {
           a=input.nextBigInteger();
           if((a.compareTo(x))==0){
         
               System.out.println("1");
                continue;
           }
           c=a.add(a.subtract(BigInteger.valueOf(2)));
           System.out.println(c);
       }
    }

}

কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন