結果
| 問題 | No.373 かけ算と割った余り |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-07-01 01:45:57 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 931µs | |
| コード長 | 144 bytes |
| 記録 | |
| コンパイル時間 | 747 ms |
| コンパイル使用メモリ | 108,416 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-25 22:37:16 |
| 合計ジャッジ時間 | 1,587 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 |
コンパイルメッセージ
/home/linuxbrew/.linuxbrew/opt/dmd/include/dlang/dmd/core/checkedint.d(814): Warning: cannot inline function `core.checkedint.mulu!().mulu`
ulong mulu()(ulong x, uint y, ref bool overflow)
^
ソースコード
import std.stdio;
void main() {
ulong a, b, c, d;
readf("%s %s %s %s\n", &a, &b, &c, &d);
writeln(((((a%d) * b) % d) * c) % d);
}