上传文件至「666」
This commit is contained in:
27
666/01.cpp
27
666/01.cpp
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user