結果
問題 |
No.2051 Divide
|
ユーザー |
![]() |
提出日時 | 2025-04-15 09:54:57 |
言語 | C# (.NET 8.0.404) |
結果 |
TLE
|
実行時間 | - |
コード長 | 632 bytes |
コンパイル時間 | 7,382 ms |
コンパイル使用メモリ | 170,656 KB |
実行使用メモリ | 167,268 KB |
最終ジャッジ日時 | 2025-04-15 09:55:13 |
合計ジャッジ時間 | 14,253 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 4 TLE * 1 -- * 18 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (100 ミリ秒)。 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) { int[] n = Array.ConvertAll(Console.ReadLine().Split(' '), num => int.Parse(num.ToString())); IEnumerable<int> divisors = from i in Enumerable.Range(1, n[0]) where n[0] % i == 0 select i; List<int> list = new List<int>(); foreach (int i in divisors) { if (i % n[1] == 0 && i / n[1] >= 1) { list.Add(i); } } Console.WriteLine(list.Count); } }