結果
問題 | No.71 そろばん |
ユーザー |
|
提出日時 | 2024-11-01 09:42:40 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 2,045 ms |
コンパイル使用メモリ | 191,392 KB |
最終ジャッジ日時 | 2025-02-25 01:59:00 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ll = long long;#define rep(i, s, e) for (int i = (int)s; i < (int)e; ++i)#define all(a) (a).begin(), (a).end()int main() {cin.tie(nullptr);ll N;cin >> N;ll mid = N / 2;cout << mid * (N - mid) + N << '\n';}