結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
Ichimiya
|
| 提出日時 | 2020-07-09 01:52:19 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 349 bytes |
| 記録 | |
| コンパイル時間 | 1,450 ms |
| コンパイル使用メモリ | 180,160 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-20 23:38:34 |
| 合計ジャッジ時間 | 2,323 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 13 |
ソースコード
#include <bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
int binarySearch(int n, vector<int> v);
int main() {
int64_t N;
cin >> N;
int64_t rt = sqrt(N);
int64_t cnt = 0;
for (int64_t i = 1; i <= rt; i++) {
if (!(N % i)) {
cnt++;
}
}
cnt *= 2;
if (!(N % rt)) {
if (rt == (N / rt)) cnt--;
}
cout << cnt << endl;
}
Ichimiya