xmsxhl

XMSXHL  •  3天前


include <bits/stdc++.h>

using namespace std;

int main() {

int k, s = 0;
cin >> k;
for (int i = 0;; i++) {
	s = s + i;
	if (  s > k ) {
		cout << i;
		return 0;
	}
}

return 0;

}


评论:

请先登录,才能进行评论