結果
| 問題 | No.810 割った余りの個数 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-04 14:01:41 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 701 bytes |
| 記録 | |
| コンパイル時間 | 7,730 ms |
| コンパイル使用メモリ | 171,556 KB |
| 実行使用メモリ | 41,632 KB |
| 最終ジャッジ日時 | 2025-12-04 14:01:54 |
| 合計ジャッジ時間 | 12,707 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 TLE * 1 -- * 9 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (109 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
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;
long l = long.Parse(str[0]);
long r = long.Parse(str[1]);
long m = long.Parse(str[2]);
List<long> list = new List<long>();
for (int i = (int)l; i <= r; i++)
{
long a = i % m;
bool d = list.Contains(a);
if (!d)
{
list.Add(a);
}
}
Console.WriteLine(list.Count);
}
}