結果

問題 No.537 ユーザーID
ユーザー funakoshi
提出日時 2019-09-02 14:42:58
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 510 bytes
コンパイル時間 1,565 ms
コンパイル使用メモリ 30,720 KB
実行使用メモリ 13,644 KB
最終ジャッジ日時 2024-12-15 15:05:44
合計ジャッジ時間 16,327 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 21 TLE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void)
{
    int n,cnt=0;
    scanf("%d",&n);
    for(int i=1;i<=sqrt(n);i++)
    {
        for(int j=1;j<=n;j++)
        {
            if(i*j==n)
            {
                if(i==j)
                {
                    cnt++;
                }
                else
                {
                    cnt+=2;
                }
                
            }
        }
    }
    printf("%d",cnt);
}
0