結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  Maeda | 
| 提出日時 | 2025-03-31 09:13:38 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 369 bytes | 
| コンパイル時間 | 461 ms | 
| コンパイル使用メモリ | 27,392 KB | 
| 実行使用メモリ | 7,328 KB | 
| 最終ジャッジ日時 | 2025-03-31 09:13:40 | 
| 合計ジャッジ時間 | 2,122 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 19 WA * 13 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |     scanf("%lld",&n);
      |     ^~~~~~~~~~~~~~~~
            
            ソースコード
#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);
}
            
            
            
        