#includeiostream using namespace std; int main() { int n = 1, f = 0, sum = 0; int ar ; while (n) { cin n; if(!n){ break; } if (n) { for (int i = 0; i n; i++) { cin ar ; } } for (int i = 0; i ...
#includeiostream using namespace std; int main() { int n, a1, a2, temp; bool r; cin n a1 a2; int d; d = a2 - a1; temp = a2; for (int i = 2; i n; i++) { int ai; cin ai; if (ai == temp + d) { r = 1; temp = ...
弹力球 #includeiostream using namespace std; int main() { float a, h, i; cin a; h = a; for (i = 0; i 9; i++) { h += a; a /= 2; } a /= 2; //因为这里漏算了第十次弹起的高度 cout h endl a; return 0; } ...