結果

問題 No.1406 Test
コンテスト
ユーザー aaa aa
提出日時 2025-12-04 16:16:19
言語 C#
(.NET 10.0.402 + ACL)
コンパイル:
dotnet_c
実行:
/usr/bin/dotnet_wrap
結果
WJ  
(最新)
AC  
(最初)
実行時間 -
コード長 610 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
最終ジャッジ日時 2026-07-18 21:32:42
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_0
このコードへのチャレンジ
(要ログイン)

ソースコード

diff #
raw source code

using System.Numerics;

public class Program
{
    public static void Main()
    {

        int num = int.Parse(Console.ReadLine() ?? string.Empty);
        string[] str = (Console.ReadLine() ?? string.Empty).Trim().Split(' ');
        //string str = Console.ReadLine() ?? string.Empty;

        int count = 0;
        for(int i = 0; i < num-1; i++)
        {
            count += int.Parse(str[i]);
        }

        int c = 0; 
        for(int i = 0;i <= 100;i++)
        {
            if((count+i)% num == 0)
            {
                c++;
            }
        }
        Console.WriteLine(c);
    }
}
0