結果

問題 No.537 ユーザーID
ユーザー hatsuka_iwa
提出日時 2021-02-11 00:02:51
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 270 bytes
コンパイル時間 1,502 ms
コンパイル使用メモリ 166,192 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-08 11:19:03
合計ジャッジ時間 2,693 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N, ans = 0;
  cin >> N;

  for (int i = 1; i <= (int)sqrt(N); i++) {
    if (N % i == 0 && i != (N / i))
      ans += 2;
    else if (N % i == 0 && i == (N / i))
      ans++;
  }

  cout << ans << endl;
}
0