結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
kekenx
|
| 提出日時 | 2020-01-26 17:04:50 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 284 bytes |
| 記録 | |
| コンパイル時間 | 1,505 ms |
| コンパイル使用メモリ | 166,096 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-14 11:08:29 |
| 合計ジャッジ時間 | 2,899 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll N;
scanf("%lld", &N);
ll ans = 0;
for (ll i = 1; i * i <= N; ++i) {
if (N % i == 0) {
if (N / i == i) ans++;
else ans += 2;
}
}
printf("%lld\n", ans);
return 0;
}
kekenx