結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2020-03-22 06:53:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 391 bytes |
コンパイル時間 | 1,044 ms |
コンパイル使用メモリ | 67,072 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 16:47:18 |
合計ジャッジ時間 | 2,060 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 WA * 25 |
ソースコード
#include <iostream>#include <cmath>typedef long long ll;using namespace std;int main(){int N;cin >> N;int cnt = 0;bool hit = false;for (ll i = 1; i * i <= N; i++) {if (i * i == N) {hit = true;break;}if (N % i == 0) cnt++;}cnt = (hit)? 2 * cnt + 1 : 2 * cnt;cout << cnt << endl;return 0;}