結果

問題 No.677 10^Nの約数
ユーザー IchimiyaIchimiya
提出日時 2020-07-27 22:40:29
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 540 bytes
コンパイル時間 1,617 ms
コンパイル使用メモリ 170,084 KB
実行使用メモリ 4,388 KB
最終ジャッジ日時 2023-09-11 06:04:40
合計ジャッジ時間 2,565 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
const int64_t MOD = 1e9 + 7;

int main() {
	int N;
	cin >> N;

	vector<int> v;
	for (int i = 0; i <= N; i++) {
		int64_t n = 1;
		int j = i;
		while (j > 0) {
			n *= 2;
			j--;
		}
		//cout << n << endl;

		for (int k = 0; k <= N; k++) {
			int64_t m = 1;
			int l = k;
			while (l > 0) {
				m *= 5;
				l--;
			}
			//cout << m << endl;

			v.push_back(n * m);
		}
	}

	sort(v.begin(), v.end());

	for (int i = 0; i < v.size(); i++) {
		cout << v.at(i) << endl;
	}
}
0