字符串编码(简单易懂) 摘要:解题思路:题目给的转换只有1-26的数字才能被转换,基于这个思路,而且要求是字典序最大的字符串,用char类型数组存放输入,对每个元素进行遍历,如果每两个相邻的元素组成的两位数小于26,就把这两位数转…… 题解列表 2023年12月20日 0 点赞 0 评论 532 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:```python class Year: def __init__(self): pass def put(self,year,mon,day): …… 题解列表 2023年12月20日 1 点赞 0 评论 351 浏览 评分:0.0
c代码记录之凯撒密码 摘要:按理说应该以是否是第二行来甄别输出,而不是以是否不等于START或END,因为密文第二行也可能是START或END,优化也没多大意思,就这么着吧 #include #include…… 题解列表 2023年12月20日 0 点赞 0 评论 563 浏览 评分:0.0
1046: [编程入门]自定义函数之数字后移 摘要:```python n = int(input()) li = list(map(str,input().split())) m = int(input()) for i in range(m…… 题解列表 2023年12月20日 0 点赞 0 评论 318 浏览 评分:0.0
..................... 摘要:```c #include int main() { float a; scanf("%f",&a); for(int i=0;i…… 题解列表 2023年12月20日 0 点赞 0 评论 295 浏览 评分:0.0
strcpy?不不不,都多余了 摘要:```c #include int main() { int a,b; char s[10000]; scanf("%d%s%d",&a,s,&b); c…… 题解列表 2023年12月20日 0 点赞 0 评论 344 浏览 评分:9.9
1024: [编程入门]矩阵对角线求和 摘要:```python l = [] sum_zhu = 0 sum_fu=0 for i in range(3): l1 = list(map(int,input().split())…… 题解列表 2023年12月20日 0 点赞 0 评论 353 浏览 评分:0.0
最长最短单词 摘要:解题思路:注意事项:参考代码:myList=input().split()mydict= {}newList=[]for temp in myList: newList.append(len(t…… 题解列表 2023年12月20日 0 点赞 0 评论 491 浏览 评分:2.0
c代码记录之数组输出 摘要:没啥要注意的,他要的是行列最小坐标,直接倒序遍历比较 可加强训练的地方 1.行列数未知,自由输入 2.用指针写 #include #include …… 题解列表 2023年12月20日 0 点赞 0 评论 503 浏览 评分:0.0
简单的字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n=0; scanf("%d",&n); g…… 题解列表 2023年12月20日 0 点赞 0 评论 339 浏览 评分:0.0