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

#include<bits/stdc++.h>
using namespace std;
int main() {
int fenzi=0;
//分母,也是最大值
int fenmu =pow(2,19);
for(int i=0; i<20; i++) {
fenzi+=fenmu/pow(2,i);
}
cout<<fenzi<<"/"<<fenmu<<endl;
return 0;
}