結果

問題 No.3035 2018
ユーザー square1001square1001
提出日時 2018-04-01 21:54:01
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 563 ms / 2,000 ms
コード長 327 bytes
コンパイル時間 472 ms
コンパイル使用メモリ 63,440 KB
実行使用メモリ 30,876 KB
最終ジャッジ日時 2023-09-08 12:35:54
合計ジャッジ時間 7,131 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 563 ms
30,876 KB
testcase_01 AC 562 ms
30,860 KB
testcase_02 AC 504 ms
30,732 KB
testcase_03 AC 511 ms
30,728 KB
testcase_04 AC 520 ms
30,740 KB
testcase_05 AC 510 ms
30,724 KB
testcase_06 AC 505 ms
30,656 KB
testcase_07 AC 503 ms
30,872 KB
testcase_08 AC 533 ms
30,868 KB
testcase_09 AC 495 ms
30,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int n, d[7000009];
int main() {
	cin >> n;
	for (int i = 1; i <= 7000000; i++) {
		for (int j = i; j <= 7000000; j += i) {
			d[j]++;
		}
	}
	int cnt = 0;
	for (int i = 1; i <= 7000000; i++) {
		if (d[i] == 4) cnt++;
		if (cnt == n) {
			cout << i << endl;
			break;
		}
	}
	return 0;
}
0