結果

問題 No.2480 Sequence Sum
ユーザー karinohitokarinohito
提出日時 2023-09-22 21:49:18
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 500 ms
コード長 190 bytes
コンパイル時間 1,773 ms
コンパイル使用メモリ 201,012 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-26 14:35:29
合計ジャッジ時間 2,334 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main() {
    ll N;
    cin>>N;
    ll an=N;
    for(ll i=1;i*i<=N;i++)if(N%i==0)an-=(1+(i*i!=N));
    cout<<an<<endl;
}
0