Python‘’蚂蚁感冒‘’,编程即数学(优质题解) 摘要:解题思路:可以把碰头回头改为交叉带病,完全等价参考代码:n=int(input())q=list(map(int,input().split()))x=q[0]num=1for i in range(…… 题解列表 2023年05月02日 0 点赞 0 评论 250 浏览 评分:0.0
与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner scanner = new …… 题解列表 2023年05月02日 0 点赞 0 评论 474 浏览 评分:6.0
[编程入门]字符串分类统计 摘要:一、解题思路:C参考代码:#include <stdio.h> #include <string.h> int main() { char str[200]; int z = 0, s…… 题解列表 2023年05月02日 0 点赞 0 评论 151 浏览 评分:8.0
[编程入门]利润计算 摘要:i<=100000 10%100000<i≤200000200000<i≤400000 5%400000<i≤600000 3%600000<i≤1000000 1.5%1000000<i 1%一、解…… 题解列表 2023年05月02日 0 点赞 0 评论 170 浏览 评分:0.0
[编程入门]成绩评定 摘要:一、解题思路:switch语句C参考代码:#include <stdio.h> int main() { int s; scanf("%d", &s); switch (s / 10…… 题解列表 2023年05月02日 0 点赞 0 评论 121 浏览 评分:0.0
ASCll码巧解约束项 摘要:解题思路:根据题目所列条件,我们要根据switch语句来模拟计算器,但是switch语句又不能直接根据字符来选出情况(即case后面不能直接跟'+'),所以我们可以找到一个中间量:即将…… 题解列表 2023年05月02日 0 点赞 0 评论 239 浏览 评分:9.9
普通的写法 摘要:```cpp #include #include #include using namespace std; const int N=20000; int a[N],b[N]; int …… 题解列表 2023年05月01日 0 点赞 1 评论 389 浏览 评分:9.9
普通的写法 摘要:```cpp #include using namespace std; int a[5001],n,i,j,m; int main() { cin>>n>>m; boo…… 题解列表 2023年05月01日 0 点赞 0 评论 238 浏览 评分:0.0
普通的写法 摘要:```cpp #include #include using namespace std; const int N =1010; int a[N],b[N]; int main() {…… 题解列表 2023年05月01日 0 点赞 0 评论 403 浏览 评分:9.9
校门外的数 摘要:```cpp #include #include using namespace std; int main() { int n,m; cin>>n>>m; int c[1000…… 题解列表 2023年05月01日 0 点赞 0 评论 192 浏览 评分:0.0