結果

問題 No.677 10^Nの約数
ユーザー ixTL255
提出日時 2018-07-09 22:51:48
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 389 bytes
コンパイル時間 711 ms
コンパイル使用メモリ 106,940 KB
実行使用メモリ 26,024 KB
最終ジャッジ日時 2024-07-17 23:18:55
合計ジャッジ時間 1,933 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 17
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;

public class Yuki677
{
	public static void Main()
	{
		var n = long.Parse(Console.ReadLine());
		var a = new List<long>();
		
		long b = 1;

		for(int i = 0; i <= n; ++i)
		{
			long c = 1;
			for(int j = 0; j <= n; ++j)
			{
				a.Add(b * c);
				c *= 5;
			}
			b *= 2;
		}
		
		a.Sort();
		foreach(long x in a) Console.WriteLine(x);
	}
}
0