結果

問題 No.1940 Escape through + -
ユーザー mobchanmobchan
提出日時 2023-05-07 14:40:41
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 486 bytes
コンパイル時間 12,239 ms
コンパイル使用メモリ 147,452 KB
実行使用メモリ 174,696 KB
最終ジャッジ日時 2023-08-16 04:43:42
合計ジャッジ時間 13,234 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
30,476 KB
testcase_01 AC 46 ms
30,500 KB
testcase_02 AC 45 ms
28,296 KB
testcase_03 AC 46 ms
28,868 KB
testcase_04 AC 45 ms
28,528 KB
testcase_05 AC 46 ms
28,644 KB
testcase_06 AC 45 ms
28,500 KB
testcase_07 AC 45 ms
28,600 KB
testcase_08 AC 46 ms
28,596 KB
testcase_09 AC 45 ms
28,788 KB
testcase_10 AC 47 ms
28,508 KB
testcase_11 AC 47 ms
28,600 KB
testcase_12 AC 46 ms
28,560 KB
testcase_13 AC 47 ms
28,640 KB
testcase_14 AC 47 ms
28,572 KB
testcase_15 AC 46 ms
28,904 KB
testcase_16 AC 47 ms
30,568 KB
testcase_17 AC 45 ms
28,284 KB
testcase_18 AC 46 ms
28,796 KB
testcase_19 AC 45 ms
28,892 KB
testcase_20 AC 50 ms
29,756 KB
testcase_21 AC 50 ms
29,828 KB
testcase_22 AC 48 ms
29,832 KB
testcase_23 AC 48 ms
29,460 KB
testcase_24 AC 71 ms
41,388 KB
testcase_25 AC 73 ms
41,584 KB
testcase_26 AC 73 ms
39,496 KB
testcase_27 AC 75 ms
44,716 KB
testcase_28 AC 72 ms
174,696 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 130 ms).
.NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f
Copyright (C) Microsoft Corporation.All rights reserved.

  プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください
  main -> /home/judge/data/code/bin/Release/net6.0/main.dll
  main -> /home/judge/data/code/bin/Release/net6.0/publish/

ソースコード

diff #

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

class Program
{
    static void Main(string[] args)
    {
        var input = Console.ReadLine().Split().Select(long.Parse).ToArray();
        var N = input[0];
        var M = input[1];
        var S = input[2];
        var A = Console.ReadLine().Split().Select(long.Parse).ToArray();

        var diff = S - A.Sum();
        if (diff % M == 0) Console.WriteLine("Yes");
        else Console.WriteLine("No");
    }
}
0