結果
問題 | No.677 10^Nの約数 |
ユーザー |
![]() |
提出日時 | 2018-09-06 20:01:17 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 27 ms / 2,000 ms |
コード長 | 503 bytes |
コンパイル時間 | 2,536 ms |
コンパイル使用メモリ | 103,296 KB |
実行使用メモリ | 18,176 KB |
最終ジャッジ日時 | 2024-11-23 17:21:34 |
合計ジャッジ時間 | 3,959 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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.
ソースコード
using System.Collections.Generic; using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var a = new List<long>(); for (int i = 0; i <= n; i++) for (int j = 0; j <= n; j++) { var b1 = (long)Math.Pow(2, i); var b2 = (long)Math.Pow(5, j); a.Add(b1 * b2); } a.Sort(); foreach (var x in a) Console.WriteLine(x); } }