結果
問題 | No.2480 Sequence Sum |
ユーザー |
|
提出日時 | 2023-11-03 13:13:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 500 ms |
コード長 | 280 bytes |
コンパイル時間 | 1,494 ms |
コンパイル使用メモリ | 165,320 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-25 18:36:11 |
合計ジャッジ時間 | 2,109 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ll = long long;int main(){ll n;cin >> n;ll cnt = 0;for(ll i = 1; i * i <= n; i++){if(n % i == 0){cnt++;if(n / i != i) cnt++;}}cout << n - cnt << '\n';}