結果
| 問題 | No.677 10^Nの約数 |
| コンテスト | |
| ユーザー |
No
|
| 提出日時 | 2018-04-27 22:48:40 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 628 bytes |
| 記録 | |
| コンパイル時間 | 842 ms |
| コンパイル使用メモリ | 112,428 KB |
| 実行使用メモリ | 46,856 KB |
| 最終ジャッジ日時 | 2024-06-27 22:05:47 |
| 合計ジャッジ時間 | 5,752 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 7 TLE * 1 -- * 9 |
コンパイルメッセージ
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