编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:数字在ascll中是48到57字母大写是65到90 小写是97到122注意事项:参考代码:import java.util.*;public class Main { public …… 题解列表 2024年04月19日 1 点赞 0 评论 336 浏览 评分:0.0
小白写代码,我懂你!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define PI 3.14159int main(){int r ,h;printf("please input r and h:…… 题解列表 2024年04月19日 0 点赞 0 评论 220 浏览 评分:0.0
2819: 数字反转 摘要:```c #include int main() { int num,a; scanf("%d",&num); if(num==0) //按照输入的数字…… 题解列表 2024年04月19日 0 点赞 0 评论 246 浏览 评分:0.0
1130: C语言训练-数字母 摘要:注意事项:需要了解并熟练使用str.isalpha()函数。参考代码:s = input() #字符串类型的输入 cnt = 0 #计数 for i in s: if…… 题解列表 2024年04月19日 0 点赞 0 评论 257 浏览 评分:0.0
1124: C语言训练-大、小写问题 摘要:解题思路:注意事项: 参考代码:print(input().lower())…… 题解列表 2024年04月19日 0 点赞 0 评论 250 浏览 评分:0.0
1196: 去掉空格 摘要:解题思路:注意事项:参考代码:while True: try: s = input() print(s.replace(' ', '…… 题解列表 2024年04月19日 0 点赞 0 评论 471 浏览 评分:0.0
1042: [编程入门]电报加密 摘要:解题思路:注意事项:参考代码:s = input() arr = "" for i in range(len(s)): if s[i] == ' ': …… 题解列表 2024年04月19日 0 点赞 0 评论 299 浏览 评分:0.0
python--study||O.o 摘要:参考代码:# 设置四个边界,层层遍历 row, column = map(int, input().split()) arr = [list(map(int, input().split(…… 题解列表 2024年04月19日 0 点赞 0 评论 305 浏览 评分:9.9
BFS板子最最最基础题了 摘要:```cpp #include using namespace std; #define endl '\n' #define int long long typedef pair …… 题解列表 2024年04月19日 0 点赞 0 评论 547 浏览 评分:9.9
1099: 校门外的树,使用列表切片 摘要:解题思路:运用列表的切片操作,将区间内的点都设为0注意事项:给的区间可能会有重叠参考代码:L,m = map(int,input().strip().split())tree =[1]*(L+1)fo…… 题解列表 2024年04月19日 1 点赞 0 评论 299 浏览 评分:10.0