結果
問題 |
No.2417 Div Count
|
ユーザー |
![]() |
提出日時 | 2025-04-07 11:34:03 |
言語 | C# (.NET 8.0.404) |
結果 |
TLE
|
実行時間 | - |
コード長 | 593 bytes |
コンパイル時間 | 10,976 ms |
コンパイル使用メモリ | 169,920 KB |
実行使用メモリ | 164,160 KB |
最終ジャッジ日時 | 2025-04-07 11:34:24 |
合計ジャッジ時間 | 17,997 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 24 TLE * 2 -- * 15 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /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) { string[] str = Console.ReadLine().Split(' '); ulong n = ulong.Parse(str[0]); Console.WriteLine(RemainderCount(ulong.Parse(str[0]), ulong.Parse(str[1]))); } private static ulong RemainderCount(ulong v1, ulong v2) { ulong result = 0; for (ulong i = 1; i <= v1; i++) { if (v1 % i == v2) { result++; } } return result; } }