为什么C++和C都编译成功,但是C60pts,C++AC
查看原帖
为什么C++和C都编译成功,但是C60pts,C++AC
1074084
asd890123楼主2024/4/9 21:06
#include "stdio.h"
#include "math.h"
#include "string.h"

int main(){
    
    int n;
    char str[10000];
    
    scanf("%d",&n);
    sprintf(str,"%.0Lf",(long double)pow(2.0L,n));
    str[strlen(str)-1]--;
    printf(str);
    
    return 0;
}
2024/4/9 21:06
加载中...