#include<iostream>
#include<cmath>
using namespace std;
int main() {
cout << sqrt(pow(6, 2) + pow(9, 2)) << endl;
return 0;
}
#include<iostream>
using namespace std;
int main(){
int balance = 100;
balance = balance + 10;
cout << balance << endl;
balance -= 20;
cout << balance << endl;
balance = 0;
cout << balance << endl;
return 0;
}
#include<iostream>
#include<cmath>
using namespace std;
int main() {
double r = 5;
const double PI = 3.141593;
cout << 2 * PI * r << endl;
cout << PI * r * r << endl;
cout << 4.0 / 3 * PI * pow(r, 3) << endl;
return 0;
}
#include<iostream>
using namespace std;
int main() {
int num = 1;
num = (num + 1) * 2;
num = (num + 1) * 2;
num = (num + 1) * 2;
cout << num << endl;
return 0;
}
#include<iostream>
using namespace std;
int main () {
int n1 = 8, t1 = 30, n2 = 10, t2 = 6;
int t3 = 10;
double inc_rate = (1.0 * n1 * t1 - n2 * t2) / (t1 - t2);
double init_num = n2 * t2 - inc_rate * t2;
double ans = (init_num + t3 * inc_rate) / t3;
cout << ans;
return 0;
}
#include<iostream>
using namespace std;
int main() {
int v_a = 5, v_yao = 8, distance = 100;
double ans;
ans = 1.0 * distance / (v_yao - v_a);
cout << ans << endl;
return 0;
}