結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-30 22:27:42 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 214 bytes |
| コンパイル時間 | 252 ms |
| コンパイル使用メモリ | 20,480 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-04 19:36:55 |
| 合計ジャッジ時間 | 1,173 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 13 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%lld",&n);
| ^~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(int argc, char const *argv[]){
long long n,i,ans=0;
scanf("%lld",&n);
for(i=1;i*i<=n;i++){
if(n%i==0){
if(n/i==i) ans++;
else ans+=2;
}
}
printf("%lld\n",ans);
return 0;
}