結果
問題 |
No.480 合計
|
ユーザー |
![]() |
提出日時 | 2017-10-25 22:48:01 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 190 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 20,224 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-21 18:52:41 |
合計ジャッジ時間 | 823 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 22 |
コンパイルメッセージ
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",&n); | ^~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int n; int ans; int main(void){ scanf("%d",&n); for (int i=1; i <= n; i++){ ans = n*(n-1); n = n-1; } printf("%d \n",ans); return 0; }