結果
| 問題 |
No.821 Making Integers
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-24 16:35:42 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 273 bytes |
| コンパイル時間 | 1,249 ms |
| コンパイル使用メモリ | 157,276 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 01:45:59 |
| 合計ジャッジ時間 | 1,670 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 7 |
ソースコード
#include <bits/stdc++.h>
#define repr(i,a,b) for(int i=a;i<b;i++)
#define rep(i,n) for(int i=0;i<n;i++)
typedef long long int ll;
using namespace std;
ll ans;
int main(void) {
ios::sync_with_stdio(false);
ll n, k; cin >> n >> k;
cout << n*(n+1)/2 << endl;
return 0;
}