提交时间:2023-05-23 19:23:16
运行 ID: 18222
#include<iostream> using namespace std; int main(){ int x = 100000; float y = 0.01,tmp = 0; for(int i = 0;i <30;i ++){ tmp += y; y = 2*y; } printf("%d\n%ld",30*x,tmp); return 0; }