結果
問題 |
No.480 合計
|
ユーザー |
|
提出日時 | 2024-05-23 23:15:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 314 bytes |
コンパイル時間 | 1,694 ms |
コンパイル使用メモリ | 165,616 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-20 19:07:16 |
合計ジャッジ時間 | 2,644 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ill = int long long; #define rep(i, n) for (ill i = 0; i < (n); i++) #define all(s) s.begin(), s.end() using inp = pair<int, int>; using vecb = vector<bool>; using vecb2 = vector<vecb>; int main() { int n; cin >> n; cout << (n - 1) * n / 2 << endl; }