結果
| 問題 | No.1822 Keima of Shogi |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-28 21:24:25 |
| 言語 | C++17(clang) (clang++ 23.1.3 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 127µs | |
| コード長 | 260 bytes |
| 記録 | |
| コンパイル時間 | 5,856 ms |
| コンパイル使用メモリ | 164,024 KB |
| 実行使用メモリ | 9,900 KB |
| 最終ジャッジ日時 | 2026-10-09 13:43:21 |
| 合計ジャッジ時間 | 6,718 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0)->sync_with_stdio(0);
int n;
cin >> n;
++n;
n /= 2;
cout << (n * 1ll * (n + 1)) / 2 << "\n";
// ..#..
// .....
// .#.#.
// .....
// #.#.#
// TODO
return 0;
}