mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1047.java
This commit is contained in:
parent
548b8b2fa2
commit
606b36abd7
20
NYOJ/1047.java
Normal file
20
NYOJ/1047.java
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
import java.io.*;
|
||||||
|
import java.math.BigInteger;
|
||||||
|
import java.util.Scanner;
|
||||||
|
public class Main
|
||||||
|
{
|
||||||
|
public static void main(String[] args)
|
||||||
|
{
|
||||||
|
Scanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
|
||||||
|
BigInteger a=BigInteger.ZERO;
|
||||||
|
BigInteger b=new BigInteger("1");
|
||||||
|
int t;
|
||||||
|
t=sc.nextInt();
|
||||||
|
for(int s=0; s<t; s++)
|
||||||
|
{
|
||||||
|
a=sc.nextBigInteger();
|
||||||
|
a=a.subtract(b);
|
||||||
|
System.out.println(a);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user