結果
問題 |
No.480 合計
|
ユーザー |
|
提出日時 | 2019-09-04 16:20:26 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 135 bytes |
コンパイル時間 | 281 ms |
コンパイル使用メモリ | 20,096 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-27 17:01:12 |
合計ジャッジ時間 | 1,067 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:10:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%d",&n); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int total(int a) { a = a*(a+1)/2; return a; } int main(void){ int n; scanf("%d",&n); printf("%d",total(n)); }