結果
| 問題 | No.677 10^Nの約数 |
| コンテスト | |
| ユーザー |
No
|
| 提出日時 | 2018-04-27 22:48:40 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 628 bytes |
| 記録 | |
| コンパイル時間 | 609 ms |
| コンパイル使用メモリ | 110,632 KB |
| 実行使用メモリ | 47,916 KB |
| 最終ジャッジ日時 | 2026-03-16 02:07:35 |
| 合計ジャッジ時間 | 32,184 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 7 TLE * 10 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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);
}
}
}
}
No