結果

問題 No.537 ユーザーID
ユーザー snrnsidysnrnsidy
提出日時 2021-12-11 02:42:09
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 324 bytes
コンパイル時間 1,925 ms
コンパイル使用メモリ 194,148 KB
最終ジャッジ日時 2025-01-26 07:39:11
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(void) 
{
  cin.tie(0);
  ios::sync_with_stdio(false);

  long long int n;
  int res = 0;

  cin >> n;

  for(long long int i=1;i<=sqrt(n);i++)
  {
    if(n%i==0)
    {
      if(i*i==n) res += 1;
      else res += 2;
    }
  }

  cout << res << '\n';
  
  return 0;
}
0