結果

問題 No.677 10^Nの約数
ユーザー MaboyMaboy
提出日時 2021-06-21 18:33:16
言語 Swift
(5.10.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 3,052 ms
コンパイル使用メモリ 182,136 KB
実行使用メモリ 13,992 KB
最終ジャッジ日時 2023-09-05 01:55:09
合計ジャッジ時間 3,922 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
13,672 KB
testcase_01 AC 6 ms
13,244 KB
testcase_02 AC 5 ms
13,576 KB
testcase_03 AC 6 ms
13,396 KB
testcase_04 AC 6 ms
13,416 KB
testcase_05 AC 6 ms
13,648 KB
testcase_06 AC 6 ms
13,500 KB
testcase_07 AC 6 ms
13,420 KB
testcase_08 AC 6 ms
13,692 KB
testcase_09 AC 6 ms
13,832 KB
testcase_10 AC 6 ms
13,420 KB
testcase_11 AC 6 ms
13,696 KB
testcase_12 AC 6 ms
13,520 KB
testcase_13 AC 6 ms
13,508 KB
testcase_14 AC 6 ms
13,992 KB
testcase_15 AC 6 ms
13,496 KB
testcase_16 AC 6 ms
13,836 KB
testcase_17 AC 6 ms
13,692 KB
testcase_18 AC 6 ms
13,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import Foundation
let n = Int(readLine()!)!
var l = [Int]()
for i in 0...n{
    for j in 0...n{
        l += []
        l += [Int(pow(2.0, Double(i)) * pow(5.0, Double(j)))]
    }
}
for i in Set(l).sorted(by: <){
    print(i)
}
0