結果
| 問題 |
No.2480 Sequence Sum
|
| コンテスト | |
| ユーザー |
ripity
|
| 提出日時 | 2024-02-09 01:11:32 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 500 ms |
| コード長 | 210 bytes |
| コンパイル時間 | 2,019 ms |
| コンパイル使用メモリ | 196,400 KB |
| 最終ジャッジ日時 | 2025-02-19 02:56:15 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
set<int> D;
for( int d = 1; d*d <= N; d++ ) {
if( N%d == 0 ) D.insert(d), D.insert(N/d);
}
cout << N-int(D.size()) << endl;
}
ripity