結果

問題 No.666 1000000007で割るだけ
ユーザー norioc
提出日時 2018-05-01 17:33:04
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 444 bytes
コンパイル時間 845 ms
コンパイル使用メモリ 105,372 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-13 00:58:00
合計ジャッジ時間 1,363 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

void main() {
    const mod = 1000000007;

    auto ab = readints;
    long a = ab[0], b = ab[1];
    long ans = (a * b) % mod;
    writeln(ans);
}
0