結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
kyo1
|
| 提出日時 | 2020-05-13 00:04:06 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 288 bytes |
| コンパイル時間 | 2,554 ms |
| コンパイル使用メモリ | 190,880 KB |
| 最終ジャッジ日時 | 2025-01-10 10:44:33 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int64_t N;
cin >> N;
int res = 0;
for (int64_t i = 1; i * i < N + 1; i++) {
if (N % i == 0) res += 2;
if (i * i == N) res--;
}
cout << res << '\n';
return 0;
}
kyo1