电报加密C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char letter[100]; gets(letter); for(in…… 题解列表 2022年01月04日 0 点赞 0 评论 592 浏览 评分:0.0
[编程入门]电报加密(避免使用gets()的解法 看到大家用的都是gets的解法,而gets由于输入易溢出的问题已经不时兴了。这里为大家提供只用scanf的方法解题思路:输入到字符数组存储,注意空格也要存入。(这里可以体现出get的便利性,因为get是获取\n前的所有字符(包括空格)注意大小写都要考虑,非字母则不需操作。 题解列表 2022年01月16日 0 点赞 0 评论 589 浏览 评分:0.0
电报加密C语言 摘要:#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){ char str[100]; gets(str); …… 题解列表 2022年01月17日 0 点赞 0 评论 846 浏览 评分:0.0
编写题解 1042: [编程入门]电报加密 ```c#include#include#includeintmain(){chara[100]={'\0'};inti,m;gets(a);m=strlen(a);for(i=0;i 题解列表 2022年01月18日 0 点赞 0 评论 592 浏览 评分:0.0 [编程入门]电报加密(C++代码) 不需要除去空格,只要设置条件忽视空格,空格可以不受影响地保留在输出结果中。```cpp#include#includeusingnamespacestd;intmain(){stringstr;getline(cin,str);for(inti=0;i 题解列表 2022年01月25日 0 点赞 0 评论 539 浏览 评分:0.0 [编程入门]电报加密-题解(python代码) 摘要:解题思路: 利用ASCII值进行大小判断,注意 Z 和 z 进行特殊处理。注意事项:参考代码:s=input()x=''for i in s: if i == 'Z…… 题解列表 2022年01月25日 0 点赞 0 评论 922 浏览 评分:9.9 【露离】告诉你50%错误是为什么 摘要:解题思路:注意事项:注意输入行,猜测系统测试时,有类似'zz aa 2wa'连着的测试数据,所以输入用list处理则为['z','z',' &#…… 题解列表 2022年02月05日 0 点赞 0 评论 595 浏览 评分:0.0 还行,一般般吧 摘要:解题思路:注意事项:参考代码:a=str(input())b=[]for i in a: i=ord(i) if i in range(97,122): b.append(c…… 题解列表 2022年02月21日 0 点赞 0 评论 686 浏览 评分:6.0 C++电报加密 #includeusingnamespacestd;intmain(){charch;while(cin.get(ch)){//cin.get(ch)通常用来接收一行字符串if(ch>='a'&&ch='A'&&ch 题解列表 2022年03月02日 0 点赞 3 评论 952 浏览 评分:9.9 [编程入门]电报加密 摘要:解题思路:注意事项:参考代码:a=input()b=[]for i in a: if i>='a' and i<'z'or i>='A' and …… 题解列表 2022年03月04日 0 点赞 0 评论 587 浏览 评分:0.0 « 12...15161718192021...2526 »
[编程入门]电报加密(C++代码) 不需要除去空格,只要设置条件忽视空格,空格可以不受影响地保留在输出结果中。```cpp#include#includeusingnamespacestd;intmain(){stringstr;getline(cin,str);for(inti=0;i 题解列表 2022年01月25日 0 点赞 0 评论 539 浏览 评分:0.0
[编程入门]电报加密-题解(python代码) 摘要:解题思路: 利用ASCII值进行大小判断,注意 Z 和 z 进行特殊处理。注意事项:参考代码:s=input()x=''for i in s: if i == 'Z…… 题解列表 2022年01月25日 0 点赞 0 评论 922 浏览 评分:9.9
【露离】告诉你50%错误是为什么 摘要:解题思路:注意事项:注意输入行,猜测系统测试时,有类似'zz aa 2wa'连着的测试数据,所以输入用list处理则为['z','z',' &#…… 题解列表 2022年02月05日 0 点赞 0 评论 595 浏览 评分:0.0
还行,一般般吧 摘要:解题思路:注意事项:参考代码:a=str(input())b=[]for i in a: i=ord(i) if i in range(97,122): b.append(c…… 题解列表 2022年02月21日 0 点赞 0 评论 686 浏览 评分:6.0
C++电报加密 #includeusingnamespacestd;intmain(){charch;while(cin.get(ch)){//cin.get(ch)通常用来接收一行字符串if(ch>='a'&&ch='A'&&ch 题解列表 2022年03月02日 0 点赞 3 评论 952 浏览 评分:9.9
[编程入门]电报加密 摘要:解题思路:注意事项:参考代码:a=input()b=[]for i in a: if i>='a' and i<'z'or i>='A' and …… 题解列表 2022年03月04日 0 点赞 0 评论 587 浏览 评分:0.0