发布网友 发布时间:2024-10-20 17:11
共2个回答
热心网友 时间:2024-11-09 20:56
#include<iostream>
using namespace std;
int main(){
int total= 1024;
int day = 0; // calculate days
for(int i = 0;;i++){
total = (total/2 - 2); // every data seal half and two more
day++; // count sealing day
if(total == 0)break; // if nothing to seal, stop for loop
}
cout<<day<<endl; //display the day asking
return 0;
}
热心网友 时间:2024-11-09 20:57
#include <stdio.h>