二维数组解决方式 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main ( ){ int n=0 ,i=0 ; char a[101][2…… 题解列表 2024年12月03日 0 点赞 0 评论 527 浏览 评分:9.0
我很荣幸,将题解发了上来 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;char s[1001];int main(){ int l,n; ci…… 题解列表 2023年01月11日 0 点赞 2 评论 551 浏览 评分:7.0
编写题解 2858: 整理药名 摘要:参考代码:#include<bits/stdc++.h>using namespace std;char s[1001];int main(){ int l,n; cin>>n; f…… 题解列表 2023年02月09日 0 点赞 6 评论 495 浏览 评分:6.0
整理药名(C++)简单实用 摘要:代码解析:参考代码:#include <iostream>#include <string>#include <cctype>using namespace std;string formatMedi…… 题解列表 2023年07月16日 0 点赞 0 评论 896 浏览 评分:6.0
2858: 整理药名 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main() { char a[100][100]; // 定义一个二维数组来存储…… 题解列表 2024年11月05日 0 点赞 0 评论 475 浏览 评分:0.0
解 2858: 整理药名 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): s = input() s = s.lower() if s[0].isalpha…… 题解列表 2024年08月01日 0 点赞 0 评论 995 浏览 评分:0.0
2858: 整理药名(详细思路) 解题思路:只看首个字符是不是小写字母,是就改为大写字母,不是就直接存起来,其他部分就看是不是大写字母,是就改为小写,不是就直接存起来,首字母和其他部分刚好反过来注意事项:参考代码:a=int(input())foriinrange(a):b=list(input())c=''#用来存修 题解列表 2026年09月27日 1 点赞 0 评论 18 浏览 评分:0.0
题目 2858: 整理药名(超简洁版) 解题思路:注意事项:参考代码:a=int(input())foriinrange(a):b=input()s=b.capitalize()#这是python自带的将首字母大写其他部分小写的函数print(s) 题解列表 2026年09月27日 1 点赞 0 评论 14 浏览 评分:0.0
编写题解 2858: 整理药名 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): a=input() b=[' ' for k in range(len(a)…… 题解列表 2024年03月12日 0 点赞 0 评论 595 浏览 评分:0.0
2858: 整理药名(java) 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2858: 整理药名 import java.util.Scanner; public class t_2858 { …… 题解列表 2024年02月06日 0 点赞 0 评论 393 浏览 评分:0.0