結果

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

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;
int N;
int ans;
int main(){
  cin >> N;
  for(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