[编程入门]数字逆序输出-题解(python代码) 摘要:解题思路: 将输入的数放入列表中,然后用reverse函数将列表中的数进行倒序。注意事项:参考代码:lst = list(map(int, input().split()))lst.revers…… 题解列表 2022年01月25日 0 点赞 0 评论 342 浏览 评分:0.0
reverse()函数逆序 摘要:解题思路:运用<algorithm>里面的头文件reverse来逆序注意:reverse( 首地址,尾地址 + 1 )先举个小例子吧!下面是本题代码!!给个评论吧!…… 题解列表 2022年01月27日 0 点赞 0 评论 563 浏览 评分:0.0
【露离】编写题解 1026: [编程入门]数字逆序输出 摘要:解题思路:两行搞定注意事项:参考代码:a=[i for i in input().split()]print(' '.join(a[::-1]))…… 题解列表 2022年02月04日 0 点赞 0 评论 296 浏览 评分:0.0
1026: [编程入门]数字逆序输出 摘要:解题思路:逆序 easy注意事项:参考代码:#include<stdio.h>int main(){ int a[10],i; for(i=0;i<10;i++) …… 题解列表 2022年02月13日 0 点赞 0 评论 269 浏览 评分:0.0
1026: [编程入门]数字逆序输出 摘要:解题思路:注意事项:参考代码:li = list(map(int, input().split()))for i in li[::-1]: print(i,end=' ')…… 题解列表 2022年02月20日 0 点赞 0 评论 298 浏览 评分:0.0
编写题解 1026: [编程入门]数字逆序输出 自留笔记 摘要:解题思路:顺序输入,逆序输出参考代码:#include <stdio.h> int main() { int a[10]; for(int i=0;i<10;i++) …… 题解列表 2022年02月22日 0 点赞 0 评论 234 浏览 评分:0.0
编写题解 1026: [编程入门]数字逆序输出--解题 摘要:解题思路:数组逆序输出注意事项:参考代码:#include<stdio.h>#include<iostream>using namespace std;int main (){ int str[…… 题解列表 2022年03月02日 0 点赞 0 评论 316 浏览 评分:0.0
编写题解 1026: [编程入门]数字逆序输出--string库gets函数 摘要:解题思路:注意事项:原来的字符串最后一个是空格记得从倒数第二位开始输出的。参考代码:#include<stdio.h>#include<iostream>using namespace std;int…… 题解列表 2022年03月02日 0 点赞 0 评论 355 浏览 评分:0.0
1026: [编程入门]数字逆序输出——Python 摘要:解题思路:利用python中的切片注意事项:参考代码:l = list(map(int,input().split()))for i in l[::-1]: print(i,end = '…… 题解列表 2022年04月06日 0 点赞 0 评论 561 浏览 评分:0.0
数字逆序输出 摘要:解题思路:对输入的一组数字逆序输出,可用循环的方式,输入的时候从a[0]到a[9],输出从a[9]到a[0]输出注意事项:循环参考代码:#include<stdio.h>int main(){ int…… 题解列表 2022年04月07日 0 点赞 0 评论 321 浏览 评分:0.0