結果

問題 No.537 ユーザーID
ユーザー notetonous
提出日時 2017-06-30 22:53:11
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 262 bytes
コンパイル時間 472 ms
コンパイル使用メモリ 53,460 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-04 20:52:52
合計ジャッジ時間 1,538 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;
long long int N;
long long int ans;
int main(){
  cin >> N;
  for(long long int i=1;i*i<=N;i++){
    if(N%i==0){
      if(i*i==N)ans++;
      else ans+=2;
    }
  }
  cout << ans << endl;
  return 0;

}
0