結果
| 問題 | No.1406 Test |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-04 16:16:19 |
| 言語 | C# (.NET 10.0.402 + ACL) |
| 結果 |
WJ
不安定
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 610 bytes |
| 記録 | |
| 最終ジャッジ日時 | 2026-07-18 21:32:42 |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
ソースコード
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);
}
}