結果

問題 No.537 ユーザーID
ユーザー troro_kelptroro_kelp
提出日時 2018-08-28 16:47:13
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,083 bytes
コンパイル時間 824 ms
コンパイル使用メモリ 95,968 KB
実行使用メモリ 8,436 KB
最終ジャッジ日時 2023-09-23 00:06:36
合計ジャッジ時間 2,568 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
8,164 KB
testcase_01 AC 5 ms
8,100 KB
testcase_02 AC 4 ms
8,096 KB
testcase_03 AC 5 ms
8,168 KB
testcase_04 AC 4 ms
8,212 KB
testcase_05 AC 4 ms
8,104 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 5 ms
8,104 KB
testcase_10 AC 4 ms
8,164 KB
testcase_11 AC 5 ms
8,152 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 12 ms
8,168 KB
testcase_19 AC 14 ms
8,160 KB
testcase_20 AC 13 ms
8,428 KB
testcase_21 AC 10 ms
8,232 KB
testcase_22 AC 14 ms
8,276 KB
testcase_23 AC 11 ms
8,112 KB
testcase_24 AC 6 ms
8,160 KB
testcase_25 AC 14 ms
8,160 KB
testcase_26 AC 15 ms
8,108 KB
testcase_27 AC 12 ms
8,232 KB
testcase_28 AC 8 ms
8,384 KB
testcase_29 AC 15 ms
8,104 KB
testcase_30 AC 12 ms
8,108 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <map>
#include <cmath>
#include <queue>
#include <numeric>
#include <climits>
#include <iterator>
#include <iomanip>
#include <stack>
#include <bitset>
#include <functional>
using namespace std;
const constexpr int INF = 1e9;
//typedef std::pair<std::string,double> P;


#define FOR(i, a, n) for (ll i = (ll)a; i<(ll)n; ++i)
#define REP(i, n) FOR(i, 0, n)

typedef long long ll;
typedef vector<int> VI;
const constexpr ll MOD = 1e9+7;
vector<pair<int, int> > vp;
 
struct Less {
    bool operator()(const pair<int, int>& x, const pair<int, int>& y) const {
        return x.first > y.first;
    }
};

ll GCD(ll a, ll b){
    if(b==0) return a;
    return GCD(b, a%b);
}


//グラフの隣接リスト
VI g[200010];
//頂点の入次数を管理
int h[100010];
string s;
int a[100010];
int b[100010]={INF};
int main(void) {
    long long N; cin >> N;
    ll cnt=0;
    ll i=1;
    for(; i*i<N; ++i){
        if(N%i==0) cnt++;
    }
    
    cnt*=2;
    if(i*i==N) cnt++;
    cout << cnt << endl;
}
0