結果
| 問題 |
No.480 合計
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-13 17:15:03 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 172 bytes |
| コンパイル時間 | 966 ms |
| コンパイル使用メモリ | 25,680 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-09-13 17:15:06 |
| 合計ジャッジ時間 | 1,519 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%d", &N);
| ^~~~~~~~~~~~~~~
ソースコード
//This program returns a summary from 1 to x(inserted number)
#include <stdio.h>
int main() {
int N;
scanf("%d", &N);
printf("%d\n",N * (N + 1) / 2);
return 0;
}