結果
| 問題 |
No.988 N×Mマス計算(総和)
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-04-02 10:17:24 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 988 bytes |
| コンパイル時間 | 8,303 ms |
| コンパイル使用メモリ | 170,412 KB |
| 実行使用メモリ | 45,836 KB |
| 最終ジャッジ日時 | 2025-04-02 10:17:37 |
| 合計ジャッジ時間 | 13,214 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 WA * 4 TLE * 1 -- * 10 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (108 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program
{
static void Main(string[] args)
{
string[] numList = Console.ReadLine().Split(' ');
string[] horizontal = Console.ReadLine().Split(' ');
ulong result = 0;
string symble = horizontal[0];
for (int i = 0; i < int.Parse(numList[0]); i++)
{
ulong vertical = ulong.Parse(Console.ReadLine());
for (int j = 1; j <= int.Parse(numList[1]); j++)
{
ulong ans = 0;
if (symble == "+")
{
ans = vertical + ulong.Parse(horizontal[j]);
}
else if (symble == "*")
{
ans = vertical * ulong.Parse(horizontal[j]);
}
result += ans;
}
}
Console.WriteLine(result % ulong.Parse(numList[2]));
}
}
Maeda