結果

問題 No.373 かけ算と割った余り
ユーザー fuzuirfuzuir
提出日時 2016-10-13 22:50:57
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 264 bytes
コンパイル時間 834 ms
コンパイル使用メモリ 110,976 KB
実行使用メモリ 27,384 KB
最終ジャッジ日時 2024-05-01 22:01:08
合計ジャッジ時間 1,314 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
25,236 KB
testcase_01 WA -
testcase_02 AC 23 ms
24,880 KB
testcase_03 WA -
testcase_04 AC 23 ms
25,132 KB
testcase_05 WA -
testcase_06 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections;
using System.Linq;

class Program
{
	static void Main()
	{
		long[] xs = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
		Console.WriteLine(((xs[0] * xs[1]) % xs[3]) * (xs[2] % xs[3]));
	}
}

//A*B%D*C%D
0