摘要:
#include<iostream>using namespace std;int main(){ ios::sync_with_stdio(0); cin.tie(0); int n, i, j, t, x, flag = 0; cin >> n; int* arr = new int[n]; f 阅读全文
摘要:
#include<iostream>using namespace std;int main(){ double n = 0, i; for (i = 0; i < 5; i++) n = (1000.0 + n) / (1 + 12 * 0.0063); cout << n; return 0;} 阅读全文
摘要:
#include<iostream>#include<cmath>using namespace std;double f_origianal(double a, double b, double c, double d, double newx){ return a * pow(newx, 3) 阅读全文
摘要:
#include<iostream>using namespace std;int f(int n){ if (n == 1 || n == 2) return 1; return f(n - 1) + f(n - 2);}int main(){ int i; for (i = 0; i < 30; 阅读全文
摘要:
#include<iostream>using namespace std;int main(){ int carp = 0, i, j, k; for (i = 0; i <= 9; i++) { carp = i * 1100; j = 0; while (j != i && j <= 9) { 阅读全文
摘要:
#include<iostream>#define Y 1990using namespace std;int monthday[] = { 31,28,31,30,31,30,31,31,30,31,30,31 };bool runyear(int n){ if (n % 4 == 0) retu 阅读全文
摘要:
//#include<iostream>//using namespace std;//int main()//{// int A, B, C;// int n, nn, nnn;// for (n = 1; n <= 5; n++)// {// for (nn = 1; nn <= 5; nn++ 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; int convert2ten(int a,int num)//将a进制转换为十进制{ int b=0; int t; int i=0; while(num!=0) { t=num%10; num=num/1 阅读全文
摘要:
#include<iostream>using namespace std;int main(){ int cock, hen, chicken; for (cock = 0; cock <= 20; cock++) { for (hen = 0; hen <= 33; hen++) { chick 阅读全文
摘要:
#include<iostream>using namespace std; class Complex{public: Complex(double r = 0, double i = 0) :real(r), imag(i) { } Complex operator+(Complex& c2) 阅读全文