結果
| 問題 | No.2937 Sigma Plus Problem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-18 22:04:02 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 300 ms |
| コード長 | 421 bytes |
| 記録 | |
| コンパイル時間 | 4,695 ms |
| コンパイル使用メモリ | 474,400 KB |
| 実行使用メモリ | 9,292 KB |
| 最終ジャッジ日時 | 2026-07-06 00:17:50 |
| 合計ジャッジ時間 | 6,088 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.hpp>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
void solve() {
boost::multiprecision::cpp_int n;
cin >> n;
cout << n * (n + 1) / 2 << '\n';
}
int main() {
std::cin.tie(nullptr);
std::ios_base::sync_with_stdio(false);
int T = 1;
for (int t = 0; t < T; t++) {
solve();
}
return 0;
}