結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
trineutron
|
| 提出日時 | 2020-12-24 18:30:56 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 297 bytes |
| コンパイル時間 | 1,790 ms |
| コンパイル使用メモリ | 190,908 KB |
| 最終ジャッジ日時 | 2025-01-17 06:41:23 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int64_t n, ans = 0;
cin >> n;
for (int64_t i = 1; i * i <= n; i++) {
if (n % i) continue;
if (i * i == n) {
ans++;
} else {
ans += 2;
}
}
cout << ans << endl;
}
trineutron