Submission #13983289


Source Code Expand

Copy
import java.util.*;
import java.math.BigDecimal;

public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    String A = sc.next();
    String B = sc.next();
    String C = sc.next();
    
    BigDecimal ba = new BigDecimal(A);
    BigDecimal bb = new BigDecimal(B);
    BigDecimal bc = new BigDecimal(C);
    BigDecimal b = new BigDecimal("1000000007");
    BigDecimal bs1 = ba.multiply(bb);
    BigDecimal bs2 = bs1.multiply(bc);
    
    bs2 =bs2.remainder(b);

    System.out.println(bs2); 
  }
} 

Submission Info

Submission Time
Task B - 直方体
User mt8jmta
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 570 Byte
Status
Exec Time 137 ms
Memory 21844 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt
All 100 / 100 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt
Case Name Status Exec Time Memory
0_00.txt 137 ms 20048 KB
0_01.txt 92 ms 19156 KB
0_02.txt 101 ms 19028 KB
0_03.txt 91 ms 20944 KB
1_00.txt 91 ms 19796 KB
1_01.txt 91 ms 21844 KB
1_02.txt 92 ms 19792 KB
1_03.txt 91 ms 19924 KB
1_04.txt 92 ms 20052 KB