結果
問題 |
No.537 ユーザーID
|
ユーザー |
|
提出日時 | 2020-06-02 01:33:57 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 278 bytes |
コンパイル時間 | 6,217 ms |
コンパイル使用メモリ | 197,448 KB |
最終ジャッジ日時 | 2025-01-10 20:28:16 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 14 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ cin.tie(0),ios::sync_with_stdio(false); int64_t n; cin>>n; unordered_map<int64_t,int64_t>m; ++m[1]; int64_t t=n,ans=2; for(int64_t i=2;i*i<=n;++i){ if(i*i==n)++ans; else if(t%i==0)ans+=2; } cout<<ans<<"\n"s; }