c++cout函数实现 摘要:解题思路:使用cout结合操纵符oct(八进制输出)和showbase(显示进制前缀)输出八进制形式的数字,接着使用hex(十六进制输出)和showbase输出十六进制形式的数字,中间用空格分隔。注意…… 题解列表 2024年10月23日 2 点赞 0 评论 695 浏览 评分:9.9
1031: [编程入门]自定义函数之字符串反转(python) 摘要:#### 1031: [编程入门]自定义函数之字符串反转 ~~~python def main(): s = input() s = list(s) s.reve…… 题解列表 2024年10月24日 0 点赞 0 评论 329 浏览 评分:9.9
1032: [编程入门]自定义函数之字符串连接(python) 摘要:#### 无需多言 ~~~python def main(): print(input() + input()) if __name__ == '__main__': …… 题解列表 2024年10月24日 0 点赞 0 评论 342 浏览 评分:9.9
逆天解法,包得吃的。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d=0; char ch; while(~scanf("%d",&a)) { ch=(ge…… 题解列表 2024年10月24日 1 点赞 0 评论 665 浏览 评分:9.9
编写题解 1034: [编程入门]自定义函数之数字分离(python) 摘要:[题目1034:[编程入门]自定义函数之数字分离](https://www.dotcpp.com/oj/problem1034.html?sid=18058228&lang=6#editor) …… 题解列表 2024年10月24日 1 点赞 0 评论 371 浏览 评分:9.9
编写题解 1045: [编程入门]自定义函数之整数处理(python) 摘要:[题目1045:[编程入门]自定义函数之整数处理](https://www.dotcpp.com/oj/problem1045.html?sid=18059704&lang=6#editor) …… 题解列表 2024年10月24日 0 点赞 0 评论 315 浏览 评分:9.9
1046: [编程入门]自定义函数之数字后移(python) 摘要:把末尾的插入`a[0]`,再把末尾的删除 ~~~python n = int(input()) a = list(map(int,input().split())) m = int(inp…… 题解列表 2024年10月24日 1 点赞 0 评论 400 浏览 评分:9.9
1137: C语言训练-求函数值(python) 摘要:Python的默认最大递归深度(通常为1000)。当输入的x值较大时,函数f(x)会进行大量的递归调用,导致递归深度超过限制。 **解决方法** - 增加递归深度限制:可以通过sys.setr…… 题解列表 2024年10月24日 0 点赞 0 评论 289 浏览 评分:9.9
for循环,数组的运用。 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m; cin>>m; int Sn=0; int a[100]…… 题解列表 2024年10月24日 1 点赞 0 评论 312 浏览 评分:9.9
模拟 #2911: 连续出现的字符 摘要:``` #include #include #include #include using namespace std; int main() { char str[1010]…… 题解列表 2024年10月25日 0 点赞 0 评论 223 浏览 评分:9.9