結果

問題 No.537 ユーザーID
ユーザー focus
提出日時 2018-02-14 20:26:25
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 378 bytes
コンパイル時間 687 ms
コンパイル使用メモリ 64,240 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-12-23 04:09:40
合計ジャッジ時間 52,845 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 4 TLE * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<vector>
#include<cmath>
using namespace std;
int main(void){
    unsigned long long N;
    int count = 2;
    cin >> N;
    for(unsigned long long i=N/2;i>0;i--){
        for(unsigned long long j=2;j<=i;j++){
            if(i*j==N)  count+=2;
        }
    }
    if(sqrt(N)*sqrt(N)==N)  count--;
    cout << count;
    return 0;
}
0