1
0
forked from newde/homework
Files
homework/666/01.cpp
2026-07-04 05:45:39 -04:00

18 lines
252 B
C++

#include<iostream>
using namespace std;
int main(){
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<<endl;
for(int b=7;b>=0;b--)
cout<<a[b];
cout<<endl;
return 0;
}