Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
47853 奚晨瑞 练32.2  种植竹笋 C++ No Test Data 0 MS 0 KB 251 2024-05-24 15:02:21

Tests(0/0):


#include<iostream> using namespace std; int main() { int day=0; int k; cin>>k; float n=0; while(n<k){ n+=(16.0/day); day++; if(day>365){ break; } } if(day>365){ cout<<-1; } else{ cout<<day; } return 0; }