結果

問題 No.537 ユーザーID
ユーザー くれちーくれちー
提出日時 2017-06-30 22:31:36
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 1,934 bytes
コンパイル時間 963 ms
コンパイル使用メモリ 116,924 KB
実行使用メモリ 27,364 KB
最終ジャッジ日時 2024-04-15 06:21:28
合計ジャッジ時間 3,263 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
25,004 KB
testcase_01 AC 32 ms
27,104 KB
testcase_02 AC 30 ms
26,972 KB
testcase_03 AC 30 ms
25,008 KB
testcase_04 AC 31 ms
26,968 KB
testcase_05 AC 31 ms
25,196 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 29 ms
25,064 KB
testcase_10 AC 30 ms
25,072 KB
testcase_11 AC 29 ms
23,220 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 41 ms
25,312 KB
testcase_19 AC 43 ms
25,076 KB
testcase_20 AC 41 ms
25,076 KB
testcase_21 AC 40 ms
24,884 KB
testcase_22 AC 43 ms
25,332 KB
testcase_23 AC 38 ms
25,316 KB
testcase_24 AC 34 ms
26,968 KB
testcase_25 AC 42 ms
22,968 KB
testcase_26 AC 44 ms
27,224 KB
testcase_27 AC 40 ms
25,180 KB
testcase_28 AC 35 ms
24,944 KB
testcase_29 AC 44 ms
25,184 KB
testcase_30 AC 41 ms
25,068 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

#pragma warning disable IDE0011
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using static System.Convert;
using static System.Math;
using static Extentions;

class IO
{
    int idx;
    string[] line;

    public void R(params char[] sep) { line = Console.ReadLine().Split(sep); idx = 0; }
    public string S => line[idx++];
    public string[] Ss => line.Skip(idx++).ToArray();
    public char C => char.Parse(line[idx++]);
    public char[] Cs => line.Skip(idx++).Select(char.Parse).ToArray();
    public int I => int.Parse(line[idx++]);
    public int[] Is => line.Skip(idx++).Select(int.Parse).ToArray();
    public long L => long.Parse(line[idx++]);
    public long[] Ls => line.Skip(idx++).Select(long.Parse).ToArray();
    public double F => double.Parse(line[idx++]);
    public double[] Fs => line.Skip(idx++).Select(double.Parse).ToArray();
    public decimal D => decimal.Parse(line[idx++]);
    public decimal[] Ds => line.Skip(idx++).Select(decimal.Parse).ToArray();
    public BigInteger B => BigInteger.Parse(line[idx++]);
    public BigInteger[] Bs => line.Skip(idx++).Select(BigInteger.Parse).ToArray();

    public void Write(params object[] xs)
    {
        Console.Write(xs.First());
        foreach (var x in xs.Skip(1)) Console.Write(" " + x);
        Console.WriteLine();
    }
}

static class Extentions
{
}

static class Program
{
    static void Main()
    {
        Console.SetOut(new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false });
        Solve(new IO());
        Console.Out.Flush();
    }

    static void Solve(IO io)
    {
        checked
        {
            io.R();
            var n = io.L;

            var cnt = 0L;
            for (var i = 1L; i < Sqrt(n); i++) if (n % i == 0) cnt++;
            cnt *= 2;
            if ((long)Sqrt(n) * (long)Sqrt(n) == n) cnt++;

            io.Write(cnt);
        }
    }
}
0