結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
teketeke5000
|
| 提出日時 | 2017-08-18 01:05:56 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 359 bytes |
| 記録 | |
| コンパイル時間 | 870 ms |
| コンパイル使用メモリ | 175,320 KB |
| 実行使用メモリ | 8,364 KB |
| 最終ジャッジ日時 | 2026-09-16 21:07:52 |
| 合計ジャッジ時間 | 3,160 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(void) {
ll N,i;
int ans = 2;
cin >> N;
if (N == 1) {
cout << N <<endl;
return 0;
}
ll stop = floor(sqrt(N));
if (N == stop * stop) ans--;
for (i = 2; i <= stop; i++) if (N % i == 0) ans += 2;
cout << ans << endl;
return 0;
}
teketeke5000