编写题解 1762: printf基础练习 摘要:解题思路:注意事项:这道题年代较长,如今的python3.8.6需要print('0o%o 0x%x'%(n,n))参考代码:n=123456789print('0%o 0x%…… 题解列表 2024年02月21日 0 点赞 0 评论 729 浏览 评分:9.9
题解 1066: 二级C语言-自定义函数 摘要:##思路 ~~很简单~~ ####1.阶乘 for跑一遍sum*=i ####2.快速幂 sum*=n ##代码 ```cpp #include using namespace st…… 题解列表 2024年02月21日 0 点赞 0 评论 311 浏览 评分:9.9
最长最短单词 摘要:解题思路:注意事项:参考代码:sentence = input().split() # 分割输入的句子为单词列表longest_word = max(sentence, key=len) # 找到…… 题解列表 2024年02月21日 0 点赞 3 评论 389 浏览 评分:9.9
自定义函数求一元二次方程 摘要:解题思路:两个共轭复数根的实部为-b/2a 虚部为+(-)(sqrt(b*b-4ac))/2a注意事项:写2a的时候一定写成(2*a)记得加括号!!!有问题评论区q我~参考代码:import java…… 题解列表 2024年02月21日 0 点赞 0 评论 356 浏览 评分:9.9
自定义函数之数字后移 摘要:解题思路:创建一个数组把前面需要替换的数组进行储存,数组整体后移之后再加到数组前面注意事项:注意数组越界欸,一定要看清楚!!!参考代码:import java.util.Scanner;public …… 题解列表 2024年02月21日 0 点赞 0 评论 322 浏览 评分:9.9
malloc函数的使用 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main() { int n, i, m; scanf("%d", &n); …… 题解列表 2024年02月21日 0 点赞 0 评论 248 浏览 评分:9.9
c++解马走日 摘要:解题思路:注意事项:参考代码://马走日经典应用 #include<iostream>#include<cstdio>#include<cstring>#include<vector>using na…… 题解列表 2024年02月21日 0 点赞 0 评论 526 浏览 评分:9.9
连续出现的字符 摘要:k = int(input()) s = input() for i in range(len(s) - k + 1): window = s[i:i+k] if len(…… 题解列表 2024年02月21日 1 点赞 1 评论 303 浏览 评分:9.9
编写题解 2760: 整型与布尔型的转换 摘要:代码: a=int(input()) b=bool(a) a=int(b) print(a) 注意:`bool`是`int`子类,故正常的创建与删除方式 **不…… 题解列表 2024年02月22日 0 点赞 0 评论 436 浏览 评分:9.9
编写题解 2761: Hello, World!的大小 摘要: s="Hello, World!" print(len(s)+1) #原题为C语言题目,故结果+1,系统才会判定正确 原题为C语言题目,故结果+1,系统才会判定正确…… 题解列表 2024年02月22日 0 点赞 0 评论 653 浏览 评分:9.9