結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2017-07-19 04:37:14 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 424 bytes |
コンパイル時間 | 1,030 ms |
コンパイル使用メモリ | 91,560 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-08 13:26:00 |
合計ジャッジ時間 | 2,341 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 13 |
ソースコード
#include<iostream> #include<iomanip> #include<math.h> #include<vector> #include<algorithm> #include<string> #include<queue> #include<stack> #include<set> #include<map> using namespace std; typedef long long ll; typedef pair<ll, ll> P; typedef long double ld; int main() { ll n; cin>>n; ll res = 0; for(ll i = 1; i * i <= n; ++i) { if(n % i == 0) { if(i * i == n) ++res; else res += 2; } } cout<<res<<endl; }