結果

問題 No.537 ユーザーID
コンテスト
ユーザー Maeda
提出日時 2025-03-31 09:13:38
言語 C
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
RE  
実行時間 -
コード長 369 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 65 ms
コンパイル使用メモリ 40,192 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-07-23 17:07:58
合計ジャッジ時間 1,805 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 32
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <stdio.h>
#include <math.h>

void main(void) {
    long long int n = 0;
    scanf("%lld",&n);
    double plus = sqrt(n);
    int count = 0;
    for(int i = 1 ; i <= plus ; i++){
        if(n%i == 0 && n/i > 0 && n/i != i){
            count += 2;
        }else if(n%i == 0 && n/i > 0 && n/i == i){
            count++;
        }
    }
    printf("%d",count);
}
0