結果
問題 |
No.1822 Keima of Shogi
|
ユーザー |
![]() |
提出日時 | 2023-10-26 12:37:12 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 2,950 ms |
コンパイル使用メモリ | 242,260 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-25 12:22:54 |
合計ジャッジ時間 | 3,585 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll n; cin>>n; n = (n+1) / 2; ll ans = n * (n+1) / 2; cout<<ans<<endl; }