結果
| 問題 | No.2480 Sequence Sum |
| コンテスト | |
| ユーザー |
ripity
|
| 提出日時 | 2024-02-09 01:11:32 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 500 ms |
| コード長 | 210 bytes |
| 記録 | |
| コンパイル時間 | 1,294 ms |
| コンパイル使用メモリ | 215,468 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-03 14:16:51 |
| 合計ジャッジ時間 | 2,340 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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