作文(不是真作文!!!)(语言:c++) 摘要:解题思路: 先判断n是否为零,如果为零,直接输出“0”后return 0(不会有人不读题,因为这个错了吧^-^);不为零时,直接判断词的字数是否小于行(hang)中的剩余空间,是就将行中的剩余空间…… 题解列表 2022年08月13日 0 点赞 0 评论 440 浏览 评分:9.0
没什么特别的 摘要:解题思路:注意事项:参考代码:a,n=map(int,input().split()) s=0 b=str(a) for i in range(n): s+=int(b) a…… 题解列表 2022年08月13日 0 点赞 0 评论 465 浏览 评分:9.9
思路简单, 摘要:解题思路:注意事项:参考代码n=int(input()) c=0 a=1 for i in range(1,n+1): for j in range(1,i+1): …… 题解列表 2022年08月13日 0 点赞 0 评论 456 浏览 评分:9.9
两种方式表示列表最后一个元素 摘要:解题思路:注意事项:参考代码:方法一:a=list(map(int,input().split())) b=len(a) while a[b-1]!=-1: a.extend(list(…… 题解列表 2022年08月13日 0 点赞 0 评论 596 浏览 评分:9.9
蓝桥杯2013年第四届真题-买不到的数目(C++) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main() { int m, n, i, cnt = 0; …… 题解列表 2022年08月12日 0 点赞 0 评论 484 浏览 评分:0.0
编写题解 1032: [编程入门]自定义函数之字符串连接(函数) 摘要:1.gets()函数用来从标准输入设备(键盘)读取字符串直到换行符结束,但换行符会被丢弃,然后在末尾添加'\0'字符。gets(c)将读取的字符串保存到c[]中。 2.puts()函数把字符串输出到…… 题解列表 2022年08月12日 0 点赞 0 评论 631 浏览 评分:8.0
编写题解 1031: [编程入门]自定义函数之字符串反转(函数) 摘要:```c //自定义函数之字符串反转 #include #include void StrInvers(){ char c[100];//定义一个字符型数组 //gets()函数…… 题解列表 2022年08月12日 0 点赞 0 评论 469 浏览 评分:6.9
c/c++方法 初学者思维 摘要:解题思路:注意事项:参考代码:void input() { char c; int letter = 0, space = 0, digit = 0, other = 0; while …… 题解列表 2022年08月12日 0 点赞 0 评论 582 浏览 评分:0.0
混个经验值 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) a=sorted(a,reverse=True) for i in a: print(i,…… 题解列表 2022年08月12日 0 点赞 0 评论 510 浏览 评分:9.9
混个经验值 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) a=sorted(a,reverse=False) for i in a: print(i…… 题解列表 2022年08月12日 0 点赞 0 评论 577 浏览 评分:9.9