結果
| 問題 |
No.3083 One Two
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-11 23:50:59 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 652 bytes |
| コンパイル時間 | 1,789 ms |
| コンパイル使用メモリ | 191,716 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-04-11 23:51:02 |
| 合計ジャッジ時間 | 2,573 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define pii pair < int, int >
#define vi vector < int >
#define L(i, a, b) for (int i = (a); i <= (b); i++)
#define R(i, a, b) for (int i = (a); i >= (b); i--)
#define sz(a) ((int) a.size())
#define pb push_back
#define eb emplace_back
#define me(a, x) memset(a, x, sizeof(a))
void solve() {
int n;
cin >> n;
cout << n / 2 + (n & 1) << '\n';
}
int main() {
// freopen(".in", "r", stdin);
// freopen(".out", "w", stdout);
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
int T = 1;
// cin >> T;
while (T--) solve();
}