1
0
forked from newde/homework

上传文件至「666」

This commit is contained in:
2026-07-04 05:45:39 -04:00
parent 885a1b3efb
commit e68b553fe8

View File

@@ -1,22 +1,17 @@
#include<iostream>
using namespace std;
int main(){
int t=0;
int h=0;
while(h<=17){
t++;
h+=3;
if(h>=17)
break;
t++;
h--;
int a[8];
int i;
cin>>i;
for(int j=0;j<8;j++){
a[j]=i%2;
i=i/2;
cout<<a[j];
}
cout<<"需要"<<t<<"分钟"<<endl;
cout<<endl;
for(int b=7;b>=0;b--)
cout<<a[b];
cout<<endl;
return 0;
}