Submit solution
Points:
0.70 (partial)
Time limit:
1.0s
Memory limit:
512M
Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch
In case the statement didn't load correctly, you can download the statement here: Statement
Lưu ý: các bạn không nhập, xuất dữ liệu bằng file kể cả khi đề bài có yêu cầu. Đọc, ghi dữ liệu được thực hiện ở stdin và stdout.
Comments
include<bits/stdc++.h>
using namespace std; int main() { long long t; cin>>t; while(t--) { unsigned long long n; cin>>n; cout<<(n/2)+1<<endl; } }
n = 9 thì sao x lại là 5 nhỉ đáng lẽ x = 4 chứ nhỉ 9%5 < 9%4 mà
????
This comment is hidden due to too much negative feedback. Show it anyway.
orz them lua chon
ví dụ bài này có sai không vậy chứ với x<n thì n%x lớn nhất với n = 6 là x = 5 chứ?
với n=6 thì 6%5=1 còn 6%4 = 2 nên output là 4 đúng r nhé
This comment is hidden due to too much negative feedback. Show it anyway.
This comment is hidden due to too much negative feedback. Show it anyway.