#include<bits/stdc++.h> using namespace std; int main(){ double sum = 0; int i; for (i = 1;i <= 64;i++) { sum = sum + po(2,i - 1); } cout << sum; }
#include<bits/stdc++.h> using namespace std; int main( ) { int x, y, z,number = 0; for(x = 0; x <= 10; x ++ ){ y = 20 - 2 * x; z = 30- x - y; if (3*x + 2*y + z == 50) printf("%2d:%4d%5d%6d\n", ++number, x , y, z); } }
标签:std,daka,int,namespace,using,main From: https://www.cnblogs.com/kongxiangzeng/p/17435505.html