编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:数字在ascll中是48到57字母大写是65到90 小写是97到122注意事项:参考代码:import java.util.*;public class Main { public …… 题解列表 2024年04月19日 1 点赞 0 评论 297 浏览 评分:0.0
C语言-模块化程序设计方法实现 摘要:解题思路: 初始化,加密,解密模块化封装为函数调用注意事项: 输入输出对第一行末尾回车需要特殊处理参考代码:#include <stdio.h>#include <ctype.h>char R[26]…… 题解列表 2024年04月19日 0 点赞 0 评论 169 浏览 评分:0.0
编写题解 1013: [编程入门]Sn的公式求和 摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main { public static void main(String[] args) { …… 题解列表 2024年04月19日 0 点赞 0 评论 583 浏览 评分:0.0
2854: 密码翻译 摘要:解题思路:正常思路注意事项:z和Z转化为a和A参考代码:S = list(input())for i,s in enumerate(S): if s.isalpha(): if s…… 题解列表 2024年04月19日 0 点赞 0 评论 185 浏览 评分:0.0
无聊的星期六 摘要:标签个红色的,匪夷所思。解题思路:自己列一个表就知道了1=02=13=14=25=26=37=3参考代码:s=1 while s!=0: s=int(input()) if s=…… 题解列表 2024年04月19日 0 点赞 0 评论 169 浏览 评分:0.0
STL unordered_set完美解决问题 摘要:解题思路:把字符串中只出现一次的字符保存到set里。注意事项:题意要求输出第一次出现字符,所以需要遍历两次字符串。参考代码:#include <iostream>#include <string>#i…… 题解列表 2024年04月19日 0 点赞 0 评论 272 浏览 评分:0.0
编写题解 2841: 大整数加法 摘要:解题思路:求出最长字符串的长度,相加时只需让相加之后的答案位数多一位因为相同长度的数字相加最大只会向前进一位,如9+9=18,99+99=198.最后只需判断第一位是否为,零为0不打印,反之,打印。注…… 题解列表 2024年04月19日 0 点赞 0 评论 293 浏览 评分:0.0
无聊的星期六 摘要:解题思路:正则就不用了。注意事项:参考代码:import sys for line in sys.stdin: if line=="End of file": exit(…… 题解列表 2024年04月20日 0 点赞 0 评论 172 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:import sys for str in sys.stdin: str=list(map(int,str.split())) max=0 …… 题解列表 2024年04月20日 0 点赞 0 评论 245 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:st=list(map(int,input().split())) print(''.join(str('%-8d' % i) for …… 题解列表 2024年04月20日 0 点赞 0 评论 443 浏览 评分:0.0