RE?!

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

JFY2013 @ 2023-08-18 09:25:27

#include<iostream>
#include<cstdio>
using namespace std;
int a,b,c,d;
int main(){
    scanf("%d%d%d.%d",a,b,c,d);
    printf("%d.%d%d%d",d,c,b,a);
    return 0;
}

RE×5救救我pwq


by _Regenbogen_ @ 2023-08-18 09:28:27

#include<iostream>
#include<cstdio>
using namespace std;
int a,b,c,d;
int main(){
    scanf("%d%d%d.%d",&a,&b,&c,&d);
    printf("%d.%d%d%d",d,c,b,a);
    return 0;
}

scanf要传指


by lujunxuan123 @ 2023-08-18 09:28:28

@JFY2013 scanf忘加&了


by _Regenbogen_ @ 2023-08-18 09:29:17

能过样例?


by _Regenbogen_ @ 2023-08-18 09:31:58

#include<bits/stdc++.h>
using namespace  std;
typedef long long ll;
const ll mod=998244353,N=1e6+10;
char ch[N];
int main(){
    scanf("%s",ch);
    for(ll i=strlen(ch)-1;~i;i--)putchar(ch[i]);
    return 0;
}

by shidifu @ 2023-08-18 09:48:47

《scanf》


by JFY2013 @ 2023-08-19 09:59:06

谢谢大佬,送您关注一枚


by JFY2013 @ 2023-08-19 10:03:21

怎么又WA了


by Adamsa @ 2023-08-19 14:02:43

为啥我回复不了代码,求大佬教教我咋发言


by l_jin @ 2023-09-06 19:52:08

@JFY2013 用char定义


by JFY2013 @ 2023-09-07 18:56:54

@l_jin 好的,谢谢大佬


| 下一页