Devc++来写奇数单增序列 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void sort(int odds[],int length);int main(){int N=0;int i=0;scanf("…… 题解列表 2024年07月12日 0 点赞 0 评论 717 浏览 评分:6.0
1509: 蓝桥杯算法提高VIP-图形输出 (不直接使用printf) 摘要:题目描述:编写一程序,在屏幕上输出如下内容: X | X | X---+---+--- | |---+---+---O | O | O注意:本题请同学们严格按照图形的…… 题解列表 2024年07月12日 1 点赞 0 评论 681 浏览 评分:9.9
题解 2853: 字符替换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char c[32],l,k;int main(){ cin>>c; …… 题解列表 2024年07月12日 0 点赞 0 评论 414 浏览 评分:9.9
2846: 统计数字字符个数 ```cpp#includeusingnamespacestd;typedeflonglongll;constintN=1e5;chara[N];intmain(){llsum=0;cin.getline(a,225);for(inti=0;i='0'&&a[i] 题解列表 2024年07月12日 0 点赞 0 评论 540 浏览 评分:0.0
1174: 计算直线的交点数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; while (cin >> n) { int dp[2…… 题解列表 2024年07月12日 0 点赞 0 评论 591 浏览 评分:0.0
1505: 蓝桥杯算法提高VIP-单词个数统计 摘要:题目描述:编写一个程序,输入一个字符串(长度不超过80),然后统计出该字符串当中包含有多少个单词。 例如:字符串“this is a book”当中包含有4个单词…… 题解列表 2024年07月12日 0 点赞 0 评论 662 浏览 评分:9.9
编写题解 1010: [编程入门]利润计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int x,y; cin>>x;//利润 if(x<=100…… 题解列表 2024年07月11日 2 点赞 0 评论 842 浏览 评分:8.0
机器人繁殖(C语言)——别用long!不然时间也很long。 解题思路:第一种思路:把这看做一道数学题,写出通项找规律,直接得到公式。在下数学不好,想了想就转战第二种思路了。第二种思路:利用计算机的能力,遍历第一年的机器人数量,依据题意得出n年后的数量,比较后得到满足条件的初值。注意事项:本题数据比较大且是整型, 题解列表 2024年07月11日 0 点赞 0 评论 509 浏览 评分:0.0
2846: 统计数字字符个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e5;char a[N];int main(){ …… 题解列表 2024年07月11日 0 点赞 0 评论 604 浏览 评分:0.0
解 2846: 统计数字字符 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char a[1005];int main(){ int sum=0; cin.g…… 题解列表 2024年07月11日 0 点赞 0 评论 541 浏览 评分:0.0