16 lines
232 B
C++
16 lines
232 B
C++
#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;
|
|
}
|
|
|
|
|
|
|