結果
問題 | No.1822 Keima of Shogi |
ユーザー |
|
提出日時 | 2022-01-28 21:24:25 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 260 bytes |
コンパイル時間 | 4,463 ms |
コンパイル使用メモリ | 160,256 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-30 04:36:16 |
合計ジャッジ時間 | 4,702 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }