結果
問題 | No.888 約数の総和 |
ユーザー |
![]() |
提出日時 | 2019-09-25 16:24:00 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 229 bytes |
コンパイル時間 | 278 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 13,756 KB |
最終ジャッジ日時 | 2024-09-22 08:04:58 |
合計ジャッジ時間 | 3,897 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 5 TLE * 1 -- * 9 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d",&a); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void){ int a,b=0,c,d=1,f=0; scanf("%d",&a); while(b<a){ c=a%d; if(c==0){ f=f+d; } b++; d++; } printf("%d\n",f); return 0; }