結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2020-08-27 11:23:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 423 bytes |
コンパイル時間 | 1,716 ms |
コンパイル使用メモリ | 165,588 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-11-07 15:35:00 |
合計ジャッジ時間 | 5,489 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 WA * 9 TLE * 1 -- * 16 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(x) (x).begin(), (x).end() using ll = long long; using pii = pair<int, int>; using vi = vector<int>; using vvi = vector<vector<int>>; const ll inf = 1e9; int main() { int n,ans=0; cin>>n; for(int d=1;d*d<=n;d++){ if(n%d) continue; if(d*d==n) ans++; else ans+=2; } cout<<ans<<endl; return 0; }