結果

問題 No.537 ユーザーID
ユーザー qwrtpsfg
提出日時 2017-10-04 21:00:36
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 545 bytes
コンパイル時間 880 ms
コンパイル使用メモリ 103,296 KB
実行使用メモリ 17,792 KB
最終ジャッジ日時 2024-11-16 18:52:13
合計ジャッジ時間 2,613 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 13
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

public class yukicoder
{
    public static void Main()
    {
        long n = long.Parse(Console.ReadLine());
        long sqrt = (long)Math.Truncate(Math.Sqrt(n));
        int count = 0;
        
        for(int i = 1; i <= sqrt; i++)
        {
            if(n % i == 0)
            {
                count = count + 2;
            }
        }
        
        if(sqrt * sqrt == n)
        {
            count--;
        }

        Console.WriteLine(count);
        
    }
}
0