結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  Ichimiya | 
| 提出日時 | 2020-07-09 01:52:19 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 349 bytes | 
| コンパイル時間 | 1,677 ms | 
| コンパイル使用メモリ | 166,152 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-05 10:36:14 | 
| 合計ジャッジ時間 | 2,913 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 19 WA * 13 | 
ソースコード
#include <bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
int binarySearch(int n, vector<int> v);
int main() {
	int64_t N;
	cin >> N;
	int64_t rt = sqrt(N);
	int64_t cnt = 0;
	for (int64_t i = 1; i <= rt; i++) {
		if (!(N % i)) {
			cnt++;
		}
	}
	cnt *= 2;
	if (!(N % rt)) {
		if (rt == (N / rt)) cnt--;
	}
	cout << cnt << endl;
}
            
            
            
        