上一页 1 ··· 13 14 15 16 17
摘要: #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 阅读全文
posted @ 2023-04-23 21:23 a_true 阅读(12) 评论(0) 推荐(0) 编辑
摘要: #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;} 阅读全文
posted @ 2023-04-22 22:04 a_true 阅读(8) 评论(0) 推荐(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) 阅读全文
posted @ 2023-04-21 14:05 a_true 阅读(40) 评论(0) 推荐(0) 编辑
摘要: #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; 阅读全文
posted @ 2023-04-20 18:29 a_true 阅读(20) 评论(0) 推荐(0) 编辑
摘要: #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) { 阅读全文
posted @ 2023-04-19 18:20 a_true 阅读(12) 评论(0) 推荐(0) 编辑
摘要: #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 阅读全文
posted @ 2023-04-18 13:36 a_true 阅读(3) 评论(0) 推荐(0) 编辑
摘要: //#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++ 阅读全文
posted @ 2023-04-17 21:15 a_true 阅读(6) 评论(0) 推荐(0) 编辑
摘要: #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 阅读全文
posted @ 2023-04-15 11:20 a_true 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main(){ int cock, hen, chicken; for (cock = 0; cock <= 20; cock++) { for (hen = 0; hen <= 33; hen++) { chick 阅读全文
posted @ 2023-04-13 13:35 a_true 阅读(13) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std; class Complex{public: Complex(double r = 0, double i = 0) :real(r), imag(i) { } Complex operator+(Complex& c2) 阅读全文
posted @ 2023-04-12 12:43 a_true 阅读(30) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17