会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wcy1111
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
18
19
20
21
22
23
24
下一页
2023年5月17日
23rd
摘要: 换分钱 #include <iostream>using namespace std;int main(){ for(int i=0;i<=5;i++) for( int j=0;j<=10;j++) for( int k=0;k<=50;k++)if(i+j/2.0+k/10.0==5)print
阅读全文
posted @ 2023-05-17 16:09 晨观夕
阅读(93)
评论(0)
推荐(0)
2023年5月16日
22nd
摘要: 源代码 #include <bits/stdc++.h>using namespace std;int main(){ long i; double sum=0; for(i=1;i<=64;i++){ sum+=pow(2,i-1); } cout<<sum;}
阅读全文
posted @ 2023-05-16 16:36 晨观夕
阅读(39)
评论(0)
推荐(0)
2023年5月15日
21st
摘要: #include <iostream>using namespace std; int a[14];int main(){ int j=1,n; for(int i=1;i<=13;i++){ n=1; do{ if(j>13)// j=1; if(a[j]){//如果不是空盒 跳过 j++; }
阅读全文
posted @ 2023-05-15 18:39 晨观夕
阅读(136)
评论(0)
推荐(0)
2023年5月14日
20th
摘要: 古风排版 中国的古人写文字,是从右向左竖向排版的。本题就请你编写程序,把一段文字按古风排版。 输入格式: 输入在第一行给出一个正整数N(<100),是每一列的字符数。第二行给出一个长度不超过1000的非空字符串,以回车结束。 输出格式: 按古风格式排版给定的字符串,每列N个字符(除了最后一列可能不足
阅读全文
posted @ 2023-05-14 15:33 晨观夕
阅读(26)
评论(0)
推荐(0)
2023年5月12日
19th
摘要: 源代码 #include <iostream>using namespace std;int main(){ long n,sum,i; while(scanf("%ld",&n)!=EOF){ sum=0; cout<<n<<endl; for(i=7;i<=n;i++){ if(i%7==0&&
阅读全文
posted @ 2023-05-12 19:42 晨观夕
阅读(108)
评论(0)
推荐(0)
2023年5月11日
18th
摘要: #include <iostream> using namespace std;int main(){ //对称数 对数字分解问题 //一般都要进行对数的取余 然后将数字存起来 方便比较 int x=95859;//初始里程表 求两个小时后另一个 对称数 int a[5]; for(int i=95
阅读全文
posted @ 2023-05-11 16:14 晨观夕
阅读(51)
评论(0)
推荐(0)
17th
摘要: 卖金鱼 源代码 #include <iostream>using namespace std;int main(){ int x=11; //1 x/2 +1/2 //2 x/3+1/3 //3 x/4+1/4 //4 x/5+1/5 最后剩下11条 /*因为金鱼只能整条出售 所以,x只能是奇数 (
阅读全文
posted @ 2023-05-11 15:51 晨观夕
阅读(44)
评论(0)
推荐(0)
2023年5月9日
16th
摘要: 三色球 #include <iostream>using namespace std;int main(){ //红球有三个 白球有三个 黑球有六个 //摸八个球 有多少种组合? int red=3,wh=3,bl=6; for(int m=0;m<=red;m++) for(int n=0;n<=
阅读全文
posted @ 2023-05-09 17:00 晨观夕
阅读(22)
评论(0)
推荐(0)
2023年5月8日
15th
摘要: 分糖果问题 源代码 #include <iostream>using namespace std;int judge(int c[]){ int i; for(i=0;i<10;i++) if(c[0]!=c[i]) return 1; return 0; }int main(){ int coun
阅读全文
posted @ 2023-05-08 18:31 晨观夕
阅读(52)
评论(0)
推荐(0)
2023年5月5日
14th
摘要: L1-023 输出GPLT 给定一个长度不超过10000的、仅由英文字母构成的字符串。请将字符重新调整顺序,按GPLTGPLT....这样的顺序输出,并忽略其它字符。当然,四种字符(不区分大小写)的个数不一定是一样多的,若某种字符已经输出完,则余下的字符仍按GPLT的顺序打印,直到所有字符都被输出。
阅读全文
posted @ 2023-05-05 22:55 晨观夕
阅读(84)
评论(0)
推荐(0)
上一页
1
···
18
19
20
21
22
23
24
下一页
公告