結果

問題 No.677 10^Nの約数
ユーザー mame_shibemame_shibe
提出日時 2019-12-08 00:28:32
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 897 bytes
コンパイル時間 1,540 ms
コンパイル使用メモリ 65,068 KB
実行使用メモリ 27,344 KB
最終ジャッジ日時 2023-08-27 07:30:09
合計ジャッジ時間 3,767 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
21,040 KB
testcase_01 AC 59 ms
22,872 KB
testcase_02 AC 62 ms
22,776 KB
testcase_03 AC 63 ms
22,952 KB
testcase_04 AC 63 ms
24,976 KB
testcase_05 AC 63 ms
23,092 KB
testcase_06 AC 63 ms
23,128 KB
testcase_07 AC 64 ms
23,188 KB
testcase_08 AC 62 ms
22,976 KB
testcase_09 AC 61 ms
23,116 KB
testcase_10 AC 61 ms
23,148 KB
testcase_11 AC 61 ms
23,204 KB
testcase_12 AC 61 ms
23,072 KB
testcase_13 AC 62 ms
23,268 KB
testcase_14 AC 60 ms
23,352 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization.Formatters;
using static System.Console;
using static System.Math;

namespace YukiCoder
{
    public class Program
    {
        public static void Main(string[] args)
        {
            new Program().Solve();
        }

        public void Solve()
        {
            int n = int.Parse(Console.ReadLine());
            List<double> ansList = new List<double>();

            for (int i = 0; i <= n; i++)
            {
                for (int j = 0; j <= n; j++)
                {
                    ansList.Add(Math.Pow(2,i) * Math.Pow(5, j));
                }
            }
            ansList.Sort();

            for (int i = 0; i < ansList.Count; i++)
            {
                WriteLine(ansList[i]);
            }

        }
    }
}
0