結果
問題 |
No.480 合計
|
ユーザー |
|
提出日時 | 2022-06-10 12:26:58 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 150 bytes |
コンパイル時間 | 627 ms |
コンパイル使用メモリ | 26,624 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-21 05:43:53 |
合計ジャッジ時間 | 766 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <stdio.h> int main(void) { int max,sum; scanf("%d",&max); sum= (1 +max)*(max - 1 + 1)/ 2; printf("%d\n",sum); return 0; }