結果
問題 |
No.2937 Sigma Plus Problem
|
ユーザー |
![]() |
提出日時 | 2024-10-18 21:21:03 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 2,163 ms |
コンパイル使用メモリ | 27,392 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-10-18 21:24:01 |
合計ジャッジ時間 | 2,885 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 6 |
ソースコード
#define _DEBUG 0 #if _DEBUG #endif #include<stdio.h> #include<stdbool.h> #include<string.h> #include<stdlib.h> int main(void) { int scan;//scanf警告用 int ans=0; int i, j; long long n; scan=scanf("%lld",&n); printf("%lld",(n+1)*n/2); return 0; }