結果

問題 No.677 10^Nの約数
ユーザー aaaaaaiuaaaaaaiu
提出日時 2019-07-31 23:13:05
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 345 bytes
コンパイル時間 1,991 ms
コンパイル使用メモリ 200,404 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-18 17:09:09
合計ジャッジ時間 4,167 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    int n;
     cin >> n;
     ll a[(n+1)*(n+1)];
     for (ll i = 0, j = 1; i <= n; i++, j *= 2)
        for (ll k = 0, l = 1; k <= n; k++, l *= 5)
            a[i*(n+1)+j] = j*l;
    sort(a, a+(n+1)*(n+1));
    for (int i : a) cout << i << endl;
    return 0;
}
0