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