結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
ひゅーら
|
| 提出日時 | 2017-06-30 22:40:36 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 296 bytes |
| コンパイル時間 | 1,020 ms |
| コンパイル使用メモリ | 28,416 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-04 20:38:44 |
| 合計ジャッジ時間 | 1,512 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 26 |
ソースコード
#include <stdio.h>
int main(void){
int n;
scanf("%d", &n);
int ans = 0;
int i;
for(i = 1; i*i < n; i++){
if(n % i == 0){
#ifdef DEBUG
printf("1 %d\n", i);
#endif
ans += 2;
}
}
if(n == i * i){
ans ++;
#ifdef DEBUG
printf("2 %d\n", i);
#endif
}
printf("%d\n", ans);
return 0;
}
ひゅーら