結果
問題 | No.537 ユーザーID |
ユーザー |
|
提出日時 | 2019-04-12 10:56:06 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 323 bytes |
コンパイル時間 | 622 ms |
コンパイル使用メモリ | 68,340 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-13 19:59:53 |
合計ジャッジ時間 | 1,786 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 13 |
ソースコード
#include <iostream>#include <math.h>using namespace std;int main() {long n, half, cnt;cin >> n;half = (long)sqrt(n);cnt = 0;for (int i = 1; i <= half; i++) {if (n % i == 0) {if (n / i == i) {cnt++;} else {cnt = cnt + 2;}}}cout << cnt << endl;}