题解 2854: 密码翻译 解题思路:这题目就很逆天啊,信心满满地提交,给我来个91分,尝试多次都没办法,豆包都崩溃了,还是不行。刚开始以为是输出格式的问题,结果搞了半天是数组长度的问题,数组长度设为80过不去,改大一点,比如100就过了。不要看着题目说80就设80,最好设大一点。 题解列表 2026年01月06日 2 点赞 0 评论 353 浏览 评分:10.0
正则表达式解决字符串空格输入问题 摘要:解题思路:由于字符串中单词以空格隔开,我们可以用正则表达式配合scanf来解决空格的输入问题,比如scanf("%[^\n]",st…… 题解列表 2025年03月01日 1 点赞 0 评论 601 浏览 评分:10.0
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) { Sc…… 题解列表 2024年02月02日 0 点赞 0 评论 885 浏览 评分:9.9
题解 2854: 字符串的输入以及条件判断 解题思路:对输入字符串的每个元素进行判断,如果该字符为A~Y或a~y,则输出其下一个字符串;如果该字符为z或Z,则输出a或A注意事项:scanf函数对含空格的字符串的读取有限制,只会读到空格之前,对空格后的字符无法读取,回存在缓存区中,所以使用getchar函数来读取字符参考代码:#include 题解列表 2024年09月19日 0 点赞 0 评论 705 浏览 评分:9.9 2854: 密码翻译 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;string a;const int N…… 题解列表 2024年07月20日 0 点赞 0 评论 646 浏览 评分:9.9 2854: 密码翻译 ```#includeusingnamespacestd;constintN=100010;stringa;//字符串intmain(){getline(cin,a);//读入一行;for(inti=0;i='a'&&a[i]='A'&&a[i] 题解列表 2023年12月29日 0 点赞 0 评论 510 浏览 评分:9.9 2854: 密码翻译 摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 100001 int main() { c…… 题解列表 2023年03月06日 0 点赞 0 评论 969 浏览 评分:9.9 密码翻译(C++)简单实用 摘要:参考代码:#include <iostream>#include <string>using namespace std;string encrypt(const string& str) { …… 题解列表 2023年07月16日 0 点赞 0 评论 647 浏览 评分:9.9 密码翻译(数组空间要100以上,注意) 参考代码:```c#include#include#includeintmain(){chara[100];gets(a);intlen=strlen(a);for(inti=0;i 题解列表 2023年09月25日 0 点赞 0 评论 524 浏览 评分:9.9 纯小丑题想圈钱 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char a[101]; fgets(a…… 题解列表 2023年10月10日 0 点赞 1 评论 396 浏览 评分:9.9 « 123 »
2854: 密码翻译 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;string a;const int N…… 题解列表 2024年07月20日 0 点赞 0 评论 646 浏览 评分:9.9
2854: 密码翻译 ```#includeusingnamespacestd;constintN=100010;stringa;//字符串intmain(){getline(cin,a);//读入一行;for(inti=0;i='a'&&a[i]='A'&&a[i] 题解列表 2023年12月29日 0 点赞 0 评论 510 浏览 评分:9.9
2854: 密码翻译 摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 100001 int main() { c…… 题解列表 2023年03月06日 0 点赞 0 评论 969 浏览 评分:9.9
密码翻译(C++)简单实用 摘要:参考代码:#include <iostream>#include <string>using namespace std;string encrypt(const string& str) { …… 题解列表 2023年07月16日 0 点赞 0 评论 647 浏览 评分:9.9
密码翻译(数组空间要100以上,注意) 参考代码:```c#include#include#includeintmain(){chara[100];gets(a);intlen=strlen(a);for(inti=0;i 题解列表 2023年09月25日 0 点赞 0 评论 524 浏览 评分:9.9
纯小丑题想圈钱 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char a[101]; fgets(a…… 题解列表 2023年10月10日 0 点赞 1 评论 396 浏览 评分:9.9