結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-22 15:59:12 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 360 bytes |
| 記録 | |
| コンパイル時間 | 2,067 ms |
| コンパイル使用メモリ | 330,024 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-22 15:59:20 |
| 合計ジャッジ時間 | 3,242 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
bool flag=false;
LL yueshu(LL x){
LL ret=0;
for(LL i=1;i<=x/i;++i){
if(x%i==0) ret++;
if(i*i==x) flag=true;
}
return ret;
}
int main(){
LL n;
cin>>n;
int ans=yueshu(n)*2;
if(flag==true){
ans--;
}
cout<<ans<<endl;
return 0;
}