結果
問題 |
No.3083 One Two
|
ユーザー |
![]() |
提出日時 | 2025-04-04 21:22:40 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 463 bytes |
コンパイル時間 | 1,791 ms |
コンパイル使用メモリ | 193,752 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-04-04 21:22:47 |
合計ジャッジ時間 | 2,303 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll = long long; using VI = vector<int>; using P = pair<int, int>; constexpr int INF = 1001001001; constexpr ll LINF = 1001001001001001001ll; #define rep(i, n) for (ll i = 0; i < (int)(n); i++) int main(){ int ans = 0; int n; cin >> n; ans = n / 2; // vector<vector<int>> v(n, vector<int>(m)); vector<int> v(n); if(n%2 == 1) { ans ++; } cout << ans << endl; }