上一页 1 ··· 20 21 22 23 24
  2023年4月19日
摘要: 2.4三色球问题 流程图 #include<bits/stdc++.h>using namespace std; int main(){ for(int i=0;i<=3;i++)//红球 { for(int j=0;j<=3;j++)//白球 { //如果剩下的球小于等于黑球的个数那么就符合 if 阅读全文
posted @ 2023-04-19 12:57 临江柔 阅读(14) 评论(0) 推荐(0) 编辑
  2023年4月18日
摘要: 2.3分糖果 源代码 #include<bits/stdc++.h>using namespace std;int j;int s[10]={10,2,8,22,16,4,10,6,14,20},t[10];//初始糖果 代理bool check(int a[])//判断是否相同{ for(int 阅读全文
posted @ 2023-04-18 09:33 临江柔 阅读(14) 评论(0) 推荐(0) 编辑
  2023年4月17日
摘要: 2.1个人所得税问题 //if else就可以 #include<bits/stdc++.h>using namespace std;typedef long long ll;int n; int main(){ cin>>n; double ans; if(n<3500)cout<<n;//小于起 阅读全文
posted @ 2023-04-17 17:09 临江柔 阅读(20) 评论(0) 推荐(0) 编辑
  2023年4月14日
摘要: 1.10数制转换 #include<bits/stdc++.h>using namespace std; int source,object,length;//储存原数,村拿出目标数值,存储字符串长度 long decimal_num;//存储十进制 char temp[1000];//存转换后的数 阅读全文
posted @ 2023-04-14 21:26 临江柔 阅读(23) 评论(0) 推荐(0) 编辑
  2023年4月13日
摘要: 1.9折半查找 流程图 代码实现 #include<bits/stdc++.h>using namespace std; int n;int a[100010]; int main() { cin>>n; for(int i=0;i<n;i++)cin>>a[i]; int t;cin>>t; in 阅读全文
posted @ 2023-04-13 18:48 临江柔 阅读(9) 评论(0) 推荐(0) 编辑
  2023年4月12日
摘要: 1.6 牛顿迭代法求根 不断迭代就可以了 #include<bits/stdc++.h>using namespace std; double f(double a,double b,double c,double d){ double x0,x=1.5,f,fd,h; do { x0=x; f=a 阅读全文
posted @ 2023-04-12 21:08 临江柔 阅读(12) 评论(0) 推荐(0) 编辑
  2023年4月11日
摘要: 2 借书方案知多少 #include<bits/stdc++.h>using namespace std;#define int long long int n; signed main(){ for(int i=1;i<=5;i++)//第一个人 { for(int j=1;j<=5;j++)// 阅读全文
posted @ 2023-04-11 13:12 临江柔 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 1百钱买白鸡 #include<bits/stdc++.h>using namespace std;#define int long long int n; signed main(){ for(int i=0;i<=20;i++)//5钱的鸡 { for(int j=0;j<=33;j++)//三 阅读全文
posted @ 2023-04-11 12:35 临江柔 阅读(32) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24