結果
| 問題 | No.276 連続する整数の和(1) |
| コンテスト | |
| ユーザー |
184
|
| 提出日時 | 2015-09-04 23:17:19 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 182 bytes |
| 記録 | |
| コンパイル時間 | 211 ms |
| コンパイル使用メモリ | 49,472 KB |
| 実行使用メモリ | 57,440 KB |
| 最終ジャッジ日時 | 2026-04-02 13:26:26 |
| 合計ジャッジ時間 | 874 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 9 |
ソースコード
#include <stdio.h>
#include <algorithm>
using namespace std;
//namaega184
int main(){
int n;scanf("%d",&n);
long long ans=(long long)n*(n+1)/2;
printf("%lld\n",ans);
return 0;
}
184