結果
問題 | No.666 1000000007で割るだけ |
ユーザー |
|
提出日時 | 2018-04-01 20:37:26 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 145 ms / 2,000 ms |
コード長 | 703 bytes |
コンパイル時間 | 4,153 ms |
コンパイル使用メモリ | 75,580 KB |
実行使用メモリ | 54,296 KB |
最終ジャッジ日時 | 2024-06-26 05:45:10 |
合計ジャッジ時間 | 8,599 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
import java.io.*;import java.util.*;public class Main_yukicoder666 {private static Scanner sc;private static Printer pr;private static void solve() {final int MOD = 1_000_000_007;int a = sc.nextInt();int b = sc.nextInt();pr.println((long)a * b % MOD);}// ---------------------------------------------------public static void main(String[] args) {sc = new Scanner(INPUT == null ? System.in : new ByteArrayInputStream(INPUT.getBytes()));pr = new Printer(System.out);solve();// pr.close();pr.flush();// sc.close();}static String INPUT = null;private static class Printer extends PrintWriter {Printer(OutputStream out) {super(out);}}}