結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2017-06-30 22:28:31 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 489 bytes |
コンパイル時間 | 418 ms |
コンパイル使用メモリ | 64,104 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-04 19:39:33 |
合計ジャッジ時間 | 1,327 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 13 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <queue> #include <cmath> using namespace std; int main(void){ long long n, cnt=0, ans; cin >> n; bool root = false; for(int i=1;i<=sqrt(n);i++){ if(n%i == 0){ if(i == sqrt(n)){ root = true; }else{ cnt++; } } } if(root == true){ ans = cnt*2+1; }else{ ans = cnt*2; } cout << ans << endl; return 0; }