diff options
Diffstat (limited to 'codechef/hoopJump')
| -rw-r--r-- | codechef/hoopJump/hoopJump.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/codechef/hoopJump/hoopJump.cpp b/codechef/hoopJump/hoopJump.cpp new file mode 100644 index 0000000..c9bfef1 --- /dev/null +++ b/codechef/hoopJump/hoopJump.cpp @@ -0,0 +1,15 @@ +#include<bits/stdc++.h> + +using namespace std; + +int main () { + ios_base::sync_with_stdio(false); + cin.tie(NULL); + int tt; + cin >> tt; + while(tt--){ + int n; + cin >> n; + cout << (n + 1) / 2 << '\n'; + } +} |
