結果
問題 |
No.1822 Keima of Shogi
|
ユーザー |
![]() |
提出日時 | 2022-01-30 08:22:59 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 258 bytes |
コンパイル時間 | 1,574 ms |
コンパイル使用メモリ | 166,584 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-11 08:09:02 |
合計ジャッジ時間 | 2,236 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
/** * @FileName a.cpp * @Author kanpurin * @Created 2022.01.30 08:22:52 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { int n;cin >> n; ll m = (n+1)/2; cout << m*(m+1)/2 << endl; return 0; }