結果
| 問題 | 
                            No.537 ユーザーID
                             | 
                    
| コンテスト | |
| ユーザー | 
                             RIGIH
                         | 
                    
| 提出日時 | 2017-07-01 00:04:30 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 365 bytes | 
| コンパイル時間 | 499 ms | 
| コンパイル使用メモリ | 62,524 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-04 22:02:05 | 
| 合計ジャッジ時間 | 1,693 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 18 WA * 14 | 
ソースコード
#include <iostream>
#include <stdio.h>
#include <cstring>
#include <math.h>
#include <algorithm>
#define rep(i,n) for(int i=0;i<n;i++)
#define FOR(i,a,b) for(int i=a;i<b;i++)
using namespace std;
int main(){
	
	long long n;
	cin>>n;
	int m=sqrt(double(n));
	int c=0;
	FOR(i,1,m+1){
		if(n%i==0) c=c+2;
	}
	if(m*m==n){
		c=c-1;
	}
	cout<<c<<endl;
	return 0;
}
            
            
            
        
            
RIGIH