結果

問題 No.677 10^Nの約数
ユーザー NoNo
提出日時 2018-04-27 22:48:40
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 628 bytes
コンパイル時間 2,157 ms
コンパイル使用メモリ 102,520 KB
実行使用メモリ 27,360 KB
最終ジャッジ日時 2023-09-10 06:37:27
合計ジャッジ時間 7,701 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;

namespace y
{
    class Program
    {
        static void Main(string[] args)
        {
            long n = long.Parse(Console.ReadLine());
            var a = new List<long>();
            long e = (long)Math.Pow(10, n);
            for (long i = 1; i <= e / 2; i++)
            {
                if (e % i == 0)
                {
                    Console.WriteLine(i);
                    a.Add(e / i);
                }
            }
            foreach (var item in a)
            {
                Console.WriteLine(a);
            }
        }
    }
}
0