結果
| 問題 |
No.480 合計
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-05 11:28:35 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 476 bytes |
| コンパイル時間 | 609 ms |
| コンパイル使用メモリ | 68,388 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-25 22:24:10 |
| 合計ジャッジ時間 | 1,302 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <iostream>
#include <vector>
#include <utility>
#include <algorithm>
#include <string>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using vll = vector<long long>;
using vpll = vector<pair<ll, ll>>;
using vull = vector <unsigned long long>;
void solve() {
ll n;
cin >> n;
cout << n * (n + 1) / 2;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
ll t = 1;
//cin >> t;
while (t--) {
solve();
}
}