結果
問題 |
No.2417 Div Count
|
ユーザー |
![]() |
提出日時 | 2025-04-07 11:30:16 |
言語 | C# (.NET 8.0.404) |
結果 |
TLE
|
実行時間 | - |
コード長 | 439 bytes |
コンパイル時間 | 7,647 ms |
コンパイル使用メモリ | 168,440 KB |
実行使用メモリ | 39,844 KB |
最終ジャッジ日時 | 2025-04-07 11:30:33 |
合計ジャッジ時間 | 14,935 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 24 TLE * 1 -- * 16 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (128 ミリ秒)。 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) { string[] str = Console.ReadLine().Split(' '); ulong n = ulong.Parse(str[0]); ulong count = 0; for(ulong i = 1; i <= n; i++) { if(n%i == ulong.Parse(str[1])) { count++; } } Console.WriteLine(count); } }