全wa

P5705 【深基2.例7】数字反转

aaayqaq @ 2024-10-03 17:09:03

a = input()
b = len(a)-1
for i in range(len(a)) :
    print(a[b] , end='')
    b-=1

大佬看下全wa为什么


by wangshengchen @ 2024-10-17 19:55:21

只能说我不会python 会c++

#include<iostream>
using namespace std;
int main()
{
    char a,b,c,d,e;
    cin>>a>>b>>c>>d>>e;
    cout<<e<<d<<c<<b<<a;
    return 0;
}

|