結果
| 問題 | No.1822 Keima of Shogi |
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2022-02-20 01:43:43 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 289µs | |
| コード長 | 166 bytes |
| 記録 | |
| コンパイル時間 | 832 ms |
| コンパイル使用メモリ | 178,432 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-01 17:10:06 |
| 合計ジャッジ時間 | 1,915 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
int N;
cin >> N;
long long n = (N + 1) / 2;
long long ans = (n + 1) * n / 2;
cout << ans << endl;
}
forest3