编写题解 1007: [编程入门]分段函数求值 摘要:#include<iostream> using namespace std; int main() { int x,y; cin>>x; if(x<1){ …… 题解列表 2022年05月07日 0 点赞 0 评论 359 浏览 评分:0.0
编写题解 1008: [编程入门]成绩评定 摘要:#include <iostream> using namespace std; int a; int main() { cin>>a; switch(a/10){ case 10:co…… 题解列表 2022年05月07日 0 点赞 0 评论 367 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断 摘要:#include<iostream> using namespace std; int main() { int num[5]; //定义一个有 5 个元素的数组 int …… 题解列表 2022年05月07日 0 点赞 0 评论 377 浏览 评分:0.0
1004: [递归]母牛的故事 摘要:# include<stdio.h> int fun(int n) { if(n<=3) return n; else return fun(n-1)+fun(n-3); }…… 题解列表 2022年05月08日 0 点赞 0 评论 495 浏览 评分:0.0
编写题解 1013: [编程入门]Sn的公式求和 摘要:解题思路:注意事项:参考代码:n=eval(input()) sum=0 a=0 for i in range(n): a=a*10+2 sum+=a print(sum)…… 题解列表 2022年05月08日 0 点赞 0 评论 435 浏览 评分:0.0
字符串内排序 题解(超简单) 摘要:解题思路:不就是个字符串中的字符排个序嘛!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n;char a[1005];int m…… 题解列表 2022年05月08日 0 点赞 0 评论 463 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:#include <iostream>#include <cstdio>#include <cstring>using namespace std;int main (){ char str[1…… 题解列表 2022年05月08日 0 点赞 0 评论 308 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:#include <iostream>#include <cstdio>#include <cstring>using namespace std;int main (){ char str[1…… 题解列表 2022年05月08日 0 点赞 0 评论 357 浏览 评分:0.0
编写题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:n=eval(input()) sum=0 a=1 for i in range(1,n+1): a=1 for j in range(1,i+…… 题解列表 2022年05月08日 0 点赞 0 评论 353 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split()) sum1=sum2=sum3=0 for i in range(1,a+1): sum1+=i…… 题解列表 2022年05月08日 0 点赞 0 评论 246 浏览 评分:0.0