You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
217 B

2 years ago
#include<bits/stdc++.h>
using namespace std;
int main() {
int fenzi=0;
//<2F><>ĸ,Ҳ<><D2B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ
int fenmu =pow(2,19);
for(int i=0; i<20; i++) {
fenzi+=fenmu/pow(2,i);
}
cout<<fenzi<<"/"<<fenmu<<endl;
return 0;
}