結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2019-12-31 01:49:04 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 272 bytes |
コンパイル時間 | 1,610 ms |
コンパイル使用メモリ | 167,268 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-16 21:30:38 |
合計ジャッジ時間 | 2,658 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n; cin >> n; ll ans = 0; for (ll i = 1; i <= sqrt(n); i++) { if (n % i == 0) { ans++; if (i * i != n) { ans++; } } } cout << ans << endl; return 0; }