提交时间:2024-12-21 11:52:22

运行 ID: 2751

#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int temp=0; int i=1; for(i=1;temp<n;i++) { if(temp>n) { cout<<i-1;break; } else { temp+=1; } } cout<<i<<endl; return 0; }