結果
問題 | No.2937 Sigma Plus Problem |
ユーザー |
|
提出日時 | 2024-10-18 21:47:39 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 479 bytes |
コンパイル時間 | 3,071 ms |
コンパイル使用メモリ | 245,468 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-18 22:37:40 |
合計ジャッジ時間 | 3,870 ms |
ジャッジサーバーID (参考情報) |
judge / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 WA * 3 |
ソースコード
#include <bits/stdc++.h>using namespace std;#include <atcoder/modint>using namespace atcoder;#ifdef DEFINED_ONLY_IN_LOCAL#include <dump.hpp>#define dump(...) cpp_dump(__VA_ARGS__)#else#undef dump#define dump(...)#endif#define rep(i, n) for (int i = 0; i < n; i++)template <class T> istream& operator>>(istream& I, vector<T>& V) { for (T& X : V) I >> X; return I; }int main() {unsigned long n;cin >> n;cout << n * (n + 1) / 2 << endl;return 0;}