結果

問題 No.2480 Sequence Sum
ユーザー Aeren
提出日時 2023-09-22 21:26:50
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 500 ms
コード長 818 bytes
コンパイル時間 2,775 ms
コンパイル使用メモリ 242,872 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-26 14:32:36
合計ジャッジ時間 3,434 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
// #include <x86intrin.h>
using namespace std;
using namespace numbers;



int main(){
	cin.tie(0)->sync_with_stdio(0);
	cin.exceptions(ios::badbit | ios::failbit);
	int n;
	cin >> n;
	int res = n;
	for(auto d = 1; d * d <= n; ++ d){
		if(n % d == 0){
			-- res;
			if(d * d < n){
				-- res;
			}
		}
	}
	cout << res << "\n";
	return 0;
}

/*

*/

////////////////////////////////////////////////////////////////////////////////////////
//                                                                                    //
//                                   Coded by Aeren                                   //
//                                                                                    //
////////////////////////////////////////////////////////////////////////////////////////
0