結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-04-21 14:40:23 |
| 言語 | C++17(clang) (clang++ 22.1.2 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 517 bytes |
| 記録 | |
| コンパイル時間 | 1,322 ms |
| コンパイル使用メモリ | 173,748 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-04-21 14:40:34 |
| 合計ジャッジ時間 | 2,575 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using u64 = unsigned long long;
u64 count_divisors(u64 x){
u64 res = 1;
for(u64 p = 2; p * p <= x; ++p){
if(x % p == 0){
int e = 0;
while(x % p == 0){
x /= p;
++e;
}
res *= (e + 1);
}
}
if(x > 1) res *= 2; // ??????
return res;
}
int main(){
unsigned long long x;
if(!(cin >> x)) return 0;
cout << count_divisors(x) << '\n';
return 0;
}
vjudge1