結果

問題 No.537 ユーザーID
ユーザー face4
提出日時 2018-04-26 22:14:45
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 291 bytes
コンパイル時間 607 ms
コンパイル使用メモリ 67,712 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-27 21:15:12
合計ジャッジ時間 1,855 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cmath>
using namespace std;

int main(){
    int n;
    cin >> n;
    long long ans = 0;
    double x = sqrt(n);
    for(int i = 1; i <= x; i++){
        if(n%i == 0)    ans += 2;
    }

    if(ceil(x) == floor(x)) ans--;

    cout << ans << endl;
    return 0;
}
0