package uvaTry;
import java.math.BigInteger;
import java.util.Scanner;
class Main10494 {
public static void main(String[] args) {
BigInteger a,b,res;
String s;
res=new BigInteger("0");
Scanner sc=new Scanner(System.in);
while(sc.hasNext())
{
a=sc.nextBigInteger();
s=sc.next();
b=sc.nextBigInteger();
if(s.charAt(0)=='/')
res=a.divide(b);
else if(s.charAt(0)=='%')
res=a.mod(b);
System.out.println(res);
}
}
}
import java.math.BigInteger;
import java.util.Scanner;
class Main10494 {
public static void main(String[] args) {
BigInteger a,b,res;
String s;
res=new BigInteger("0");
Scanner sc=new Scanner(System.in);
while(sc.hasNext())
{
a=sc.nextBigInteger();
s=sc.next();
b=sc.nextBigInteger();
if(s.charAt(0)=='/')
res=a.divide(b);
else if(s.charAt(0)=='%')
res=a.mod(b);
System.out.println(res);
}
}
}
0 comments :
Post a Comment