Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
47173 WZH 练32.2  种植竹笋 C++ No Test Data 0 MS 0 KB 195 2024-05-12 17:31:53

Tests(0/0):


#include<iostream> using namespace std; int main() { int k,h=0; cin>>k; for(int i=1;i<=365;i++){ h=h+16/i; if(h>=k){ cout<<i; return 0; } } cout<<-1; return 0; }